Skip to content

CI: ground-truth seconds recorded in .test_durations, parts pinned within 20% (Part of #5133) - #5430

Merged
squid-protocol merged 3 commits into
mainfrom
churn/5133-20261018T0809Z
Oct 18, 2026
Merged

squid-protocol merged 3 commits into
mainfrom
churn/5133-20261018T0809Z

Conversation

@squid-protocol

Copy link
Copy Markdown
Owner

Part of #5133 (next unchecked item: measure the ground-truth split after #5264, record the balance, refresh the durations).

What changed

  • .test_durations: the ground-truth tests' real seconds, merged from the test-times-ground-truth-part-1/2 artifacts of main push run 39108505757 (merge_test_durations.py; the two files are disjoint halves). 696 of the 5782 tests/cobol_mainframe/ tests had no entry and 86 had a stale one. Replay of least_duration over the file: 1354 s / 1354 s.
  • tests/tools/test_ci_critical_path_split.py: new test_the_ground_truth_seconds_are_recorded_and_the_parts_balanced (more than 5500 recorded tests, parts within 20%, no single test a quarter of the job).
  • docs/ci.md: the measurement.

Before / after (required check ground-truth)

before after #5264 (run 39108505757)
ground-truth wall one job, about 14-16.5 min part 1 11.0 min, part 2 11.3 min, aggregate green about 1 min later
Parts are within 3% of each other.

Full-suite after-numbers: not measured. Main smoke run 39108505787 was superseded (part 2 cancelled), so there is no clean balance reading; the next completed main smoke run gives it.

Class table

Class: pytest-split groups driven by a stale or incomplete .test_durations.

member status
full-suite parts 1-3 handled by #5223 / #5255, not touched
ground-truth parts 1-2 durations filled here

Gates

pr_gates --fast 6/6; --ratchets --only-ratchets time PASS; the tree-wide guard tests and test_ci_critical_path_split.py / test_merge_test_durations.py / test_time_ratchet.py pass. time_ratchet.py check (no --times): 0 over the limit, 8 warnings (10-11.4 s tests recorded under -n auto contention; the limit is 15 s). Not run: the full --ratchets set (no golden, ledger or engine change) and audit_check.py standalone (no mypy on PATH in the venv; the audits gate inside pr_gates --fast passed).

Sibling gaps

tests/cobol_mainframe/test_evidence_components.py::test_the_components_partition_each_input (about 119 s) is the single heaviest ground-truth test and floors any cut; no burned-estate program needs it.

🤖 Generated with Claude Code

… run 39108505757, parts pinned within 20% (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 18, 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 18, 2026 08:16
@squid-protocol

Copy link
Copy Markdown
Owner Author

No description provided.

@squid-protocol
squid-protocol enabled auto-merge (squash) October 18, 2026 08:21
@squid-protocol

Copy link
Copy Markdown
Owner Author

PR #5430 @ a58f1c1: 1 failed check(s)

== full-suite part 3/3 (failure) -- real
https://github.com/squid-protocol/gitgalaxy/actions/runs/39110817580/job/117626465775
repro: python -m pytest -q tests/tools/test_ci_critical_path_split.py::test_the_ground_truth_seconds_are_recorded_and_the_parts_balanced
failing tests: tests/tools/test_ci_critical_path_split.py::test_the_ground_truth_seconds_are_recorded_and_the_parts_balanced
errors:
fail-on-cache-miss: false
E AssertionError: only 3348 tests/cobol_mainframe/ durations recorded: refresh them
tests/tools/test_ci_critical_path_split.py:88: AssertionError
FAILED tests/tools/test_ci_critical_path_split.py::test_the_ground_truth_seconds_are_recorded_and_the_parts_balanced - AssertionError: only 3348 tests/cobol_mainframe/ durations recorded: refresh them
##[error]Process completed with exit code 1.
log tail:
PYTHONUTF8: 1
GITGALAXY_LICENSE_KEY: COMMUNITY_FREE_TIER
OMP_NUM_THREADS: 1
pythonLocation: /opt/hostedtoolcache/Python/3.12.15/x64
PKG_CONFIG_PATH: /opt/hostedtoolcache/Python/3.12.15/x64/lib/pkgconfig
Python_ROOT_DIR: /opt/hostedtoolcache/Python/3.12.15/x64
Python2_ROOT_DIR: /opt/hostedtoolcache/Python/3.12.15/x64
Python3_ROOT_DIR: /opt/hostedtoolcache/Python/3.12.15/x64
LD_LIBRARY_PATH: /opt/hostedtoolcache/Python/3.12.15/x64/lib
PYTEST_ADDOPTS: --ignore=tests/cobol_mainframe
##[endgroup]
With the provided path, there will be 1 file uploaded
Artifact name is valid!
Root directory input is valid!
Uploading artifact: test-times-part-3.zip
Beginning upload of artifact content to blob storage
Uploaded bytes 174057
Finished uploading artifact content to blob storage!
SHA256 digest of uploaded artifact is e77284f3f5ebb31dfbbdbda4c1b06c452ca91412d2db8131c38ea7deb7d106a2
Finalizing artifact upload
Artifact test-times-part-3 successfully finalized. Artifact ID 12130741765
Artifact test-times-part-3 has been successfully uploaded! Final size is 174057 bytes. Artifact ID is 12130741765
Artifact download URL: https://github.com/squid-protocol/gitgalaxy/actions/runs/39110817580/artifacts/12130741765
Post job cleanup.
[command]/usr/bin/git version
git version 2.55.0
Temporarily overriding HOME='/home/runner/work/_temp/e5640747-95ec-47a8-91d8-375edb702fbc' 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
Terminate orphan process: pid (11558) (sleep)

@squid-protocol squid-protocol added shepherd:needs-fix Bot: a real failure on this head; see the digest comment. Guide: docs/ci.md shepherd:waiting-on-main Bot: the failing check fails on main too (main's to fix). Guide: docs/ci.md and removed shepherd:waiting-on-main Bot: the failing check fails on main too (main's to fix). Guide: docs/ci.md shepherd:needs-fix Bot: a real failure on this head; see the digest comment. Guide: docs/ci.md labels Oct 18, 2026
squid-protocol and others added 2 commits October 18, 2026 06:31
…s, not the CI-restored cache (Part of #5133)

The full-suite parts overwrite the working-tree .test_durations with the restored cache, which has no ground-truth seconds, so the recorded-seconds test saw 3348 entries.

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 18, 2026
@squid-protocol

Copy link
Copy Markdown
Owner Author

No description provided.

@squid-protocol squid-protocol removed the shepherd:needs-fix Bot: a real failure on this head; see the digest comment. Guide: docs/ci.md label Oct 18, 2026
@squid-protocol

Copy link
Copy Markdown
Owner Author

No description provided.

@squid-protocol
squid-protocol merged commit 585c243 into main Oct 18, 2026
28 checks passed
@squid-protocol
squid-protocol deleted the churn/5133-20261018T0809Z branch October 18, 2026 10:59
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