Coder Social home page Coder Social logo

iterator_test.cpp fails about sea HOT 12 OPEN

thm-mni-ii avatar thm-mni-ii commented on September 22, 2024
iterator_test.cpp fails

from sea.

Comments (12)

andrej-sajenko avatar andrej-sajenko commented on September 22, 2024

Yes the test passes on the travis build.

from sea.

andrej-sajenko avatar andrej-sajenko commented on September 22, 2024

Have you solved this issue?

from sea.

jmeintrup avatar jmeintrup commented on September 22, 2024

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.

from sea.

shsr04 avatar shsr04 commented on September 22, 2024

Now also fails for me. #36

from sea.

dppl avatar dppl commented on September 22, 2024

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?

from sea.

shsr04 avatar shsr04 commented on September 22, 2024

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.

from sea.

dppl avatar dppl commented on September 22, 2024

@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?

from sea.

shsr04 avatar shsr04 commented on September 22, 2024

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

from sea.

shsr04 avatar shsr04 commented on September 22, 2024

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);

from sea.

shsr04 avatar shsr04 commented on September 22, 2024

@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?)

from sea.

dppl avatar dppl commented on September 22, 2024

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?

from sea.

shsr04 avatar shsr04 commented on September 22, 2024

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.

from sea.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.