Repository navigation
Closed
Labels
Description
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:
tests/test_ci.py::test_a_signal_to_devops_ci_test_lets_pytest_tear_down_then_stops_its_group[SIGTERM]and[SIGHUP]: failed in the full-suite runs of the fix(valkey): valkey.url is one validated url, its path names the database, and the separate host, port and db settings go #2060 commit.tests/test_ui_reactive.py::test_a_slow_subsystem_does_not_freeze_the_interface: failed in the same runs.tests/test_sandbox_policy_properties.py::test_property_parse_whitelist_entry_reads_ipv6_hosts_and_ports_oracle: Hypothesis raisedDeadlineExceeded.tests/core/test_clock_contract.py::test_a_ratelimit_window_built_with_the_seam_makes_the_third_call_wait_out_the_period[real-0.03]: failed in the pre-push gate of fix(ai): a hosted gateway call is priced at the deployment model that the gateway names, not at the route name #2031 (assert (['call', 'ca...False, [0.03]) == (['call', 'ca... True, [0.03])).
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
- The failures above, with the passes when each test ran alone.
- fix(tests): the second-signal test of devops ci test waits for an event, not a time window, so it passes under load #2069 is the same kind of failure in a different test (
test_a_second_signal_to_devops_ci_test_cannot_skip_the_sigkill).
Acceptance criteria
- Each test passes 50 times in a row with
uv run devops ci test <file> -k <test> --repeat 50while anotheruv run devops ci testruns.
Metadata
Metadata
Assignees
Labels
Type
Projects
- StatusShow more project fieldsDone
Activity
dan-petty commentedon Oct 24, 2026
Intake placed this item to the backlog: intake puts every new item in the backlog. A person plans the milestones on the board.
The candidate concerns fixing test behavior under host load conditions.Tests must not fail due to host load; they are critical for CI stability.Fixing flaky tests improves CI reliability and developer productivity.The fix involves modifying test logic to remove time-based assertions, which requires careful analysis and updates across multiple tests.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.fix(tests): four tests that wait for a time window fail under host load