Skip to content

Publish coverage as gist badge instead of Codecov - #162

Merged
JulianSchmid merged 2 commits into
masterfrom
migrate-coverage-to-gist-badge
Jul 21, 2026
Merged

Publish coverage as gist badge instead of Codecov#162
JulianSchmid merged 2 commits into
masterfrom
migrate-coverage-to-gist-badge

Conversation

@JulianSchmid

@JulianSchmid JulianSchmid commented Jul 21, 2026

Copy link
Copy Markdown
Owner

Summary by CodeRabbit

  • New Features

    • Added a coverage status badge to the README and documentation template.
    • Coverage reporting now displays the percentage for production code, excluding test files.
    • The coverage badge is automatically updated with the latest percentage and corresponding status color.
  • Documentation

    • Updated project documentation to include the new coverage status indicator alongside existing project badges.

Replace the Codecov upload with a coverage badge served from a gist,
matching the setup in someip-parse-rs. The workflow now extracts the
line coverage percentage from the without-tests export and publishes it
via schneegans/dynamic-badges-action on pushes to master.
@coderabbitai

coderabbitai Bot commented Jul 21, 2026

Copy link
Copy Markdown
Contributor

Review Change Stack

Warning

Review limit reached

@JulianSchmid, you've reached your PR review limit, so we couldn't start this review.

Next review available in: 16 minutes

Enable usage-based reviews in Billing to review now. Otherwise, wait until the next included review is available.
You're only billed for reviews past your plan's rate limits ($0.25/file).

How can I continue?

After more reviews become available, a review can be triggered using the @coderabbitai review command as a PR comment. Alternatively, push new commits to this PR.

To avoid repeated limits, reduce automatic review volume by pausing incremental auto-reviews earlier, using label-based review opt-in, excluding WIP or generated PR titles, or requesting reviews manually when the PR is ready. If your team needs uninterrupted high-volume reviews, an organization admin can enable usage-based reviews.

How do review limits work?

CodeRabbit enforces per-developer PR review limits for each organization. Most developers receive the normal plan review availability.

For paid Pro and Pro+ PR reviews, CodeRabbit uses adaptive limits for sustained high-volume activity. When a developer's recent PR review activity reaches the 95th percentile or higher among CodeRabbit users, additional reviews become available more gradually as earlier reviews age out of the rolling window.

Please refer docs for additional details.

Review details
⚙️ Run configuration

Configuration used: defaults

Review profile: CHILL

Plan: Pro

Run ID: d3bc9d20-3db1-4b75-8731-8e436c0c50e8

📥 Commits

Reviewing files that changed from the base of the PR and between c8ccb06 and 17a3416.

📒 Files selected for processing (1)
  • .github/workflows/coverage.yml
📝 Walkthrough

Walkthrough

Coverage reporting now generates metrics without test files, publishes the resulting percentage through the master-branch workflow, and exposes a coverage badge in the README and template.

Changes

Coverage reporting

Layer / File(s) Summary
Generate test-excluded coverage
coverage/coverage.bash
Adds export_without_tests.json using the merged profile while excluding etherparse/tests/.
Publish coverage badge
.github/workflows/coverage.yml
Reads the exported percentage and conditionally updates the master-branch dynamic coverage badge gist.
Expose coverage status
README.md, README.tpl
Adds coverage status badges to the README and its template.

Estimated code review effort: 2 (Simple) | ~10 minutes

🚥 Pre-merge checks | ✅ 5
✅ Passed checks (5 passed)
Check name Status Explanation
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check ✅ Passed The title clearly matches the main change: switching coverage publication from Codecov to a gist-based badge.
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.
Linked Issues check ✅ Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check ✅ Passed Check skipped because no linked issues were found for this pull request.
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch migrate-coverage-to-gist-badge

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

Pin cargo-binutils to 0.3.6 --locked (0.4.0 panics with clap 4.x,
silently producing empty 0.00% coverage) and make the percentage
extraction fail loudly when the export is missing/empty instead of
publishing a bogus badge. Mirrors the fix in someip-parse-rs.
@JulianSchmid
JulianSchmid merged commit 70f72be into master Jul 21, 2026
11 of 12 checks passed
@JulianSchmid
JulianSchmid deleted the migrate-coverage-to-gist-badge branch July 21, 2026 06:49
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