Repository navigation
Fix regrtest rerun: reset worker_bug - #162293
Conversation
When a test fails with "worker bug" and tests are rerun in verbose mode, reset worker_bug so that tests are marked as success if the failed test doesn't fail again when rerun in verbose mode. TestResult.write_json_into(file) now calls also file.flush().
|
RISC-V 64-bit Ubuntu Clang 3.x, build 787, https://buildbot.python.org/#/builders/2255/builds/787 failed with:
test_generator_stop failed with "worker bug", but then passed when rerun in verbose mode. This PR changes the result to:
The worker bug:
I don't know what triggered this bug. I added "TestResult.write_json_into(file) now calls also file.flush()" change: maybe the JSON contents was not flushed properly into the UNIX pipe? |
|
Android (x86_64) failed: https://github.com/python/cpython/actions/runs/44620009832/job/135899016015?pr=162293 I don't understand what's going on. I will just re-run the failed job. |
When a test fails with "worker bug" and tests are rerun in verbose mode, reset worker_bug so that tests are marked as success if the failed test doesn't fail again when rerun in verbose mode.
TestResult.write_json_into(file) now calls also file.flush().