Skip to content

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
squid-shepherd[bot] merged 1 commit into
mainfrom
churn/6278-20261029T1748Z
Oct 29, 2026
Merged

squid-shepherd[bot] merged 1 commit into
mainfrom
churn/6278-20261029T1748Z

Conversation

@squid-protocol

Copy link
Copy Markdown
Owner

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.yml once 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 build stamps built_at (UTC). select plans full for a map older than MAX_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) and test_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 the test_suite_select_plan.py fixtures), docs/ci.md.

Gates: pr_gates --fast 9/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

  • A bare cat > file 2>/dev/null || ... placed before a heredoc cat reads the terminal, hangs and leaves the body file empty: check wc -c on the body before churn selfcheck.

🤖 Generated with Claude Code

…ans the full suite (Part of #6278, item 5)

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 29, 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 29, 2026 18:06
@squid-shepherd
squid-shepherd Bot enabled auto-merge (squash) October 29, 2026 18:07
@squid-shepherd
squid-shepherd Bot merged commit 6eb8530 into main Oct 29, 2026
60 checks passed
@squid-shepherd
squid-shepherd Bot deleted the churn/6278-20261029T1748Z branch October 29, 2026 18:10
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