Skip to content

ci: shard the CICS Crucible PR job (Part of #5498) - #5530

Merged
squid-protocol merged 1 commit into
mainfrom
churn/5498-20261018T2026Z
Oct 18, 2026
Merged

squid-protocol merged 1 commit into
mainfrom
churn/5498-20261018T2026Z

Conversation

@squid-protocol

Copy link
Copy Markdown
Owner

Part of #5498.

Owner decisions

Owner OK (2026-10-18): the cics-crucible.yml matrix/workflow edit is approved (allow_workflows).

What changed

  • tests/tools/cics_crucible.py: --shard i/N (deterministic partition, greedy by CASE_SECONDS from run 39142662150; --ci holds the baseline and coverage ledgers cut to the shard's cases, both directions incl. STALE), --merge DIR... (merges shard results.json, fails unless every case is in exactly one shard and was measured, writes the whole 710-cell report.md, holds the full unsharded ratchet). Unsharded runs and --update-baseline are unchanged; --shard is refused with --cases/--update-baseline/port options.
  • .github/workflows/cics-crucible.yml: measure (matrix of 4 shards), runner-tests (fixture pytest, once, parallel), crucible (keeps the required check name; always(), needs both, merges, publishes report, uploads cics-crucible-results, fails if any shard or the runner tests did not succeed).
  • tests/cics_crucible/test_shards_5498.py: partition covers each case exactly once (N=1..8, plus an unlisted case), determinism/balance, cut-ledger verdict equals whole-ledger verdict, merge refusals, workflow N matches --shard.

Time (estimate from case times; not yet measured on CI)

Cases: 1215 s total; plan is 312/295/295/313 s per shard. Each shard adds setup (checkout, pip, JDK, Maven cache, image load) of about 2-3 min; runner-tests runs alongside. Expected PR wall time about 8-9 min (was 24.3 median), merge job about 2 min after. Runner-minutes rise from about 24 to about 4 x 8 + 5 (runner-tests) + 2 (merge) = about 39, the price of the parallelism. Replace with measured numbers after the first CI run.

Not verified locally

No Docker daemon on this box, so no cobol-stub measurement: the sharded vs unsharded cell totals are checked by unit tests on the merge/ratchet logic only. The first CI run must show 710 cells and the same pass/fail/unsupported totals as main.

Class

Class: CI jobs that run a long serial measurement. Sibling gaps: none found in this workflow; other jobs (Mainframe Ground Truth, Det Sweep) already shard.
Remaining slices: none. Follow-up when case times drift: refresh CASE_SECONDS (balance only, never correctness).

🤖 Generated with Claude Code

…ing required check (Part of #5498)

cics_crucible.py gains --shard i/N (deterministic partition balanced by case seconds, ledgers
cut to the shard's cases) and --merge DIR... (each case in exactly one shard, whole 710-cell
report, full ratchet). The workflow runs 4 measure shards and the runner tests in parallel; job
`crucible` keeps the required check name and aggregates.

Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
@squid-protocol squid-protocol added the shepherd:merge Maintainer: merge when green (auto-merge, squash). Guide: docs/ci.md label Oct 18, 2026
@squid-protocol

Copy link
Copy Markdown
Owner Author

No description provided.

@squid-protocol
squid-protocol marked this pull request as ready for review October 18, 2026 20:32
@squid-protocol
squid-protocol enabled auto-merge (squash) October 18, 2026 20:38
@github-actions

Copy link
Copy Markdown
Contributor

🐦‍⬛ Muninn Security Scan

✅ No security issues found.

🐦‍⬛ Powered by Muninn · Skald Lab

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

shepherd:merge Maintainer: merge when green (auto-merge, squash). Guide: docs/ci.md

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant