Report coverage on PRs with octocov - #289
Merged
Merged
Conversation
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
This comment has been minimized.
This comment has been minimized.
gabrieldeespindula
marked this pull request as ready for review
August 20, 2026 12:35
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Code Metrics Report
Reported by octocov |
This was referenced Aug 20, 2026
This was referenced Aug 20, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Follow-up to #284, which removed the broken qlty integration. This PR adds the coverage reporting that qlty used to provide, using octocov on top of the SimpleCov setup the project already has. It is an alternative to the couve-based flow proposed in #285/#286.
What it does
master, plus a per-file breakdown of the files in the PR scope. The full SimpleCov HTML report (with uncovered lines, file by file) is uploaded as thecoverage-htmlartifact of the run.master: octocov stores the coverage report as a workflow artifact (artifact://datastore), which becomes the baseline that future PRs are compared against.How
.octocov.yml: octocov reads SimpleCov'scoverage/.resultset.jsonnatively — no format conversion, nocc-test-reporterbinary, no external service. Baseline storage and comparison use GitHub Actions artifacts with the built-inGITHUB_TOKEN(no secrets).pushon every branch topull_request+pushonmaster— octocov needs the PR context to comment, and themasterruns to record the baseline (same trigger change as Post coverage report as a PR comment via couve #285).rspecjob:pull-requests: write(comment) andactions: read(baseline artifact).GITHUB_TOKENand could not post the comment. Dependabot PRs are fine: the explicitpermissionskey is honored for them.Notes
masterand the workflow runs there once. From the next PR on, the comment showsmaster X% → PR Y% (+/-)..octocov.yml(e.g.coverage.acceptable: current >= prev), evaluated against the recorded baseline.Tested
.resultset.jsonwith this exact config: parsed it natively and reported 99.5%, exit 0.🤖 Generated with Claude Code