Skip to content

Conversation

@etr
Copy link
Owner

@etr etr commented Jan 30, 2026

Summary

Fix the broken Codecov upload in GitHub Actions by correcting a typo that prevents coverage data from ever being uploaded.

Problem

In .github/workflows/verify-build.yml at line 672, the upload condition uses matrix.os-type == 'discard' which never matches any matrix value. This should be 'ubuntu'.

Changes

Single character fix: 'discard''ubuntu'

Verification

  • The CI will run on this PR - confirm the coverage job runs without errors
  • After merge, check https://codecov.io/gh/etr/libhttpserver to confirm data appears
  • The README badge should start showing coverage percentage

etr added 6 commits January 30, 2026 15:49
The upload condition used 'discard' which never matches any matrix
value, preventing coverage data from being uploaded. Changed to 'ubuntu'
to match the actual os-type matrix value.
The bash uploader now requires a token and is deprecated.
Using codecov/codecov-action@v5 which handles authentication
automatically for public repos via GitHub OIDC.
The codecov-action@v5 does not auto-process gcov data like the old bash
uploader did. This adds a step to run gcovr to convert .gcda/.gcno files
to Cobertura XML format, which codecov can parse.
Codecov requires authentication token for uploading coverage reports
to protected branches.
The coverage report was unusable because gcovr generated paths relative
to the build directory (e.g., ../src/webserver.cpp). Adding --root ..
ensures paths are relative to the repository root, allowing Codecov to
correctly match source files.
@codecov
Copy link

codecov bot commented Jan 31, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 61.98%. Comparing base (995728e) to head (4cfe7ac).
⚠️ Report is 75 commits behind head on master.

Additional details and impacted files

Impacted file tree graph

@@             Coverage Diff             @@
##           master     #361       +/-   ##
===========================================
- Coverage   95.59%   61.98%   -33.61%     
===========================================
  Files          35       28        -7     
  Lines        3222     1339     -1883     
  Branches        0      562      +562     
===========================================
- Hits         3080      830     -2250     
+ Misses        142      126       -16     
- Partials        0      383      +383     

see 28 files with indirect coverage changes


Continue to review full report in Codecov by Sentry.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update e06f83a...4cfe7ac. Read the comment docs.

🚀 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