Skip to content

CI: wall-calibrated nightly full-suite durations (Part of #5133) - #6170

Merged
squid-protocol merged 2 commits into
mainfrom
churn/5133-20261023T0553Z
Oct 23, 2026
Merged

squid-protocol merged 2 commits into
mainfrom
churn/5133-20261023T0553Z

Conversation

@squid-protocol

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

Copy link
Copy Markdown
Owner

Part of #5133 (slice 2: wall-calibrated .test_durations recording in the smoke-test.yml nightly recorder).

Design: the nightly parts record their pytest-step wall seconds and scale their --store-durations file to sum to it before the merge job; merge_test_durations.py is unchanged and PR runs are unchanged (schedule-only step).

Class

Nightly per-test seconds recorded under -n auto contention are not wall time, so least_duration balances the full-suite parts by the wrong weights.

Member Status Evidence
smoke-test.yml nightly full-suite parts (recorder) handled here calibrate_test_durations.py + workflow step, test_calibrate_test_durations.py
merge job / merge_test_durations.py input shape handled (compatible, unchanged) test merges calibrated outputs
full-suite-gate.yml shards sibling gap split on the committed .test_durations, no recorder
ground-truth parts' test-times-* artifacts sibling gap merged into .test_durations by hand
time-ratchet GITGALAXY_TEST_TIMES seconds sibling gap also contended; a ratchet input, not a split weight

Sibling gaps

None needs a burned-estate program.

  • full-suite-gate.yml shards: partial. Different workflow with no nightly recorder, so it would double the PR; source .github/workflows/full-suite-gate.yml:193.
  • Ground-truth test-times-* artifacts: manual merge. Needs its own recorder job in mainframe-ground-truth.yml; source docs/ci.md (Mainframe Ground Truth: stop paying the 3-4 min warm-up per part; ~11 min PR check, now the slowest #5543 section).
  • Ratchet times file: contended seconds; changing them moves the baseline, so a separate decision; source tests/tools/time_ratchet.py.

Before / after

Before (docs/ci.md, 8 main push runs 2026-10-22): parts 4.6 / 4.8 / 4.3 min mean; per-run max/min 1.24-1.77; 0 of 8 within 1.2.
After: not measured. The nightlies of 2026-10-20..22 were all cancelled, so no calibrated cache exists. Re-measure on the main push runs after the first completed nightly; the 20% acceptance is not claimed and #5133 stays open.

Tests and gates

New tests/tools/test_calibrate_test_durations.py (scaling, refusals, both file shapes, merge compatibility, workflow step order and file names); merge, critical-path and full-suite-gate workflow tests pass (49); plain pytest from /tmp passes; audit_check.py clear; pr_gates.py --fast 7/7. actionlint not installed here.

Cross-repo

None. docs/ci.md is also touched by PR #6155 (three lines changed here); whichever merges second rebases.

Lessons for agents

  • The calibration wall includes collection and xdist start-up, a per-part constant folded into the weights.

🤖 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 23, 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 23, 2026 05:59
@squid-protocol
squid-protocol enabled auto-merge (squash) October 23, 2026 06:01
@squid-protocol

Copy link
Copy Markdown
Owner Author

No description provided.

@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