Skip to content

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

Open
larseggert wants to merge 2 commits intomozilla:mainfrom
larseggert:fix-normalize_prefix_map_arg
Open

Normalize -f*-prefix-map args via SCCACHE_BASEDIRS#2673
larseggert wants to merge 2 commits 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 74.28%. Comparing base (00c8126) to head (0ad2706).
⚠️ Report is 1 commits behind head on main.

Files with missing lines Patch % Lines
src/util.rs 97.56% 1 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main    #2673      +/-   ##
==========================================
+ Coverage   74.26%   74.28%   +0.02%     
==========================================
  Files          70       70              
  Lines       39325    39366      +41     
==========================================
+ Hits        29204    29244      +40     
- Misses      10121    10122       +1     

☔ 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
@sylvestre
Copy link
Copy Markdown
Collaborator

@copilot resolve the merge conflicts in this pull request

experimenting!

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.

3 participants