You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Flaky: test_attempt_deadline_is_enforced counts 2 timeouts instead of 3 on a loaded runner #3932
tests/os/test_go_source_fetch.py::SourceFetchTest::test_attempt_deadline_is_enforced failed with AssertionError: 2 != 3 on result.stderr.count("failed (exit 124)") (line 187), so tests/os/selftest-go-source-fetch.sh exits 1 and make test-integration-selftest fails. The test shortens the 180s deadline to a 1s timeout, so a loaded runner can let one of the three attempts finish or die before the timeout fires.
What it impacts
The required Shell tests (standalone suites + tooling) check on any PR; a red here blocks merge with no code cause.
How I found it
PR #3860 head 5aaeec6, Shell workflow run 41586337564: failed with the assertion above, then passed on one rerun of the failed job with no code change. The same test passed on earlier heads of that PR (runs 41495142512 and 41486020765). #3860 changes only tests/integration files, none of which this test uses. I searched open and closed issues for the test name and found none. Recurrence count beyond this one is unknown.
How important is it
Low to medium: it is intermittent and clears on a rerun, but it spends a required-check retry and can mislead a reviewer.
Acceptance criteria
The test passes in 50 consecutive runs under CPU contention (for example with parallel stress-style load) on the CI image.
The assertion still fails if the attempt deadline is not enforced.
Possible solutions
Count attempts by the three (180s deadline) lines plus a status that does not depend on a 1s wall-clock race, or give the shortened timeout a margin that a loaded runner cannot exceed.
Recurred after the #3963 fix, same signature: FAIL: test_attempt_deadline_is_enforced ... AssertionError: 2 != 3 in tests/os/selftest-go-source-fetch.sh, Actions run 43384778768 (job 131750580492) on PR #3990 head 38ae5b6. That PR's diff does not touch the source-fetch code or its test. One gh run rerun --failed on the same head passed (run 43384778768, attempt 2), with no code change. Leaving the issue state to the owner; this is evidence that the load sensitivity is not fully removed.
Activity
pithead-developer commentedon Nov 9, 2026
Merged in #3963.
test(os): make the source-fetch deadline test independent of runner l…
pithead-developer commentedon Nov 13, 2026
Recurred after the #3963 fix, same signature:
FAIL: test_attempt_deadline_is_enforced ... AssertionError: 2 != 3intests/os/selftest-go-source-fetch.sh, Actions run 43384778768 (job 131750580492) on PR #3990 head 38ae5b6. That PR's diff does not touch the source-fetch code or its test. Onegh run rerun --failedon the same head passed (run 43384778768, attempt 2), with no code change. Leaving the issue state to the owner; this is evidence that the load sensitivity is not fully removed.