Repository navigation
test: let 24 preview, mark and chart waits take the suite's deadline - #5701
Merged
Merged
Conversation
#5617 and #5618 added waits with literal 2 s and 3 s timeouts in test_previews.py, test_charts.py and test_render_anchors.py. The nightly journey test_a_wait_takes_the_suites_deadline rejects a literal deadline, since a busy runner takes many times what the work took where the test was written. Each wait now takes the suite's default (SERVED_TIMEOUT_MS through render_harness). No assertion changes what it waits for. Refs #4225
This was referenced Nov 8, 2026
leaf-agent
added a commit
that referenced
this pull request
Nov 9, 2026
…r test module (#5735) The literal-deadline, fixture-resource and SIGKILL rules each parsed every module under `tests/` in one case, too slow for the `model/` budget. So they sat in `tests/journeys/`, which only the scheduled run reaches. A pull request that broke one merged green and turned main's nightly red: #5455 and #5701 cleaned up literal deadlines, and #5684 a fixture resource taken outside its fixture. The three tests now live in `tests/model/test_suite_source.py`, keeping their names and rules, and each is parametrized over the test modules. A case reads one module, so the tier every pull request runs holds them. Verified locally: - `uv run pytest tests --collect-only` now collects 1056 cases (3 rules × 352 modules). Before, broad discovery skipped all three tests. - All cases pass on this head. A scratch module with `thread.join(5)`, `timeout=1000`, `signal.SIGKILL` and a bare `Popen` fails all three rules, and each finding names the module and line. - Cost: the slowest case takes 0.29 s, well under the 3 s `model/` budget. Total case time is about 11 s locally, against about 10 s for the three old tests. CI's `test` job runs `-n 3`, so this adds a few seconds of wall time to each pull request. Each rule parses its module separately, which triples the parse work. One test that applies all three rules to a single parse would cost about 8 s instead of 11 s. But `tests/AGENTS.md` and `interact_support.py` cite these test names, and changing agent instructions needs a maintainer's approval, so this PR keeps the names. Each finding of a fixed deadline now names the constant that should bound the wait, since the old one-off assertion message no longer exists. Closes #5712 — automated triage Co-authored-by: leaf-agent <[email protected]>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
The nightly journey
test_a_wait_takes_the_suites_deadlinehas failed since scheduled run 42365682113. It found 24 waits with literal 2 s or 3 s timeouts, added by #5617 (test_previews.py,test_charts.py) and #5618 (test_render_anchors.py). This PR drops eachtimeout=argument, so those waits take the suite's default deadline (SERVED_TIMEOUT_MS, whichrender_harnesssets). What each wait waits for doesn't change. The literal values were sized to a fast machine, which is why the check rejects them.Verification on main
fcad5fa09: the check fails before this change, listing all 24 sites, and passes after it. The 19 browser tests that hold those waits pass under--run-main(42 cases).The same check went red for the same reason on Nov 5, and #5455 fixed that. It's a 2–6 s static scan of the test sources, but it lives in
tests/journeys/, which only the scheduled run reaches. So a pull request that adds a literal deadline passes its own CI, and main finds out the next day. #5712 proposes running it on every pull request.Refs #4225 — automated triage