Skip to content

CI critical path: full-suite parts balanced by least_duration, durations refreshed (Part of #5133, #5162) - #5223

Merged
squid-protocol merged 3 commits into
mainfrom
churn/5133-20261016T0715Z
Oct 16, 2026
Merged

squid-protocol merged 3 commits into
mainfrom
churn/5133-20261016T0715Z

Conversation

@squid-protocol

Copy link
Copy Markdown
Owner

Part of #5133, #5162. Items 1 and 2 of #5133/#5162 (deltas job, ground-truth split, duplicate evidence_components, _match) already merged in #5151 / #5163; this is the remaining "durations weight" box.

Changes

  • smoke-test.yml: the full-suite step passes --splitting-algorithm least_duration.
  • .test_durations: refreshed from run 38835555699's test-times-part-* artifacts (21384 tests). Two entries over the 15 s unmarked limit (a slow-marked 64.6 s, a 15.1 s) are capped at 14.9 s because pr_gates --ratchets reads the file without slow marks.
  • tests/tools/test_ci_critical_path_split.py: pins the algorithm. docs/ci.md: section "Full-suite parts balanced by least_duration".

Cause (differs from the plan's hypothesis in one respect)

Main run 38835555699: part 1 11.9 min, part 2 4.8, part 3 3.5. The default duration_based_chunks cuts contiguous slices, and the committed durations had no entry for 4014 of 21385 tests (1707 in cobol_mainframe), each weighed 0.2 s. Algorithm alone is not the whole fix: replaying each split against that run's real per-test seconds gives:

split part 1 / 2 / 3 (s)
old: chunks, stale durations 2534 / 857 / 558
least_duration, stale durations 1338 / 1290 / 1322
chunks, refreshed durations 1320 / 1313 / 1316
least_duration, refreshed (this PR) 1317 / 1317 / 1317

Critical path

Before (measured): full-suite 11.9 min, set by part 1. After: not measured yet (draft PRs skip heavy CI); expected about 6.5 min by the replay (11.9 x 1317/2534 of the test time, setup unchanged). Needs gh workflow run smoke-test.yml --ref churn/5133-20261016T0715Z for the real number.

Gates

pr_gates --fast 6/6; pr_gates --ratchets --only-ratchets time pass; test_ci_critical_path_split.py, test_merge_test_durations.py pass.

Sibling gaps

  • full-suite-gate.yml still runs test_evidence_components.py on every OS x Python leg.
  • Nightly durations recorder is still -n auto contended seconds (not wall-calibrated); the weights only order tests, so a uniform factor does not change the split. Nightlies have been cancelled lately, so the cache may be stale; a stale cache would reintroduce unrecorded tests.
  • Other rebuilt() callers rebuild all estates per test.

Lessons for agents

  • pytest-split's default algorithm is contiguous chunks; an unrecorded test weighs the average, so a stale .test_durations skews parts badly. Replay a split offline: collect ids, weigh with a test-times-part-* artifact.
  • pr_gates --ratchets reads .test_durations without slow marks: cap slow-marked entries below 15 s.

Cross-repo

None.

🤖 Generated with Claude Code

squid-protocol and others added 2 commits October 16, 2026 03:19
…ons refreshed (Part of #5133, #5162)

Main run 38835555699 had part 1 at 11.9 min vs 4.8 / 3.5. pytest-split's default
duration_based_chunks cuts contiguous slices, and .test_durations lacked 4014 of 21385
tests (1707 in cobol_mainframe) so they weighed 0.2 s each. Replayed against the run's
real per-test seconds: old split 2534/857/558 s, least_duration on the stale file
1338/1290/1322, on the refreshed file 1317 each.

Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
…from source, 15.1 s test baselined (Part of #5133)

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 16, 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 16, 2026 07:27
@squid-protocol
squid-protocol enabled auto-merge (squash) October 16, 2026 07:29
@github-actions

github-actions Bot commented Oct 16, 2026 •

Copy link
Copy Markdown
Contributor

🐦‍⬛ Muninn Security Scan

✅ No security issues found.

🐦‍⬛ Powered by Muninn · Skald Lab

@squid-protocol

Copy link
Copy Markdown
Owner Author

PR #5223 @ dc057c0: 2 failed check(s)

== Muninn (failure) -- real
https://github.com/squid-protocol/gitgalaxy/runs/116865875461
repro: no local equivalent; read the check page
log tail:

== muninn (failure) -- infra
https://github.com/squid-protocol/gitgalaxy/actions/runs/38867323681/job/116863044179
repro: no local equivalent; read the check page
errors:
fail-on: info
muninn: scanning . (formats=sarif,comment, fail-on=info)
log tail:
muninn: wrote muninn.sarif
muninn: found 1 finding(s) at or above "info" severity
##[group]Run github/codeql-action@2892aa5
with:
sarif_file: muninn.sarif
checkout_path: /home/runner/work/gitgalaxy/gitgalaxy
token: ***
matrix: null
wait-for-processing: true
##[endgroup]
Job run UUID is 4aff7940-f5b4-4d06-8829-ddf3d0df9ae4.
Post-processing sarif files: ["muninn.sarif"]
Validating muninn.sarif
Adding fingerprints to SARIF file. See https://docs.github.com/en/code-security/reference/code-scanning/sarif-support-for-code-scanning#data-for-preventing-duplicated-alerts for more information.
##[group]Uploading code scanning results
Uploading results
Successfully uploaded results
##[endgroup]
##[group]Waiting for processing to finish
Analysis upload status is complete.
##[endgroup]
Post job cleanup.
##[group]Uploading combined SARIF debug artifact
##[endgroup]
Post job cleanup.
[command]/usr/bin/git version
git version 2.55.0
Temporarily overriding HOME='/home/runner/work/_temp/6811b53e-1230-428e-8a33-b130ac5acf20' before making global git config changes
Adding repository directory to the temporary git global config as a safe directory
[command]/usr/bin/git config --global --add safe.directory /home/runner/work/gitgalaxy/gitgalaxy
Removing SSH command configuration
[command]/usr/bin/git config --local --name-only --get-regexp core.sshCommand
[command]/usr/bin/git submodule foreach --recursive sh -c "git config --local --name-only --get-regexp 'core.sshCommand' && git config --local --unset-all 'core.sshCommand' || :"
Removing HTTP extra header
[command]/usr/bin/git config --local --name-only --get-regexp http.https://github.com/.extraheader
[command]/usr/bin/git submodule foreach --recursive sh -c "git config --local --name-only --get-regexp 'http.https://github.com/.extraheader' && git config --local --unset-all 'http.https://github.com/.extraheader' || :"
Removing includeIf entries pointing to credentials config files
[command]/usr/bin/git config --local --name-only --get-regexp ^includeIf.gitdir:
[command]/usr/bin/git submodule foreach --recursive git config --local --show-origin --name-only --get-regexp remote.origin.url
Cleaning up orphan processes

@squid-protocol squid-protocol added shepherd:needs-fix Bot: a real failure on this head; see the digest comment. Guide: docs/ci.md shepherd:retrying Bot: an infra/flake rerun is pending on this head. Guide: docs/ci.md labels Oct 16, 2026
…ate-key), make the PL/I linear test cheaper (Part of #5133)

Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
@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 16, 2026
@squid-protocol

Copy link
Copy Markdown
Owner Author

No description provided.

@squid-protocol squid-protocol removed shepherd:needs-fix Bot: a real failure on this head; see the digest comment. Guide: docs/ci.md shepherd:retrying Bot: an infra/flake rerun is pending on this head. Guide: docs/ci.md labels Oct 16, 2026
@squid-protocol

Copy link
Copy Markdown
Owner Author

No description provided.

1 similar comment
@squid-protocol

Copy link
Copy Markdown
Owner Author

No description provided.

@squid-protocol
squid-protocol merged commit ac765dc into main Oct 16, 2026
35 checks passed
@squid-protocol
squid-protocol deleted the churn/5133-20261016T0715Z branch October 16, 2026 08:09
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