Repository navigation
CI: test-time ratchet, per-test gate and suite budget (Part of #5166) - #5169
Conversation
…dget; Part of #5166) Co-Authored-By: Claude Opus 5.5 <[email protected]>
|
No description provided. |
|
No description provided. |
|
PR #5169 @ 9664c0d: 1 failed check(s) == full-suite part 3/3 (failure) -- real |
…(Part of #5166) Co-Authored-By: Claude Opus 5.5 <[email protected]>
|
CI shepherd: the head of this PR (ac136d0) is not the one a maintainer labelled |
|
No description provided. |
|
No description provided. |
|
PR #5169 @ ac136d0: 1 failed check(s) == full-suite part 2/3 (failure) -- real |
The baseline came from local durations, so CI tripped on 7 tests: 4 unbaselined over 10 s (java utf8 guard, inline extraction, redos poison, ground-truth plan) and 3 galaxyscope tests over 2x. Entries set at CI-observed seconds; origin/main merged. Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
|
CI shepherd: the head of this PR (68f5d27) is not the one a maintainer labelled |
|
No description provided. |
|
PR #5169 @ 68f5d27: 1 failed check(s) == suite time budget (#5166) (failure) -- real |
Part of #5166 (part B: test-time ratchet). Part A and C are separate.
What
tests/tools/time_ratchet.py+tests/test_time_baseline.json(the 32 tests over 10 s from.test_durations, andsuite_budget_s= 3415 s, the suite minustest_evidence_components.py).@pytest.mark.slow(reason=...)or baselined; a baselined test fails past 2x its seconds.updateonly lowers entries, drops those at or under 10 s, never adds or raises.pr_gates.py --ratchetsgets atimeentry (checks the committed.test_durations).tests/conftest.py: empty slow reason is a collection error; withGITGALAXY_TEST_TIMES=filea run writes per-test seconds and slow reasons (the controller's reports, so it works under xdist; not exercised locally, the venv has no xdist).Workflow changes (
smoke-test.yml, each minimal)GITGALAXY_TEST_TIMES.time_ratchet.py check(the per-test gate; the required check still always reports).suite-time(needs the parts): sums the three parts' own seconds, summary on PRs,--enforce+ issue on schedule. Only new permission:issues: writeon that job.No test is deselected or skipped.
Cross-repo
None.
docs/ci.mdalso changes in #5165 (separate section, expect a trivial merge).Gates
pr_gates --fast6/6;--ratchets8 pass, 0 fail, 0 skipped;test_time_ratchet.py13 pass.Lessons for agents
def f(path=BASELINE)binds at definition time: a monkeypatched module constant is ignored. Resolve defaults inside the function.total/budget - 1 > 0.10misjudges the exact boundary (110/100-1 is 0.1000000000000000888); comparetotal > budget*(1+tol).🤖 Generated with Claude Code