Remove gcov coverage-cache test selection (--only-changes)#1460
Merged
Conversation
…nges/--build-coverage-cache)
…e flag, and weekly cron
Contributor
Qodo reviews are paused for this user.Troubleshooting steps vary by plan Learn more → On a Teams plan? Using GitHub Enterprise Server, GitLab Self-Managed, or Bitbucket Data Center? |
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## master #1460 +/- ##
=======================================
Coverage 61.31% 61.31%
=======================================
Files 72 72
Lines 19771 19771
Branches 2852 2852
=======================================
Hits 12123 12123
Misses 5699 5699
Partials 1949 1949 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
7 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.
Why
The gcov coverage-cache test-selection system (
--only-changes/--build-coverage-cache) is being removed because it is unreliable by construction and was delivering ~zero realized benefit. Evidence from the current tree and CI logs:coverage.pylanded on master 2026-05-27, but the committedtest_coverage_cache.json.gzit ships with was built 2026-03-04 (per its_meta.created) — already ~2.6 months old at merge, with acases_hashthat no longer matches.rebuild-cachejob only uploads a 1-day artifact +actions/cache/save. So the in-repo fallback rots monotonically.git diff failed — falling back to full test suite(shallow clone →merge-basefails). Every fallback path ends in "run the full suite," which still passes — so the breakage is invisible.cases.pychanges.Rather than keep patching a feature whose failure mode is invisible, this removes it cleanly. A more robust approach to test-time reduction will be proposed separately.
What's removed
toolchain/mfc/test/coverage.py, its unit tests, and the staletest_coverage_cache.json.gztestCLI flags:--only-changes,--build-coverage-cache,--changes-branch--only-changesdispatch +--build-coverage-cachebuilder intest.pyrebuild-cachejob, cache download/restore/save steps, theFetch master for coverage diffstep, thedep-checkstep +cases_py/dep_changedoutputs, theONLY_CHANGESenv, theprune_flagincommon/test.sh,common/rebuild-cache.sh, and the weeklyschedulecron (which existed only to refresh the cache)What's preserved
--gcovbuilds and the CodeCov coverage reporting (coverage.yml) — that's a separate feature, untouched../mfc.sh testruns the full suite as before.Verification
ruff,lint_source, formatter clean;./mfc.sh test -lworks;--only-changesnow correctly rejected.needs/job references; net −190 lines.