Skip to content

CI planner: CICS Crucible and DOOM-rosetta shard counts and timeouts from measured weights (Part of #5919) - #6050

Merged
squid-protocol merged 3 commits into
mainfrom
churn/5919-20261022T1910Z
Oct 22, 2026
Merged

squid-protocol merged 3 commits into
mainfrom
churn/5919-20261022T1910Z

Conversation

@squid-protocol

@squid-protocol squid-protocol commented Oct 22, 2026 •

Copy link
Copy Markdown
Owner

Part of #5919 (slice 2: CICS Crucible and DOOM-rosetta, order step 2).

What

  • New tests/tools/crucible_shard_plan.py (stdlib only; plan jobs run pre-install), built on ci_shard_plan from CI planner: Db2 shard count and shard-job timeouts from measured durations (Part of #5919) #6037: cics_plan / doom_plan plus a CLI (--cics DIR, --doom) that emits matrix= and timeout=. CASE_SECONDS moves into it (cics_crucible.py imports it).
  • Unmeasured cases/ports take the median; past the grace (ci_shard_plan.check_measured) the plan fails loudly.
  • Needs the owner (workflow edits not in this PR): wiring the plans into cics-crucible.yml (a plan job; measure matrix, --shard i/N and timeout-minutes from its outputs; crucible needs plan) and doom-rosetta.yml (replace the inline script and SHARDS: "4" with crucible_shard_plan.py --doom; shard timeout from the plan; path filters add the two planner modules). The ready diff is 5919-slice2-workflows.patch in the handoffs dir; the previous head of this branch (43a5835) has it applied.

Calibration (today's inputs reproduce today's counts)

CICS: 43 cases, 1215 s serial -> 2 shards, timeout 20 min (was 30). DOOM: 44 ports, 6.7M LOC -> 4 shards, timeout 20 min (was 30). Setup/throughput constants are estimates (CICS setup 300 s, effective --jobs 2; DOOM 15k LOC/s, setup 420 s), floors at 20 min so a first miscalibration is not a timeout.

Class

Hand-set shard count / timeout-minutes in sharded PR workflows. Covered here: CICS Crucible, DOOM-rosetta. Not here (other mechanisms): Smoke parts (#5133), Full Suite Gate legs (#5156); and feeding measured per-case seconds back from the shards (CASE_SECONDS is still a committed table).

Tests

tests/cics_crucible/test_shards_5498.py: CICS and DOOM growth (balance <= 1.3, cap, busy halving), unmeasured grace and loud failure, case discovery equals cc.discover, real manifest + goldens plan cleanly.
Gates: pr_gates --fast 7/7; tree-wide guards, tests/tools shard/workflow tests, time ratchet (0 over limit); plain pytest from another cwd. No parsing logic touched: no golden bless.

Cross-repo: none.

🤖 Generated with Claude Code

squid-protocol and others added 3 commits October 22, 2026 15:17
…from measured weights (Part of #5919)

crucible_shard_plan.py sizes both workflows through ci_shard_plan: the CICS measure matrix, --shard i/N and
timeout come from the cases and CASE_SECONDS; the DOOM-rosetta shard count, packing and timeout from the
goldens' LOC. Neither workflow types a shard count or a shard timeout any more.

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 22, 2026
@squid-protocol

Copy link
Copy Markdown
Owner Author

No description provided.

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