Skip to content

ci: use absolute LLVM_PROFILE_FILE path to fix 0% coverage - #5

Merged
sylvestre merged 1 commit into
mainfrom
fix-coverage-profraw-path
May 29, 2026
Merged

sylvestre merged 1 commit into
mainfrom
fix-coverage-profraw-path

Conversation

@sylvestre

Copy link
Copy Markdown
Contributor

The test suite spawns the grep binary inside per-test temporary directories (via uutests). With a relative LLVM_PROFILE_FILE, each subprocess wrote its .profraw into that tempdir, which gets deleted when the test ends, so the binary executing the src/ code left no coverage data and grcov reported every line as a miss (0%).

Anchoring the path to the workspace root makes the profraw files survive, raising reported coverage from 0% to ~96%.

The test suite spawns the grep binary inside per-test temporary
directories (via uutests). With a relative LLVM_PROFILE_FILE, each
subprocess wrote its .profraw into that tempdir, which gets deleted
when the test ends, so the binary executing the src/ code left no
coverage data and grcov reported every line as a miss (0%).

Anchoring the path to the workspace root makes the profraw files
survive, raising reported coverage from 0% to ~96%.
@codecov

codecov Bot commented May 28, 2026 •

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 94.94%. Comparing base (80e1fb8) to head (3bf91e5).

Additional details and impacted files
@@            Coverage Diff             @@
##            main       #5       +/-   ##
==========================================
+ Coverage   0.00%   94.94%   +94.94%     
==========================================
  Files          6        6               
  Lines       1404     1404               
  Branches     139      139               
==========================================
+ Hits           0     1333     +1333     
+ Misses      1404       69     -1335     
- Partials       0        2        +2     
Flag Coverage Δ
macOS_latest 95.76% <ø> (+95.76%) ⬆️
ubuntu_latest 95.76% <ø> (+95.76%) ⬆️
windows_latest 0.00% <ø> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.

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

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.

1 participant