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. |
* gh-155981: Store refleak deltas in arrays (gh-55982) Store per-run deltas in array objects rather than lists of pooled integers. Large, unique deltas could otherwise grow int_pool and make the refleak checker report its own retained integers as reference leaks. (cherry picked from commit b38e073) * Fix regrtest rerun: reset worker_bug (#162293) 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(). (cherry picked from commit f84083b) * Do not rerun failed tests in regrtest on worker bug (#162780) When a test fails with "worker bug", no longer reruns failed tests in verbose mode. Previously, re-running tests in verbose mode failed to run a test called "<regrtest worker>". (cherry picked from commit 352cc06) --------- Co-authored-by: Neil Schemenauer <nas-github@arctrix.com>
) [3.15] Backport regrtest changes from the main branch (#163045) * gh-155981: Store refleak deltas in arrays (gh-55982) Store per-run deltas in array objects rather than lists of pooled integers. Large, unique deltas could otherwise grow int_pool and make the refleak checker report its own retained integers as reference leaks. (cherry picked from commit b38e073) * Fix regrtest rerun: reset worker_bug (#162293) 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(). (cherry picked from commit f84083b) * Do not rerun failed tests in regrtest on worker bug (#162780) When a test fails with "worker bug", no longer reruns failed tests in verbose mode. Previously, re-running tests in verbose mode failed to run a test called "<regrtest worker>". (cherry picked from commit 352cc06) --------- (cherry picked from commit 8ea5514) Co-authored-by: Neil Schemenauer <nas-github@arctrix.com>
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().