Skip to content

part_weight_ratio: per-part actual/weight reader for the restored durations (Part of #5162) - #7184

Merged
squid-shepherd[bot] merged 1 commit into
mainfrom
churn/5162-20261030T1847Z
Oct 30, 2026
Merged

squid-shepherd[bot] merged 1 commit into
mainfrom
churn/5162-20261030T1847Z

Conversation

@squid-protocol

Copy link
Copy Markdown
Owner

Part of #5162 (durations weight, slice 3): a reader for the data slice 2 (#7175) started uploading, so the retune-or-stop decision is one command once there are runs.

Checklist: partial [c:5c334ba2] -- no weight change yet: the restored-durations-part-N.json artifacts exist on no push run (slice 2 merged 2026-10-30 18:44 UTC). After 5+ push runs, run part_weight_ratio.py and retune calibrate_test_durations.py only if a part's ratio is stable.

Class / Sibling gaps

Class: the balance weight for a full-suite part does not predict its wall time (cache recorded under -n auto contention). Members: (1) recording calibrated to wall x JOBS: handled (#5133 slice 2, calibrate_test_durations.py); (2) cache stored and restored: handled (#5133 slices 4, 8); (3) diagnosing composition vs runner noise: artifacts handled (#7175), reader handled HERE (part_weight_ratio.py); (4) retuning the weights: missing, blocked on data (needs 5+ push runs carrying the artifact; a stable per-part ratio means retune, a flipping one means stop). Sibling gaps: member 4, a different mechanism (a calibration change in calibrate_test_durations.py), not done here because one run of data would fit noise (19-run balance 1.03-1.73, median 1.18, in docs/ci.md).

Facts checked

Gates

pr_gates.py --fast 9/9 pass (ruff 0.17.1 pinned). tests/tools/test_part_weight_ratio.py 4 pass; test_ci_critical_path_split, test_change_classifier, test_source_reads 50 pass. --ratchets not run (no engine, golden, or ledger input changed).

Remaining slices: after 5+ push runs, read the ratios and retune (see Checklist).

Hand-written files: 3 (tests/tools/part_weight_ratio.py, its test, docs/ci.md).

🤖 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 30, 2026
@squid-shepherd

Copy link
Copy Markdown
Contributor

No description provided.

@squid-shepherd
squid-shepherd Bot marked this pull request as ready for review October 30, 2026 18:58
@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 30, 2026
@squid-shepherd
squid-shepherd Bot enabled auto-merge (squash) October 30, 2026 19:06
@squid-shepherd

Copy link
Copy Markdown
Contributor

No description provided.

1 similar comment
@squid-shepherd

Copy link
Copy Markdown
Contributor

No description provided.

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