Repository navigation
ci: pin the smoke-test pytest-split durations once per run; lint every durations restore (Part of #5114, #5135) - #5182
Conversation
…class (Part of #5135, #5114) smoke-test.yml: a `durations` job resolves the newest measured durations cache key once; the three full-suite parts restore that exact key, never "the newest" on their own (a nightly save between part starts cut different slices). evidence-refresh.yml: comment only (its split is the committed file at the lane commit). New tests/tools/test_shard_split_pinned.py pins every durations restore across the workflows. Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
|
No description provided. |
|
PR #5182 @ bbb1375: 2 failed check(s) == full-suite (failure) -- real == full-suite part 1/3 (failure) -- real |
Part of #5114, Part of #5135.
What
smoke-test.ymlfull-suite-part(3 parts, pytest-split) each restoredtest-durations-withrestore-keysthemselves, so a nightly cache save between two parts' starts gave different slices (a test dropped or run twice). New tinydurationsjob (lookup-onlycache restore, no checkout) resolves the matched key once and outputs it; each part restores that exact key (norestore-keys), and falls back to the committed.test_durationswhen the key is empty. Theifkeeps!cancelled(), so a failed or skippeddurationsnever skips the required check.Job counts per smoke-test run: before 3 parts (+ gate on push); after 3 parts + 1
durations(+ gate on push). det-sweep.yml is untouched: a full run stays 12 jobs (6 shards + 4 db2 + plan + det).Class table (shards that pick their own durations)
det-durationsartifact fromplan); now pinned by testlanecommit, so one split. Comment + test onlydet(nightly, single job, extends then saves)New
tests/tools/test_shard_split_pinned.py(6 tests): no matrix job restores withrestore-keys; the only "pick the newest" restores are det-sweepplan/detand smoke-testdurations; det shard/db2 downloaddet-durations; evidence-refresh reads none; smoke parts restore the exact key. Thetest_a_rerun_shard_...failure seen on #5139's CI does not reproduce on main (23 pass).#5135 acceptance (not met yet: stays open)
Since #5139 merged (2026-10-14T21:52Z), 100 det-sweep PR runs: 12-job full sweeps that succeeded = 8 (<10 required). Det done (run start to
detjob end): 14.4, 15.8, 18.9, 23.8, 26.3, 26.9, 27.1, 42.9 min, median ~25 min, vs the #5139 before-baseline median 70 min (different metric: run start to last update, 26 jobs, 20 shards). Job count 26 -> 12. Those 8detjobs succeeded, somissing_casesis 0 (a missing case fails the aggregate). Script and raw table are in scratch (not committed). Re-measure when 10 distinct det PRs have full sweeps.Cross-repo
None.
Lessons for agents
ruff checkon a bare test path flags S101; the repo gate ispython tests/ruff_audit.py --ci(baselined), use that.🤖 Generated with Claude Code