Repository navigation
coverage_map: the map carries built_at and a map older than 3 days plans the full suite (Part of #6278, item 5) - #7025
Merged
Conversation
…ans the full suite (Part of #6278, item 5) Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
Contributor
|
No description provided. |
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.
Part of #6278 (item 5, slice 3): a freshness bound on the nightly per-test coverage map.
Checklist: partial [c:cc68bcd4] -- the map's age is now bounded; left: re-measure runner-min per PR once a map exists (dispatch
engine-coverage-map.ymlonce after merge)Checklist: partial [c:9e7776d2] -- no change to the replays here; engine selection still needs a first nightly map
What changed
coverage_map.py buildstampsbuilt_at(UTC).selectplansfullfor a map older thanMAX_AGE_DAYS(3: two missed nights still select), one with no readable stamp (every map built before this PR), or one stamped in the future. The planner cannot see the Actions cache's own age, so the stamp lives in the file. Before this, a run of missed nightlies left an arbitrarily old map choosing tests for today's engine.Class / Sibling gaps
Class: every way the coverage map can fail to describe the current engine, so the planner must run the suite in full: missing map (handled before), module absent (handled), import-time-only module (handled), spine module over MAX_SHARE (handled), map too old / unstamped / future-stamped (this PR). Member not handled: a test added since the map was built runs only when the PR changes it (by design; the full run stays nightly + post-merge as the net). Sibling gaps: none beyond the re-measure above, which needs a first nightly map to exist.
Tests pin what may be skipped:
test_select_is_full_when_the_map_is_stale_unstamped_or_from_the_future(the limit itself still selects; 1 s past it, no stamp, unparsable, None and future stamps are all full; a naive stamp is read as UTC) andtest_build_stamps_the_map_with_the_build_time; the plan-level map fixtures carry a fresh stamp.Hand-written files (3):
tests/tools/coverage_map.py,tests/tools/test_coverage_map.py(plus a stamp in thetest_suite_select_plan.pyfixtures),docs/ci.md.Gates:
pr_gates --fast9/9 pass; coverage_map / suite_select_plan / tree-guard tests 233 pass. No workflow change, so no runner-minute change (the plan only falls back to full more often when the map is old).Lessons for agents
cat > file 2>/dev/null || ...placed before a heredoccatreads the terminal, hangs and leaves the body file empty: checkwc -con the body beforechurn selfcheck.🤖 Generated with Claude Code