Code Monkey home page Code Monkey logo

Comments (7)

nhorman avatar nhorman commented on August 16, 2024

they are revealing that your urandom source isn't producing very random data. Transient failures like this are possible (and thats not expressly problematic), but it does suggest that the entropy pool in your host is running low. Are you running rngd in the host?

from rng-tools.

realnickel avatar realnickel commented on August 16, 2024

rngd running on the builder host doesn't address the issue.
The entropy pool fill level is almost stable while running tests in build environment:

 $ while :; do cat /proc/sys/kernel/random/entropy_avail; done
3387
3387
3387
3387
3387
3387
3387
3387
3387
3387
3387
3387
3387

but random test failures still persist.

from rng-tools.

nhorman avatar nhorman commented on August 16, 2024

you said you are running in a chroot..Are you also running in a VM?

from rng-tools.

realnickel avatar realnickel commented on August 16, 2024

I'm running both. My experiments (with above resulting logs) are being performed in a VM. But the reason to start the experiments was a failure of auto test during build on real HW.

from rng-tools.

nhorman avatar nhorman commented on August 16, 2024

so, to be clear, this test failure doesn't appear to be a failing in the rng-tools suite itself, but a detection of non-random data in your urandom pool. That said, urandom is meant to be a best effort operation as far as random data is concerned, meaning that occasional failures like this may occur. Perhaps it would be better to document those transient unexpected outcomes as XPASS results, meaning they pass, but for unexpected reasons. Do you think that would be a reasonable solution?

from rng-tools.

realnickel avatar realnickel commented on August 16, 2024

If there is nothing left to be done to make the auto tests' results more stable in my described environments, and you consider this is not a rng-tools codebase bug, then introducing some border "XPASS" state as a solution seems reasonable to me.
But I wonder, whether you are going to change auto tests code to output some additional result code to represent XPASS state? Should I expect that in future releases to change my spec file appropriately? Or it's up to me to decide how to treat random /dev/urandom test failures?
Thank you for your time to discuss the issue.

from rng-tools.

realnickel avatar realnickel commented on August 16, 2024

Closing as following commit introduces the agreed XPASS state:
ce96ccb
Thank you.

from rng-tools.

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.