Skip to content

Add CacheConfigs.cache_type_by_name to reduce boilerplate - #2905

Merged
sylvestre merged 4 commits into
mozilla:mainfrom
Felixoid:config-alias-refactor
Oct 13, 2026
Merged

sylvestre merged 4 commits into
mozilla:mainfrom
Felixoid:config-alias-refactor

Conversation

@Felixoid

Copy link
Copy Markdown
Contributor

A follow-up for cfg_aliases feature #2644. Use a single CacheConfigs.cache_type_by_name to get the CacheType.

@codecov-commenter

codecov-commenter commented Oct 13, 2026 •

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 78.00%. Comparing base (ff86bbd) to head (85da875).
⚠️ Report is 2 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #2905      +/-   ##
==========================================
+ Coverage   77.93%   78.00%   +0.06%     
==========================================
  Files          73       73              
  Lines       43073    43136      +63     
==========================================
+ Hits        33569    33648      +79     
+ Misses       9504     9488      -16     

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

Comment thread src/cache/multilevel.rs Resolved
Comment thread src/config.rs Resolved
Comment thread src/cache/cache.rs Resolved
@Felixoid
Felixoid force-pushed the config-alias-refactor branch 2 times, most recently from d6851ad to 513a171 Compare October 13, 2026 13:14
Comment thread src/cache/cache.rs Resolved
@Felixoid
Felixoid force-pushed the config-alias-refactor branch from 513a171 to 85da875 Compare October 13, 2026 19:49
@sylvestre
sylvestre merged commit 7bdb9bd into mozilla:main Oct 13, 2026
51 checks passed
@sylvestre

Copy link
Copy Markdown
Collaborator

Thanks for your PR

seungpyoson added a commit to seungpyoson/sccache that referenced this pull request Oct 22, 2026
Resolve conflicts with mozilla/sccache main (c2a187d):
- src/cache/cache.rs: the fail-closed decode now backs get_with_raw (mozilla#2835)
  and uses the any_cache_remote cfg alias (mozilla#2905); the test follows.
- src/commands.rs: keep the ArtifactNotification loop (mozilla#2875); the read
  error arm collapses to the SCCACHE_IGNORE_SERVER_IO_ERROR check.

Co-Authored-By: Claude Fable 5.1 <[email protected]>
Claude-Session: https://claude.ai/code/session_019VNNohpFLCBvQm2aB5ZHtA
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants