ci: remove cases.py, definitions.py, and case_validator.py from ALWAYS_RUN_ALL for smarter pruning#1328
Conversation
|
Claude Code Review Head SHA: 54f11a6 Files changed:
Findings:
The rationale ("new tests are conservatively included: not in cache → always runs") only covers the case where a brand-new test is added to
The comment says "adding a parameter doesn't affect tests that don't use it", but |
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Path: .coderabbit.yaml Review profile: CHILL Plan: Pro Run ID: 📒 Files selected for processing (2)
📝 WalkthroughWalkthroughThis change modifies the test invalidation logic by removing 🚥 Pre-merge checks | ✅ 1 | ❌ 2❌ Failed checks (1 warning, 1 inconclusive)
✅ Passed checks (1 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. 📝 Coding Plan
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## master #1328 +/- ##
=======================================
Coverage 45.01% 45.01%
=======================================
Files 70 70
Lines 20562 20562
Branches 1962 1962
=======================================
Hits 9255 9255
Misses 10179 10179
Partials 1128 1128 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
Summary
Most physics PRs change
cases.py(adding tests) anddefinitions.py(adding parameters). With both inALWAYS_RUN_ALL, these PRs always run the full test suite, defeating the coverage-based pruning.Neither file needs to trigger full runs:
cases.py: adding a test doesn't invalidate existing coverage data. New tests aren't in the cache → conservatively included (always run).definitions.py: adding a parameter doesn't affect tests that don't use it. The PR's.fppchanges trigger the relevant tests via coverage overlap.Files that remain in
ALWAYS_RUN_ALL(changes here affect all test outputs):CMakeLists.txt, GPU macro.fppfiles,case.fppcase.py,input.py,case_validator.py,coverage.pytoolchain/cmake/Test plan
cases.py+.fppfiles: pruning kicks in (not full suite)🤖 Generated with Claude Code