Skip to content

CI planner: Smoke parts and Full Suite Gate legs from measured durations (Part of #5919) - #6054

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

squid-protocol merged 2 commits into
mainfrom
churn/5919-20261022T1936Z

Conversation

@squid-protocol

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

Copy link
Copy Markdown
Owner

Part of #5919 (slice 3). Planner only; no workflow edits (they need the owner).

What

tests/tools/suite_shard_plan.py (stdlib, uses ci_shard_plan): --smoke emits matrix ({"group":[1..N]}), splits, timeout; --gate emits the Full Suite Gate include legs (os, python-version, part, splits, [even], timeout, step_timeout = timeout-3) from .test_durations. Windows legs weigh tests equally (even); Windows/macOS multiply the Linux seconds by a calibrated SPEED. Empty/unreadable durations fail the plan loudly. 2 hand-written files (source + tests).

Class

pytest-split suite parts whose count and job timeout are typed into workflow YAML instead of derived from measured .test_durations.

Member Mechanism Status here
Smoke full-suite parts (#5133) group: [1,2,3], --splits 3, timeout-minutes: 30 handled: --smoke (3 parts today)
Full Suite Gate legs (#5156) hand-typed include JSON x2 (part/splits/timeout/step_timeout/even) handled: --gate (ubuntu 2, macOS 2, Win3.11 3, Win3.12 2)
Workflow adoption of the planner plan jobs call the CLI not here: workflow edit, needs the owner
Evidence Refresh Db2 / sweep / records parts different shard keys (cases, not tests) not here: different mechanism

Sibling gaps

Facts checked

  • Today's .test_durations (22249 tests, 4215 s) reproduces today's counts: Smoke 3; Gate ubuntu 2, macOS 2, Windows 3.11 3, Windows 3.12 2.
  • Timeouts differ from the hand-typed ones (Smoke 25 vs 30, ubuntu 24 vs 20, windows 25/29 vs 27/25, macOS 29 vs 26): derived as slowest part x 1.5, floored/ceilinged. Windows/macOS SPEED constants are calibrated to counts, not measured on those runners.
  • audit_check.py all clear; new tests pass under plain pytest from another cwd.

Cross-repo

None. Adoption in the workflows is a follow-up.

Lessons for agents

None new.

Checklist: partial [c:slice3] -- planner and tests only; the workflows still hand-set parts/timeouts.

🤖 Generated with Claude Code

@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.

@squid-protocol
squid-protocol marked this pull request as ready for review October 22, 2026 19:40
@squid-protocol

Copy link
Copy Markdown
Owner Author

No description provided.

@squid-protocol
squid-protocol enabled auto-merge (squash) October 22, 2026 19:40
@squid-protocol

Copy link
Copy Markdown
Owner Author

No description provided.

@squid-protocol squid-protocol added shepherd:merge Maintainer: merge when green (auto-merge, squash). Guide: docs/ci.md and removed shepherd:merge Maintainer: merge when green (auto-merge, squash). Guide: docs/ci.md labels Oct 22, 2026
@squid-protocol

Copy link
Copy Markdown
Owner Author

No description provided.

@squid-protocol
squid-protocol merged commit ff0592b into main Oct 22, 2026
30 checks passed
@squid-protocol
squid-protocol deleted the churn/5919-20261022T1936Z branch October 22, 2026 19:51
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