Skip to content

Suite shard plan: pin the planned balance of Smoke parts and Gate legs (Part of #5919) - #8553

Merged
squid-shepherd[bot] merged 1 commit into
mainfrom
churn/5919-20261117T0419Z
Nov 17, 2026
Merged

squid-shepherd[bot] merged 1 commit into
mainfrom
churn/5919-20261117T0419Z

Conversation

@squid-protocol

Copy link
Copy Markdown
Owner

Part of #5919 (slice 2 of 4, filler work).

What changed

tests/tools/test_suite_shard_plan.py: two tests pin the planned balance (slowest/fastest part wall, with and without the fixed setup term) of the Smoke parts and of every Full Suite Gate leg, from the committed .test_durations, at <= 1.3.

Finding: the plan is not the source of the measured excess

The 2026-11-16 calibration (issue comment 6938301265) measured Smoke 1.46 and Gate 1.45/1.72/1.97 against the 1.3 limit. suite_shard_plan.py already carries the fixed-cost term (SMOKE_SETUP_S, GATE_SETUP_S, paid per part) and least_duration over the committed durations plans ~1.00 for every part (checked: 23581 tests, 2808 s, 1..6 parts all within 1e-6). Recent Smoke runs show the same plan giving pytest-step times of 274 / 369 / 447 s (run 44015375629) and 261 / 264 / 285 s (run 44010974345): same plan, 1.0-1.6 spread. So the excess is runner/contention noise and tests the durations file does not know, which re-sizing cannot remove. No planner change is made; the tests pin that the model stays balanced, so a regression in it is caught.

Class / Sibling gaps

Class: sharded workflows whose measured slowest/fastest shard ratio exceeds 1.3 (calibration table). Members: Smoke parts (plan balanced; excess is measurement noise, this PR pins the plan); Full Suite Gate ubuntu / windows / macos legs (same, pinned); Det Sweep non-Db2 (2.19), CICS Crucible (1.35), DOOM-rosetta (1.37), Evidence Refresh records / sweep / db2 (1.85 / 1.82 / 1.34): not touched here, different planners. Real next lever for Smoke/Gate: per-part test-phase seconds (setup split out) in the step summary, to tell noise from imbalance (needs a workflow edit). Source: the calibration comment.

Remaining slices

  1. Per-shard test-phase seconds in step summaries (det_sweep_timing.py, ci_digest.py, a test, a workflow edit).
  2. crucible_shard_plan.py balance for CICS Crucible / DOOM-rosetta from measured durations.
  3. Re-run calibration for 7 days, then close CI planner: derive shard counts and timeouts from measured durations and the 20-job pool (generalizes #5882) #5919.

Gates

pytest tests/tools/test_suite_shard_plan.py: 19 passed. ruff format clean on the file. Not run: pr_gates --fast / --ratchets (test-only change).

Lessons for agents

None.

🤖 Generated with Claude Code

@squid-protocol squid-protocol added the shepherd:merge Maintainer: merge when green (auto-merge, squash). Guide: docs/ci.md label Nov 17, 2026
@squid-shepherd

Copy link
Copy Markdown
Contributor

No description provided.

1 similar comment
@squid-shepherd

Copy link
Copy Markdown
Contributor

No description provided.

@squid-shepherd
squid-shepherd Bot marked this pull request as ready for review November 17, 2026 04:44
@squid-shepherd
squid-shepherd Bot enabled auto-merge (squash) November 17, 2026 04:44
@squid-shepherd
squid-shepherd Bot merged commit 289db94 into main Nov 17, 2026
57 checks passed
@squid-shepherd
squid-shepherd Bot deleted the churn/5919-20261117T0419Z branch November 17, 2026 05:10
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.

CI planner: derive shard counts and timeouts from measured durations and the 20-job pool (generalizes #5882)

1 participant