Skip to content

Flaky: test_attempt_deadline_is_enforced counts 2 timeouts instead of 3 on a loaded runner #3932

Closed

Description

@pithead-developer

What's the problem

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.

Activity

  1. added
    flaky
    on Nov 7, 2026
  2. pithead-developer commented on Nov 9, 2026

    @pithead-developer
    ContributorAuthor

    Merged in #3963.

  3. pithead-developer commented on Nov 13, 2026

    @pithead-developer
    ContributorAuthor

    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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    flaky

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions