feat(build): add --clean-cache option to case.build#4978
Draft
mahf708 wants to merge 1 commit intoESMCI:masterfrom
Draft
feat(build): add --clean-cache option to case.build#4978mahf708 wants to merge 1 commit intoESMCI:masterfrom
mahf708 wants to merge 1 commit intoESMCI:masterfrom
Conversation
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## master #4978 +/- ##
==========================================
+ Coverage 28.29% 28.41% +0.11%
==========================================
Files 262 262
Lines 38390 38446 +56
Branches 8126 8138 +12
==========================================
+ Hits 10863 10924 +61
+ Misses 26279 26261 -18
- Partials 1248 1261 +13 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
Reset only the CMake cache (CMakeCache.txt and the small bookkeeping files in CMakeFiles/) without touching compiled object files. This is useful when CMake needs to re-configure (e.g. after editing macros or toolchain settings) but a full --clean-all is too expensive. Adds: - --clean-cache flag in CIME/Tools/case.build (mutually exclusive with the existing --clean-* options) - build._clean_cache_impl and a clean_cache=True path through build.clean, logged under a distinct "build.clean_cache" phase - pytest unit tests covering the happy path, no-op when no cmake-bld dir exists, missing CMakeCache.txt, and dispatch routing in build.clean
96da360 to
743e8f7
Compare
jgfouca
approved these changes
May 7, 2026
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.
Reset only the CMake cache (CMakeCache.txt and the small bookkeeping files in CMakeFiles/) without touching compiled object files. This is useful when CMake needs to re-configure (e.g. after editing macros or toolchain settings) but a full --clean-all is too expensive.
Adds:
Description
Checklist