Skip to content

Comments

Use different hashing functions for different file types#1135

Merged
mitchhentges merged 2 commits intomozilla:mainfrom
FooBarWidget:feature/ar-hash
Mar 3, 2022
Merged

Use different hashing functions for different file types#1135
mitchhentges merged 2 commits intomozilla:mainfrom
FooBarWidget:feature/ar-hash

Conversation

@FooBarWidget
Copy link
Contributor

This pull request is a rebased version of #197, originally made by @metajack.

This adds a new special hasher for static libraries, which contain timestamps and other info that prevent them from being cachable in some cases.

This adds a new special hasher for static libraries, which contain timestamps
and other info that prevent them from being cachable in some cases.
@codecov-commenter
Copy link

codecov-commenter commented Feb 25, 2022

Codecov Report

Merging #1135 (3d56e28) into main (e8c9ca0) will decrease coverage by 23.31%.
The diff coverage is 36.17%.

Impacted file tree graph

@@             Coverage Diff             @@
##             main    #1135       +/-   ##
===========================================
- Coverage   57.81%   34.50%   -23.32%     
===========================================
  Files          47       47               
  Lines       12107    12472      +365     
  Branches     2184     6487     +4303     
===========================================
- Hits         7000     4303     -2697     
- Misses       3727     4097      +370     
- Partials     1380     4072     +2692     
Impacted Files Coverage Δ
src/util.rs 41.35% <30.55%> (-17.06%) ⬇️
src/compiler/rust.rs 31.78% <54.54%> (-25.92%) ⬇️
src/test/tests.rs 34.00% <0.00%> (-61.21%) ⬇️
tests/sccache_cargo.rs 30.59% <0.00%> (-53.47%) ⬇️
src/test/utils.rs 36.36% <0.00%> (-46.97%) ⬇️
src/lru_disk_cache/mod.rs 41.03% <0.00%> (-38.36%) ⬇️
tests/system.rs 30.63% <0.00%> (-37.72%) ⬇️
src/compiler/compiler.rs 35.30% <0.00%> (-36.61%) ⬇️
tests/harness/mod.rs 43.75% <0.00%> (-35.48%) ⬇️
src/azure/credentials.rs 48.07% <0.00%> (-33.48%) ⬇️
... and 35 more

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update e8c9ca0...3d56e28. Read the comment docs.

Copy link
Contributor

@mitchhentges mitchhentges left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good, but I'd prefer if we updated the "Unix archive" comment if possible.
Thanks for rebasing this patch!

Co-authored-by: Mitchell Hentges <[email protected]>
@mitchhentges
Copy link
Contributor

Thanks again for rebasing this, great work! Let's get it landed :)

@mitchhentges mitchhentges merged commit 6d96315 into mozilla:main Mar 3, 2022
@FooBarWidget FooBarWidget deleted the feature/ar-hash branch March 5, 2022 13:29
emabrey pushed a commit to emabrey/sccache that referenced this pull request Aug 10, 2022
* Use different hashing functions for different file types

This adds a new special hasher for static libraries, which contain timestamps
and other info that prevent them from being cachable in some cases.

* Update src/util.rs

Co-authored-by: Mitchell Hentges <[email protected]>

Co-authored-by: Jack Moffitt <[email protected]>
Co-authored-by: Mitchell Hentges <[email protected]>
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