Skip to content

cache: allow skipping capability checks - #2822

Open
Xuanwo wants to merge 1 commit into
mainfrom
xuanwo/skip-cache-check
Open

cache: allow skipping capability checks#2822
Xuanwo wants to merge 1 commit into
mainfrom
xuanwo/skip-cache-check

Conversation

@Xuanwo

@Xuanwo Xuanwo commented Aug 24, 2026

Copy link
Copy Markdown
Collaborator

Remote cache capability checks read and write the shared .sccache_check object, which can trigger mutation rate limits when many sccache servers start concurrently.

Add SCCACHE_SKIP_CACHE_CHECK to bypass remote capability probes and use each backend's configured rw_mode, including multi-level caches.

Fixes #2132.

@Xuanwo
Xuanwo marked this pull request as ready for review August 24, 2026 16:15
@Xuanwo
Xuanwo requested a review from sylvestre August 24, 2026 16:15
@codecov-commenter

codecov-commenter commented Aug 24, 2026

Copy link
Copy Markdown

Codecov Report

❌ Patch coverage is 90.51724% with 11 lines in your changes missing coverage. Please review.
✅ Project coverage is 73.70%. Comparing base (bf75727) to head (93b180c).

Files with missing lines Patch % Lines
src/cache/cache.rs 87.83% 9 Missing ⚠️
src/cache/multilevel.rs 75.00% 2 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main    #2822      +/-   ##
==========================================
+ Coverage   73.64%   73.70%   +0.05%     
==========================================
  Files          72       72              
  Lines       37814    37915     +101     
==========================================
+ Hits        27849    27946      +97     
- Misses       9965     9969       +4     

☔ 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.

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.

Hitting rate limiting issues due to .sccache_check write checks on GCS

2 participants