Repository navigation
Description
Measured (2026-10-18, 5 successful PR runs): mainframe-ground-truth.yml is now the slowest PR check, about 11 min (parts 1/2 and 2/2 both ~11.0 min on the sampled head). Since #5530 sharded CICS Crucible (24.8 → ~8.2 min), every PR waits on this check. The next slowest are graph-accuracy-audit (7.6 min, #5501) and muninn (7.5 min, #5499).
Where the time goes, per part (step times from runs 39171967813, 39170181810, 39170005710, 39168823386, 39168781317):
| step | part 1/2 | part 2/2 |
|---|---|---|
| Install GitGalaxy | 0.4 min | 0.3-0.5 min |
| Gate against the ground-truth ledger | 3.1-4.1 min | 2.4-4.2 min |
| Full-corpus differential and answer-key tests (pytest-split share) | 4.7-6.4 min | 3.8-6.3 min |
Part 1 is the long one every time (4.1 + 6.4 min). The ledger gate runs on both parts (#5133), so each part's corpus scans are warm before the timed tests. That 3-4 min is paid once per part, so adding parts adds it again: 4 parts as they are today come to about 4 + 3 + setup ≈ 8 min, not 11/2.
Proposed (the worker measures and picks, then reports)
- Stop paying the warm-up per part. Options, cheapest first: (ground-truth: leave the translator out of the scan-cache key (Part of #5543) #6494)
- (a) scan the pinned corpora once in a
warmjob and pass the scan outputs to the parts as an artifact. The parts then run pytest against warm results and skip the full ledger gate; only one job runs the gate, its summary and history. - (b) let each part warm only the corpora its pytest share touches, not the whole set.
- (c) more pytest-split groups (3-4) with the current per-part warm-up, if (a) and (b) don't fit. This is the fallback with the smallest gain.
- (a) scan the pinned corpora once in a
- Rebalance part 1 versus part 2 (part 1 is the long pole every run; refresh
.test_durationsif it's stale). (ground-truth: durations refreshed, cache/layout measured and documented (Part of #5543) #6146) - Keep
ground-truthas the one required check name (the aggregate job stays; the ruleset names it). (ground-truth: durations refreshed, cache/layout measured and documented (Part of #5543) #6146)
Rule: the same ledger gate, the same tests and the same per-test time ratchet. No test moves out of the PR check.test_ci_critical_path_splitand the parts-pattern test (ci_digest: test PARTS patterns still match the workflow jobs (Part of #5276) #5522) follow the new layout.
Acceptance: PR wall time of the check before and after (target ≤ 7.5 min, level with the next slowest check) and total runner-minutes, in the PR body. The first CI run shows the same ledger verdict and test counts as main.
Value: about 3.5 min less per PR push on the critical path. At 60-80 runs/day over the 2-week CICS push, that's about 50-65 hours less PR waiting.
Owner decisions
Owner OK (2026-10-18): the mainframe-ground-truth.yml workflow edit is approved (allow_workflows), queued on nyx.
🤖 Generated with Claude Code
Activity
ci: ground-truth warms the corpus scans once, then 4 pytest parts (Pa…
squid-protocol commentedon Oct 19, 2026
After #5559: the parts got faster, but the queue waits ate the gain
Medians from about 15 successful first-attempt runs on each side of #5559 (merged 2026-10-19T02:56Z):
Wall time per run: median 16 → 22 min, p90 30 → 46 min (successful attempt-1 runs, 3 days before vs since).
Proposed next step: two parts, cheap one first
actions/cacheentry keyed on corpora.json plus the engine-state hash, saved on main only (Siblings of #4968: per-PR cache saves (mainframe-corpora key) #5024).planchecks for the key withlookup-only: true. On a hit, the warm job is skipped and the parts restore the cached scans directly. On a miss, which happens on a PR that changes engine code, it runs as it does today.plancounts queued runs and jobs in the repo, using the same signal and threshold as promoter-bot's CI busy mode. It outputs a layout.planoutput, and pytest-split--splitsfollows it. The required check stays the finalground-truthjob.planlogs the chosen layout in the job summary, so timings and the per-test time ratchet can be split by layout.Expected gain: about 3–5 minutes per run while CI is busy. Calm runs should stay about the same or improve slightly when the cached warm step hits.
ground-truth: cache the warm scans and pick the layout from queue dep…
10 remaining items
squid-protocol commentedon Oct 24, 2026
Churn run
5543-20261024T2005Z(host melek) ended without a PR. plan-held: overlap only docs/ci.md, harmless; plan approvedci docs: ground-truth PR check re-measured on the five newest runs, 2…
ground-truth: a part with no warm job scans only the corpora its pyte…
squid-protocol commentedon Oct 25, 2026
Measured after #6494/#6146/#6579 (3 successful PR runs since 2026-10-25T03:12Z, all busy layout; PR #6591 has the table): wall median 18.0 min (15.9-30.2), runner-min median 10.7 (9.4-13.6, was 13.2-17.1), compute critical path 5.6 min (5.1-7.5), queue wait summed 14.4 min. Compute meets 7.5 min; wall does not. The remaining bottleneck is runner-pool queueing over the serial plan, part and final jobs, not part 1's gate scans (103-135 s, cache miss only). Not closing: the 7.5 min wall holds only for calm cache-hit runs, and none ran in the window.
docs/ci.md: ground-truth PR check re-measured after #6494/#6146/#6579,…
ground-truth: no warm job on a PR cache miss, 4 self-warming parts (P…
squid-protocol commentedon Oct 25, 2026
Churn run
5543-20261025T0650Z(host melek) ended without a PR. No PR: no post-#6597 calm PR runs finished yet. Requeued re-measure slice (wait for >=3 first-attempt successful PR runs after 06:38:46Z).squid-protocol commentedon Oct 25, 2026
Re-measure after #6597 (PR #6633, docs/ci.md): 29 runs. Calm cache hit n=2 wall 14.9 min, 17.5 runner-min; calm miss n=3 wall 10.2, 24 runner-min; busy (2 parts) n=24 wall 29.2, 13.5 runner-min, compute 7.1 min. 7.5 min target met on compute, on wall only in quietest runs. No evidence against #6597. Open: fold plan/final into parts; same layout for #5530, #5562; more calm hit samples.
docs/ci.md: ground-truth PR check re-measured after #6597, calm layou…
docs/ci.md: folding plan or the aggregate into the ground-truth parts…
docs/ci.md: calm cache-hit third look and CICS Crucible fold measured…
docs/ci.md: #5543 calm cache-hit re-measure (22 hits, wall median 11.…
squid-protocol commentedon Oct 27, 2026
Closing (owner OK, 2026-10-26: close what's done). All checklist items are ticked. The re-measure after #6597 (29 runs) meets the 7.5 min target on compute (7.1 min), and on wall time in calm runs; busy runs are queue-bound, not warm-up-bound. Optional extensions noted in the last comment (folding plan/final into the parts, the same layout for #5530 and #5562) can be new issues if wanted.