Skip to content

Tests: Smoke shard-plan growth test uses synthetic durations (Part of #8218) - #8219

Merged
squid-shepherd[bot] merged 1 commit into
mainfrom
churn/8218-shard-plan-test
Nov 10, 2026
Merged

squid-shepherd[bot] merged 1 commit into
mainfrom
churn/8218-shard-plan-test

Conversation

@squid-protocol

Copy link
Copy Markdown
Owner

Fixes the nightly Smoke failure on main (9d2d171d1): test_growth_adds_parts_without_a_yaml_edit (assert 1 > 1). Closes #8218 once Smoke next succeeds on main.

Class sweep

Class Same-mechanism siblings Status
Shard-plan test scales the real, CI-varying .test_durations and assumes the result exceeds one part (the nightly restores a calibrated cache smaller than the committed file, so x3 still fits one part) test_a_busy_pool_halves_the_cap (x1000 on real durations, same file) fixed here

Not an infrastructure flake: a rerun would not fix it. A grep of the other tests reading .test_durations / load_durations found no other scaling of real data.

Sibling gaps: none.

Change

tests/tools/test_suite_shard_plan.py: synthetic durations (plan 1 part; x3 plans more; x1000 hits the cap), plus a test with a tiny durations file. The contract tests on the real file are unchanged.

Gates: pytest tests/tools/test_suite_shard_plan.py (17 passed, run from /tmp), ruff format, ruff_audit.py --ci clean.

Cross-repo: none.

Lessons for agents

A test that scales the committed .test_durations depends on the file's size, and the nightly restores a different (smaller) cache: use synthetic durations.

🤖 Generated with Claude Code

… the CI-varying file (Part of #8218)

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 Nov 10, 2026
@squid-shepherd

Copy link
Copy Markdown
Contributor

No description provided.

@squid-shepherd
squid-shepherd Bot marked this pull request as ready for review November 10, 2026 13:34
@squid-shepherd

Copy link
Copy Markdown
Contributor

No description provided.

@squid-shepherd
squid-shepherd Bot enabled auto-merge (squash) November 10, 2026 13:35
@squid-shepherd
squid-shepherd Bot merged commit b2311f3 into main Nov 10, 2026
57 checks passed
@squid-shepherd
squid-shepherd Bot deleted the churn/8218-shard-plan-test branch November 10, 2026 13:41
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.

main is red: GitGalaxy Smoke Tests

1 participant