Repository navigation
ground-truth: cache the warm scans, pick layout by queue depth (Part of #5543) - #5616
Conversation
…th (Part of #5543) Calm queue: warm job (skipped on a scans-cache hit) + 4 parts. Busy queue: 2 self-warming parts. The choice is logged in the job summary. Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
|
No description provided. |
|
PR #5616 @ a952113: 2 failed check(s) == db2 4/4 (failure) -- infra == det (failure) -- real |
Part of #5543 (both checkboxes of the 2026-10-19 comment,
mainframe-ground-truth.yml).Owner decisions
Owner OK (2026-10-18): the mainframe-ground-truth.yml workflow edit is approved (allow_workflows).
The night-shift queue item for the rescue run (5543-20261019T1321Z) carries
allow_workflows: true, so the earlier "needs owner confirmation" note is resolved.What changed
plankeys the warm scans byhashFiles(corpora.json)plus engine state (gitgalaxy/**,mainframe_corpus.py,pyproject.toml, requirements) and looks them up withactions/cache/restore(lookup-only). The scans are saved on main only (Siblings of #4968: per-PR cache saves (mainframe-corpora key) #5024). On a hit the warm job is skipped; part 1 restores the cache and runs the ledger gate.planruns the new stdlib-onlytests/tools/ci_layout.pyto choose the layout, logged in the job summary. Calm: warm + 4 parts. Busy (more than 8 waiting PR jobs): 2 self-warming parts. Non-PR events, mode none and an unreadable queue are calm.MAINFRAME_ENGINE_KEYlets CI name the scan directory so the cache key and scan dir agree.fromJSON(plan.matrix)with the 4-part list as fallback, so a failed plan job gives the old layout. Theground-truthaggregate accepts a skipped warm job only when the plan said none was needed. The required check name, the ledger gate, the tests and the per-test time ratchet are unchanged.test_ci_critical_path_split.pyfollows the new layout (plus new layout, cache and aggregate tests);test_sweep_plan.pyhas a mechanical assertion update (matrix is now an expression,--splits ${{ matrix.parts }}).Measurements (from
gh apirun history)Open
BUSY_ABOVE=8is my own choice; promoter-bot's busy-mode value is not in the repo._scansis 1.5G across many engine keys).Remaining slices
docs/ci.mdparagraph on the new layout (kept out for the 5-file limit).Class sweep
Class: a CI layout hard-coded as "warm + 4 parts" in tests and docs. Sibling gaps:
docs/ci.mdstill describes the fixed layout.Gates:
pr_gates --fast6/6,pr_gates --ratchets8/8,tests/tools1505 passed (1 failure,test_pin_requirements_check_all, touches no file in this diff),time_ratchet.py check0 over the limit.CI on a952113
ground-truth-warm+ parts 1/4-4/4 all green,ground-truthgreen (same ledger gate as main).detred only becausedb2 4/4could not pull the pinned Db2 image (infrastructure). Its 12 cases never reported. The 4 NOT PROVEN det cases (cbsa-crecust, mortgage-csmrt, mortgage-mpmt, zecs-zecs003) are the expected set (sweep: as expected), not a regression.🤖 Generated with Claude Code