Skip to content

feat: Play nicely with HIP's --offload-compress. - #2788

Open
sjuxax wants to merge 1 commit into
mozilla:mainfrom
sjuxax:feat/detect-clang-ccob
Open

feat: Play nicely with HIP's --offload-compress.#2788
sjuxax wants to merge 1 commit into
mozilla:mainfrom
sjuxax:feat/detect-clang-ccob

Conversation

@sjuxax

@sjuxax sjuxax commented Jul 31, 2026

Copy link
Copy Markdown

HIP’s --offload-compress causes Clang’s -E output to be a binary compressed offload bundle beginning with CCOB. Direct/preprocessor mode treated those bytes as textual # line "file" markers. A coincidental \n# 1... sequence in the compressed payload made the parser search for a filename quote until EOF.

sccache now recognizes the CCOB magic and disables direct include tracking for that invocation. It still hashes the preprocessor output and uses the normal cache path.

Disclosure: this patch written by GPT-5.6 Sol.

HIP’s --offload-compress causes Clang’s -E output to be a binary
compressed offload bundle beginning with CCOB. Direct/preprocessor mode
treated those bytes as textual # line "file" markers. A coincidental
\n# 1... sequence in the compressed payload made the parser search for a
filename quote until EOF.

sccache now recognizes the CCOB magic and disables direct include
tracking for that invocation. It still hashes the preprocessor output
and uses the normal cache path.

Disclosure: this patch written by GPT-5.6 Sol.
@codecov-commenter

codecov-commenter commented Aug 2, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 74.32%. Comparing base (c037e11) to head (3231f32).
⚠️ Report is 1 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #2788      +/-   ##
==========================================
- Coverage   74.32%   74.32%   -0.01%     
==========================================
  Files          71       71              
  Lines       40789    40791       +2     
==========================================
- Hits        30318    30316       -2     
- Misses      10471    10475       +4     

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

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