Skip to content

fix: restore Codecov per-file line coverage - #17

Merged
esrrhs merged 2 commits into
masterfrom
fix/codecov-file-coverage
Sep 18, 2026
Merged

esrrhs merged 2 commits into
masterfrom
fix/codecov-file-coverage

Conversation

@esrrhs

@esrrhs esrrhs commented Sep 18, 2026

Copy link
Copy Markdown
Owner

Summary

  • Master cov job was not actually uploading to Codecov: secrets.CODECOV is empty, so bash codecov.sh -t -f coverage.info sent token=-f and got Repository not found / Invalid request parameters. The || echo hid the failure, so the Files tab has no usable per-file/line data.
  • Switch to codecov/codecov-action@v5, run from the repo root, and extract only src/ + include/ from the lcov report (Boost/CPM//usr paths cannot be matched to GitHub files).

Test plan

  • After merge (or this PR's cov job), open https://codecov.io/gh/esrrhs/fakelua and confirm file tree + line highlighting for src/ files.
  • Confirm the cov job fails instead of silently passing if upload breaks again.

Made with Cursor

esrrhs and others added 2 commits September 18, 2026 17:36
The bash uploader ran with an empty CODECOV secret so -f was parsed as
the token, Codecov returned 404, and CI swallowed it. Upload via
codecov-action from the repo root and only ship src/include lcov data.

Co-authored-by: Cursor <cursoragent@cursor.com>
Co-authored-by: Cursor <cursoragent@cursor.com>
@codecov-commenter

Copy link
Copy Markdown

Welcome to Codecov 🎉

Once you merge this PR into your default branch, you're all set! Codecov will compare coverage reports and display results in all future pull requests.

Thanks for integrating Codecov - We've got you covered ☂️

@esrrhs
esrrhs merged commit d1ba6a5 into master Sep 18, 2026
9 checks passed
@esrrhs
esrrhs deleted the fix/codecov-file-coverage branch September 18, 2026 10:21
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