Repository navigation
Description
Measured (2026-10-16 to 2026-10-18, last 8 successful PR runs): cics-crucible.yml job crucible takes 24.3 min median, 25.3 min max. That makes it the slowest PR-path job by far; the next slowest is Mainframe Ground Truth at about 10 min per part. It ran on 22 of the ~40 PRs in that window.
Where the time goes: of those 24 minutes, 20.4 min is the step "Measure the crucible against the baseline" (python tests/tools/cics_crucible.py --crucible ../cics-crucible --ci). In the log of run 39142662150, the runner goes through 43 cases one after another, with no pool. They take 21 s each at the median and up to 53 s (pc-wizard, pc-return-immediate, pc-aid-menu, gt-start-retrieve, ca-xctl-versions, ca-link-lengths, about 50 s each). Each case already has its own GnuCOBOL container (docker exec per task) and its own mvn compile, so the cases don't depend on each other. The rest of the job is setup (pip, JDK, Maven cache, image load) and the fixture pytest, about 4 min.
Proposed
- Turn
crucibleinto a matrix of N shards (start with 3 or 4), each with--shard i/N. Partition the cases deterministically, balanced by the case times from a recent run, the way Det Sweep / Mainframe Ground Truth split theirs. Every case must land in exactly one shard: add a completeness check, like full-suite-gate's (Siblings of #5152: CI legs outgrowing their fixed timeout caps #5156). - The baseline ratchet (
tests/cics_crucible/baseline.json) and the coverage ratchet (coverage.json) are checked per shard, restricted to that shard's cases, so both directions still hold: a new failure fails, and a ledgered cell that now passes fails.--update-baselinemust still work unsharded locally. - Merge the per-shard
report.mdand results into one summary and artifact (a smallreportjob withneeds:), so the step summary still shows the whole 710-cell table. - The required check name keeps reporting. If
crucibleis a required status, add an aggregate job under the same name, or update branch protection. - The fixture pytest (
tests/cics_crucible, EQUIVALENCE_E2E=1) runs once, not once per shard. - Alternative or complement: a
--jobs Kprocess pool insidecics_crucible.py. A hosted runner has 4 vCPUs and Maven/javac is CPU-heavy, so measure before choosing. Shards scale better.
Rule: coverage never drops. The same 43 cases and 710 cells are measured, on PRs and on the nightly run.
Acceptance: wall time of the PR job, before and after (target ≤ 10 min), and total runner-minutes per run, in the PR body. The cell totals (pass/fail/unsupported) are identical to an unsharded run on the same SHA.
Activity
ci: shard the CICS Crucible PR job into 4 balanced shards plus a merg…
squid-protocol commentedon Oct 18, 2026
Done in #5530: PR wall time 24.8 → ~8.2 min (4 post-merge runs: 8.2/8.2/8.4/11.0), runner-minutes ~flat (~26 vs ~25), merged report identical to serial (300 pass / 380 fail / 30 unsupported, 710 cells).