Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

iterator_test.cpp fails #31

Open
jmeintrup opened this issue Aug 6, 2018 · 12 comments
Open

iterator_test.cpp fails #31

jmeintrup opened this issue Aug 6, 2018 · 12 comments
Labels
bug Something isn't working

Comments

@jmeintrup
Copy link
Collaborator

iterator_test.cpp:44: FailureExpected equality of these values:
  count
    Which is: 1639
  setSize
    Which is: 5000

I have been getting that error from the iterator_test.
Did this test pass the travis build test?

@andrej-sajenko
Copy link
Member

Yes the test passes on the travis build.

@andrej-sajenko
Copy link
Member

Have you solved this issue?

@jmeintrup
Copy link
Collaborator Author

Yes, it seems to. It just worked after i tried it two more times.
The test uses some random generation, maybe that is the problem - even though it uses a fixed seed.

@shsr04
Copy link

shsr04 commented Sep 19, 2018

Now also fails for me. #36

@dppl
Copy link
Collaborator

dppl commented Sep 19, 2018

I'm going to look into it, however I'm not able to reproduce this behaviour locally.

Now also fails for me. #36

Does it make a difference if you comment out line 28 in choicedictionaryiterator_test.cpp?

@shsr04
Copy link

shsr04 commented Sep 19, 2018

Does it make a difference if you comment out line 28 in choicedictionaryiterator_test.cpp?

Yes it does, but the test still fails. Now the actual value is 1624 instead of 3260.

Let's see if Travis accepts it.

@dppl
Copy link
Collaborator

dppl commented Sep 19, 2018

@andrej-sajenko Should we maybe disable the test for the choice dictionary iterator, so that unrelated pull requests get accepted?
I'm going to look further into it to find the problem, as it doesn't seem to be related to shuffling the test set.

@shsr04 Does the test also fail locally?

@shsr04
Copy link

shsr04 commented Sep 19, 2018

Yes, it's the same as the Travis build.

@shsr04
Copy link

shsr04 commented Sep 28, 2018

Maybe the -O3 compiler flag introduced one month ago breaks the GCC built-in __builtin_clzl used in the iterator:

unsigned long int nextIndex = (unsigned long int)__builtin_clzl(primaryWord);

unsigned long int primaryInnerIndex = (unsigned long int)__builtin_clzl(secondaryWord);

@shsr04
Copy link

shsr04 commented Nov 16, 2018

@dappels I have made several tries now. Whatever my approach for the CD iterator test is, it fails on Travis (but works locally)... Could this be a bug in the iterator itself? (some portability issue?)

@dppl
Copy link
Collaborator

dppl commented Nov 17, 2018

I don't really know what causes the issue for you. As discussed previously it is not possible for me to reproduce that issue locally.
Is there any sign of the iterator returning incorrect values when you run it locally? Be it in an implementation that relies on it or the unit test?

@shsr04
Copy link

shsr04 commented Nov 17, 2018

The Travis build on #68 failed when I uncommented the test. (Locally, everything works.)
I also made a few different random tests (e.g. 641c791, e8ddd2e) to see if Travis accepts those. (Again, every one of those works locally.)

What's really interesting is that the experimental test e8ddd2e does not even use random number generation. The build status can be found here: https://travis-ci.org/thm-mni-ii/sea/builds/455994593

I don't know if this helps, but that's all the information I have.

@andrej-sajenko andrej-sajenko added the bug Something isn't working label Nov 29, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

4 participants