Skip to content

ground-truth: durations refreshed, cache/layout measured and documented (Part of #5543) - #6146

Merged
squid-protocol merged 1 commit into
mainfrom
churn/5543-docs-measure
Oct 23, 2026
Merged

squid-protocol merged 1 commit into
mainfrom
churn/5543-docs-measure

Conversation

@squid-protocol

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

Copy link
Copy Markdown
Owner

Part of #5543. The warm job + 4 parts (#5559) and the cached scans / queue-depth layout (#5616) are already on main; this PR is the remaining measurement, the .test_durations refresh and the docs section.

What changed (3 hand-written files + 1 regenerated)

  • .test_durations: the 7079 tests/cobol_mainframe/ entries refreshed from the test-times-ground-truth-part-N artifacts of main push run 39774013849 (cache-hit layout) with merge_test_durations.py. The old file had 5747 of those tests and its seconds summed to 2705 against 1298 measured. A least_duration replay of the old file planned four equal 833 s parts that actually ran 279-378 s (spread 26%); the refreshed file plans four 325 s parts. No other entry was touched.
  • docs/ci.md: the cache + layout paragraph and a measured table.
  • tests/tools/test_ci_critical_path_split.py: the recorded-seconds pin raised from 5500 to 7000 tests.

Measured (20-25 evenly spaced successful first-attempt runs per era, run time and queue from the jobs API)

layout runs wall median runner-min median critical path (run time)
2 parts (before #5559) 21 19.6 min 19.2 12.2 min
warm + 4 parts (#5559 only) 23 18.5 min 21.1 9.8 min
warm + 4 parts, cache miss (after #5616) 6 19.6 min 17.2 8.6 min
4 parts, cache hit (after #5616) 6 7.5 min (max 7.9) 10.9 3.6 min
busy 2 parts (after #5616) 8 19.1-20.1 min 13.2-17.1 7.4-10.0 min
  • The 7.5 min target is met on a cache hit (6 of 20 sampled runs; 45% fewer runner-minutes than the 2-part layout). Cache-miss and busy runs are still about 19-20 min wall, dominated by 13-16 min of queue wait summed over 3-5 serial jobs while the runner pool is full. The layout does not move that; runner supply or fewer serial jobs would. Samples are small (6-8 per row): a gap under a minute is noise.
  • Both the cache-hit layout and the busy layout ran on CI (see the Reading paragraph in docs/ci.md).
  • Open: BUSY_ABOVE = 8 (ground-truth: cache the warm scans, pick layout by queue depth (Part of #5543) #5616) is still the worker's pick, not promoter-bot's value.

Checklist: partial [c:9e7607fe] -- the warm-up is paid once (or not at all on a cache hit), but the <= 7.5 min target holds only for cache-hit runs; miss/busy runs are queue-bound
Checklist: done [c:6f7d910e]
Checklist: done [c:ec5a098b]

Class and members

Class: the Mainframe Ground Truth critical path (#5543's checklist), every member below handled or measured here.

member status where
warm-up paid once per run, not per part handled on main (#5559); measured here docs/ci.md table
cached warm scans, warm job skipped on a hit handled on main (#5616); ran on CI (6 of 20 sampled runs) docs/ci.md table
queue-depth busy/calm layout handled on main (#5616); busy ran on CI (8 of 20) docs/ci.md table
part 1 vs part 2 balance, stale .test_durations handled here (refresh + pin 7000) .test_durations, test_ci_critical_path_split.py
ground-truth stays the required check name handled on main; unchanged aggregate job
7.5 min target on cache-miss and busy runs not met: queue-bound (13-16 min summed wait) measured, not fixable by layout

Sibling gaps

Remaining slices

None.

Gates

pr_gates.py --fast 7/7 PASS; test_ci_critical_path_split.py, test_generated_branch.py, test_sweep_plan.py, tests/test_source_reads.py pass; time_ratchet.py check 23560 checked, 0 over (12 warned, none new). --ratchets not run: no engine, golden or ledger input changed.

Owner decisions

Owner OK (2026-10-18): the mainframe-ground-truth.yml workflow edit is approved (allow_workflows), queued on nyx. (This PR does not edit the workflow.)

🤖 Generated with Claude Code

…layout measured in docs/ci.md (Part of #5543)

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 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 03:03
@squid-protocol
squid-protocol enabled auto-merge (squash) October 23, 2026 03:17
@squid-protocol
squid-protocol merged commit 2725b35 into main Oct 23, 2026
45 checks passed
@squid-protocol
squid-protocol deleted the churn/5543-docs-measure branch October 23, 2026 03:29
@squid-protocol

Copy link
Copy Markdown
Owner Author

No description provided.

squid-protocol added a commit that referenced this pull request Oct 23, 2026
…t of #5919)

test_full_suite_parts_are_balanced_by_least_duration looked for `--splits 3`, which
this PR replaced with the planned `--splits "$SPLITS"`. The suite_shard_plan "today's
counts" pins broke when #6146 refreshed .test_durations (Smoke now plans 2 parts):
they assert bounds and leg ordering instead of one day's numbers.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
squid-protocol added a commit that referenced this pull request Oct 23, 2026
…durations, not today's part counts (Part of #6147) (#6148)

#6146 refreshed .test_durations and the plan shrank (Smoke 3 -> 2 parts, ubuntu Gate 2 -> 1, windows 3.11 3 -> 2), which
failed the two tests that pinned the old counts on every Full Suite Gate leg. They now assert the fewest parts that fit
the target inside the cap, per leg.

Co-authored-by: Claude Sonnet 5.5 <[email protected]>
squid-shepherd Bot pushed a commit that referenced this pull request Oct 25, 2026
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