Disable tests_rng on KVM
See original GitHub issueWhile working on reproducible builds for openSUSE, I found that building our python-autobahn package in a 1-core VM with
osc checkout openSUSE:Factory/python-autobahn && cd $_
osc build --noservice -j1 --vm-type=kvm
gets stuck forever in test_rng.py
[ 73s] autobahn/rawsocket/test/test_rawsocket_url.py::TestParseWsUrl::test_parse_url16 PASSED [ 8%]
[ 73s] autobahn/rawsocket/test/test_rawsocket_url.py::TestParseWsUrl::test_parse_url17 PASSED [ 8%]
[ 73s] autobahn/rawsocket/test/test_rawsocket_url.py::TestParseWsUrl::test_parse_url18 PASSED [ 8%]
[ 238s] autobahn/test/test_rng.py::TestEntropy::test_depleting
[ 238s]
Issue Analytics
- State:
- Created 4 years ago
- Reactions:1
- Comments:15 (8 by maintainers)
Top Results From Across the Web
How to enable nested virtualization in KVM - Fedora Docs
Testing nested virtualization. Start the virtual machine. On the virtual machine, run: sudo dnf group install virtualization.
Read more >KVM hypervisor: a beginners' guide - Ubuntu
It presents a summary view of running guest instances, their live performance and resource utilisation statistics. Virtual Machine Manager comes ...
Read more >KVM - Debian Wiki
Managing VMs from the command-line. You can use the virsh(1) command to start and stop virtual machines. VMs can be generated using virtinst....
Read more >How to permanently disable kvm modules in Linux?
Option 3: Disable (new). Both of the above will prevent the modules from getting loaded on bootup, but won't stop them from loading...
Read more >Management Tools - KVM
Name/URL Description UI Type Last Updated License
AQemu a Qt4 user interface for KVM Desktop 2013‑05‑30 GPL v2
Eucalyptus Web, CLI, REST, SOAP Active GPL...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
fixed via https://github.com/crossbario/autobahn-python/pull/1292
rng depletion tests are now skipped unless an env var
AUTOBAHN_CI_ENABLE_RNG_DEPLETION_TESTS
is set (to an arbitrary value).in our CI, we do set this env var in tox: https://github.com/crossbario/autobahn-python/blob/master/tox.ini#L80 - that is, the RNG tests are still run on Travis and locally
Could there be an environment variable that disables both depleting and non-depleting tests? if I understand https://github.com/crossbario/autobahn-python/issues/1275#issuecomment-568179899 correctly, the non-depleting test works correctly only if the depleting test is run first.
Yep I switched to rng-tools later. It also makes the depleting test finish in a few seconds on my physical server. Not sure if it works on virtual machines or not, though, as it uses hardware random number generators.