Skip to content

fix(tests): four tests that wait for a time window fail under host load #2092

Closed

Description

@dan-petty

What happened

On 2026-10-24 these tests failed while the host was under load (load average 40 to 106 from parallel test suites), and each one passed when it ran alone:

The project allows no flaky tests, and a red gate makes a push wait for a rerun.

What should happen

Each test waits for an event that the code under test signals, not for a time window that depends on the host's speed (docs/TESTING.md, tests/support/waits.py). A property test with an input that can be slow under load has no deadline that the load can exceed, or uses the project's Hypothesis profile for it.

Evidence

Acceptance criteria

  • Each test passes 50 times in a row with uv run devops ci test <file> -k <test> --repeat 50 while another uv run devops ci test runs.

Activity

  1. added
    type/test
    source/agent
    on Oct 24, 2026
  2. dan-petty commented on Oct 24, 2026

    @dan-petty
    OwnerAuthor

    Intake placed this item to the backlog: intake puts every new item in the backlog. A person plans the milestones on the board.

    • Type: type/test. The candidate concerns fixing test behavior under host load conditions.
    • Priority: P1-High. Tests must not fail due to host load; they are critical for CI stability.
    • Value: High. Fixing flaky tests improves CI reliability and developer productivity.
    • Effort: Medium. The fix involves modifying test logic to remove time-based assertions, which requires careful analysis and updates across multiple tests.
    • Related: fix(tests): the process and session-exit tests finish under 5 seconds and hold under load #1748, which asks for a different change. Both items relate to tests waiting on time windows, but item 1748 addresses process and session-exit tests with bounded waits, while this candidate focuses on various test types failing under load.
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

    source/agenttype/test

    Type

    No type

    Projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions