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
NixOS python tests intermittently fail with Fatal Python error #86889
Comments
I also saw this in various tests. |
Some general explanation regarding this issue nixpkgs/nixos/lib/test-driver/test-driver.py Line 751 in 236fdbc
|
As explained in #86486 (comment), our method of writing to stderr isn't thread-safe. I gave moving all this to the native python |
@flokli Your patch works well! It fixes a test that was failing consistently in a private code base. Could you make a PR? nitpick: I noticed it's possible to do |
@roberth This was mostly a quick hack to see if it fixes things :-) I'm still waiting on some reaction to #87191 (comment). Knowing whether log outputs will still be part of the output or not, and if there will be some structured/nested format will affect that code. |
Hm, that's yet another instance of "general flakyness". I downgraded the referenced PR to a draft. I'd really like to see the necessary discussion to happen, before putting more time into this. |
Well darn, I'd been redirecting stdout to stderr to see test progress in real time, but with This is easily reproducible with the test below. With 1000 iterations, it passes. With 2000 iterations, it produces the
|
Just stumbled upon this as well. If we don't fix this before 20.09 we shouldn't drop the perl driver IMHO. |
As expressed in #86486 (comment), I'd like to get some feedback on how to treat "test results" - see #87191 (comment) before putting more time into #86486. |
Sorry, should've read the entire thread more closely. Will take a look. |
FYI #86486 has been closed due to a lack of time to get this finished. It would be awesome if anyone could finish this! :) |
The logging has been moved to use pythons logging module - this should have been fixed by #96254. |
Describe the bug
To Reproduce
This one is hard to reproduce. The above snippet is from
nix-build nixos/tests/ceph-single-node.nix
on a feature commit on top of release-20.03 e5cb3efI know @aanderse has seen it happen in other python tests.
The text was updated successfully, but these errors were encountered: