Repository navigation
Description
Problem (measured 2026-10-09). Det Sweep takes 25–33 min per PR, but its proving steps take only 6–10 min per shard. The rest is waiting for runners at the job level. Shards started 2–7 min after plan, and det started 8 min after the last shard (run 37967292684). The repo starts ~32 workflows (~40 jobs) per PR push, so one PR fills the org's concurrent-job cap (probably 20 on Free), and every other PR and the evidence bot queue behind it. Meanwhile the planner (tests/tools/det_sweep_plan.py) does a full sweep for any translator, harness or tools change, and shards are balanced by name (no det_sweep_durations.json is committed).
Local timings (full non-Db2 sweep, 80 cases): ~68 runner-minutes of proving; the longest case ~3.8 min (carddemo-trnrpt, carddemo-posttran, cbsa-updacc-generated, carddemo-dailyval). Longest shard by shard count: 6 → ~11 min, 10 → ~7 min, 20 → ~3.8 min, which is the floor.
Proposal (owner-approved direction, 2026-10-09)
- Verdict key per case: a hash of everything the det verdict depends on:
- the case directory and corpus pin;
- the harness and oracle components the case uses (evidence: finer-grained fingerprints — a case goes stale only when the harness/runtime parts it uses change #4731 / evidence: fingerprint the harness, oracle and generator per component (Fixes #4731) #4785);
- the generated port's bytes (translate all cases, which is cheap with no Docker;
det_port checkalready diffs ports); - the cobolrt runtime, the GnuCOBOL image digest and the JDK.
- Verdict cache on main, outside the git tree (an Actions cache or artifact; never committed, so it can't churn like the ledger did, see det_coverage_ledger: keep unchanged entries (stops the evidence-refresh loop that dirties every ledger PR) #4813 / bot-generate cics_spec_status.md (like the evidence report) and per-case coverage-ledger files, to end merge-main + re-render cycles #4789). Each key maps to verdict, coverage, duration and the proving run/sha.
- Copy forward on PRs.
plantranslates every case and computes the keys. A hit carries the verdict forward, labelled "carried from run X @ sha". A miss is proven. When in doubt (an unmapped file, an unknown component), prove. - Prioritize misses:
- cases whose port changed;
- cases re-keyed only by a harness or oracle component;
- known-unstable cases;
- longest-first within shards.
Report the first failure early as an annotation, but finish the list so the ratchet sees every case.
- Work-sized shards, up to 20. N = ceil(planned minutes / ~4), capped at 20, balanced by LPT on recorded durations (commit or cache
det_sweep_durations.json, refreshed by the nightly run). A typical PR starts 0–2 shards; a full sweep starts 15–20. - Main moved under an open PR. Recompute the PR's keys on the new main; rerun only the cases whose key changed (works with merge_train today, and a GitHub merge queue later).
- Honesty check. The nightly sweep ignores the cache, proves everything fresh, and fails if any carried verdict differs from the fresh one (a key that missed a dependency). Carried verdicts never feed evidence records, which keep their own proofs.
Also in scope (cheap runner savings): fold the small audit workflows (ruff, mypy, dead-key, AST/tree-sitter accuracy, golden guard and similar) into one job, so ~10 jobs of setup per PR become 1.
Out of scope / owner decision: a plan upgrade (Team: 60 concurrent jobs) or self-hosted runners.
Acceptance.
- A PR that changes 1–3 ports proves only those cases plus their dependents.
- A harness change proves only the cases that use the changed component.
- A full sweep runs on ≤ 20 shards, with its longest shard ~4–5 min of proving.
- The nightly no-cache audit passes, and a test shows it fails on a planted wrong carried verdict.
- Det Sweep wall clock on a typical PR is under 10 min.
Order. Start after #4789 (per-case ledger) lands, since both change how sweep outputs are stored; #4813 (ledger idempotency) is a prerequisite.
🤖 Generated with Claude Code
Activity
det sweep: a translator change proves only the ports it changes; work…
ci: core checks always report (required-ready); det sweep proves only…
squid-protocol commentedon Oct 10, 2026
Progress (2026-10-10):
det_port.py checkagainst main and proves only the ports that differ plus dependents (changes confined tocobol_to_java/det/), ci: core checks always report (required-ready); det sweep proves only the ports a translator change moves, shards up to 20 (#4825 1a, #4814 v1) #4826.MAX_SHARDS20), ci: core checks always report (required-ready); det sweep proves only the ports a translator change moves, shards up to 20 (#4825 1a, #4814 v1) #4826.det_sweep_durations.jsoncommitted (it was always swallowed by the*.jsonignore), ci: full suite in 3 parallel parts; det shards balanced by recorded durations (#4825) #4828 in CI.🤖 Generated with Claude Code
ci: main-watch opens an issue when a check fails on main, closes it w…
squid-protocol commentedon Oct 10, 2026
Done; closing.
*.jsonignore before).ci-red-mainissue when it does.Not done and moved: per-component keys for harness/oracle changes → #4847. Dropped: caching the base translation (Actions cache is per-branch, so the hit rate is too low).
🤖 Generated with Claude Code