Repository navigation
Tests: Smoke shard-plan growth test uses synthetic durations (Part of #8218) - #8219
Merged
Merged
Conversation
… the CI-varying file (Part of #8218) Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
Contributor
|
No description provided. |
Contributor
|
No description provided. |
2 of 3 tasks
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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
.test_durationsand 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)Not an infrastructure flake: a rerun would not fix it. A grep of the other tests reading
.test_durations/load_durationsfound 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 --ciclean.Cross-repo: none.
Lessons for agents
A test that scales the committed
.test_durationsdepends on the file's size, and the nightly restores a different (smaller) cache: use synthetic durations.🤖 Generated with Claude Code