Skip to content

Normalize -f*-prefix-map args via SCCACHE_BASEDIRS#2673

Open
larseggert wants to merge 1 commit intomozilla:mainfrom
larseggert:fix-normalize_prefix_map_arg
Open

Normalize -f*-prefix-map args via SCCACHE_BASEDIRS#2673
larseggert wants to merge 1 commit intomozilla:mainfrom
larseggert:fix-normalize_prefix_map_arg

Conversation

@larseggert
Copy link
Copy Markdown

These compound flags embed absolute paths that strip_basedirs cannot reach via preprocessor-output normalization, causing cache misses when the same sources are built from different directories. Extract the OLD path component and strip basedir prefixes from it before hashing.

@codecov-commenter
Copy link
Copy Markdown

codecov-commenter commented Apr 13, 2026

Codecov Report

❌ Patch coverage is 97.61905% with 1 line in your changes missing coverage. Please review.
✅ Project coverage is 73.41%. Comparing base (619c72c) to head (e1ba867).

Files with missing lines Patch % Lines
src/util.rs 97.56% 1 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main    #2673      +/-   ##
==========================================
+ Coverage   72.83%   73.41%   +0.58%     
==========================================
  Files          68       68              
  Lines       37348    37389      +41     
==========================================
+ Hits        27201    27450     +249     
+ Misses      10147     9939     -208     

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

These compound flags embed absolute paths that `strip_basedirs` cannot
reach via preprocessor-output normalization, causing cache misses when
the same sources are built from different directories. Extract the `OLD`
path component and strip basedir prefixes from it before hashing.
@larseggert larseggert force-pushed the fix-normalize_prefix_map_arg branch from 0310045 to e1ba867 Compare April 13, 2026 10:26
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