question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Disable tests_rng on KVM

See original GitHub issue

While 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:closed
  • Created 4 years ago
  • Reactions:1
  • Comments:15 (8 by maintainers)

github_iconTop GitHub Comments

2reactions
oberstetcommented, Jan 14, 2020

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

0reactions
yan12125commented, Jan 7, 2020

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.

Use it at your own risk or use it with a hardware based random number generator with the rng-tools

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.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found