Skip to content

Comments

feat: handle human size prefixes#2405

Merged
sylvestre merged 6 commits intomozilla:mainfrom
iTrooz:human_size
Sep 30, 2025
Merged

feat: handle human size prefixes#2405
sylvestre merged 6 commits intomozilla:mainfrom
iTrooz:human_size

Conversation

@iTrooz
Copy link
Contributor

@iTrooz iTrooz commented Jun 14, 2025

this PR allows you to specify human sizes in the configuration. For example:

[dist]
toolchain_cache_size = "5G"

[cache.disk]
size = "20G"

As a bonus, I also added for lowercase sizes, e.g. "2k"

@iTrooz iTrooz changed the title handle lower case size prefixes feat: handle lower case size prefixes Jun 14, 2025
@codecov-commenter
Copy link

codecov-commenter commented Jun 14, 2025

Codecov Report

❌ Patch coverage is 84.84848% with 10 lines in your changes missing coverage. Please review.
✅ Project coverage is 71.50%. Comparing base (8f0af50) to head (8deef0f).

Files with missing lines Patch % Lines
src/config.rs 84.84% 10 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main    #2405      +/-   ##
==========================================
+ Coverage   70.78%   71.50%   +0.72%     
==========================================
  Files          65       65              
  Lines       36270    36329      +59     
==========================================
+ Hits        25672    25976     +304     
+ Misses      10598    10353     -245     

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

@iTrooz iTrooz changed the title feat: handle lower case size prefixes feat: handle size prefixes Jun 29, 2025
@iTrooz iTrooz changed the title feat: handle size prefixes feat: handle human size prefixes Jun 29, 2025
@ahartmetz
Copy link
Collaborator

Any open problems here?

@sylvestre sylvestre merged commit a888c16 into mozilla:main Sep 30, 2025
54 checks passed
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.

4 participants