Skip to content

Conversation

@iTrooz
Copy link
Contributor

@iTrooz iTrooz commented Jul 2, 2025

sccache server disk cache is usually initiated by the first compilation request. If sccache -s is issued before then, sccache will not return the currently occupied cache size. This PR fixes that by querying the underlying LruDiskCache in current_size(). I don't think there are performance implications of this, but I am not sure.

I also renamed LazyDiskCache to LazyLruDiskCache, because I think the name is more clear. Let me know if you want me to revert that change

@codecov-commenter
Copy link

codecov-commenter commented Aug 20, 2025

Codecov Report

❌ Patch coverage is 91.66667% with 2 lines in your changes missing coverage. Please review.
✅ Project coverage is 71.58%. Comparing base (9fd99c7) to head (dc7243d).

Files with missing lines Patch % Lines
src/cache/disk.rs 83.33% 2 Missing ⚠️
Additional details and impacted files
@@           Coverage Diff           @@
##             main    #2419   +/-   ##
=======================================
  Coverage   71.58%   71.58%           
=======================================
  Files          65       66    +1     
  Lines       36372    36384   +12     
=======================================
+ Hits        26037    26047   +10     
- Misses      10335    10337    +2     

☔ View full report in Codecov by Sentry.
📢 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.

@sylvestre sylvestre force-pushed the always_show_cache branch 2 times, most recently from dfb055c to 93868cb Compare September 23, 2025 13:37
I think this name makes more sense, given that this type holds a lazily initialized LRU cache
sccache server disk cache is usually initiated by the first compilation request. If `sccache -s` is issued before then, sccache will not return the currently occupied cache size

This PR fixes that
@iTrooz
Copy link
Contributor Author

iTrooz commented Sep 25, 2025

Hello, do you need me to do something on this PR ?

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.

2 participants