oliver-zehentleitner / maity
cli tests: flake in test_the_clone_and_scratch_sizes_are_measured_for_the_status (record still starting at :5122)
tsk-4mt369csr75p Proposed
Outside the launch scope, filed as proposed at lotse's request (seq 201436).
What failed
Main CI run 45146363157 on 18a07097 (#2133, web/tools only) failed in cli (3.11) and cli (3.15) on the same one test, and nothing else (6005 passed, 14 skipped):
cli/tests/test_supervisor.py::test_the_clone_and_scratch_sizes_are_measured_for_the_status
assert rec.clone_bytes is not None # the scratch may be made after this first measure
AssertionError: assert None is not None
+ where None = Record(generation=1, state='starting', ...)
tests/test_supervisor.py:5122
The record is still starting when the test reads it, so the first size measure has not run yet after settle(sup).
Why it is a flake, not a regression
- Nothing under
cli/changed between 93fd0895 (ci success) and 18a07097:git diff --stat 93fd0895 18a07097 -- cliis empty. - The same logs show
maity-runner: supervisor: advertising running=0 failed (cannot reach http://127.0.0.1:<port>: [Errno 104] Connection reset by peer), and on 3.11 aBrokenPipeError: [Errno 32] Broken pipefromcli/tests/fakehub.py:129(_send->self.wfile.write). That points at load or timing on the shared runner, not at the code under test. - The failed jobs were re-run (lotse's go); the result goes on this card.
What done looks like
- The test waits for the state the measure depends on (or drives the clock to it) instead of reading the record right after
settle, so it cannot seestarting. - Check whether the fakehub BrokenPipe is the same cause, or a second, separate noise source worth quieting.
- A loop of the test (e.g. 100 runs under load) shows 0 failures.