Skip to content

fix: measure plugin coverage in CI - #19

Merged
rustatian merged 1 commit into
masterfrom
ci/fix-coverage-reporting
Aug 17, 2026
Merged

fix: measure plugin coverage in CI#19
rustatian merged 1 commit into
masterfrom
ci/fix-coverage-reporting

Conversation

@rustatian

Copy link
Copy Markdown
Member

Coverage has been reporting 0% while the suite has ~480 lines of tests.

The test step ran a bare go test from tests/ with no -coverpkg, so the profile recorded nothing from the plugin. The transform step used sed '2,${/roadrunner/!d}', which filters lines but never strips the module prefix, so anything that did survive stayed unmappable.

config_test.go in the root module also never ran in CI.

Scopes coverpkg to github.com/roadrunner-server/protoreg/v6/..., runs ./... rather than the bare package, adds a root unit step, and replaces the sed with the awk prefix strip that jobs uses. Locally the corrected e2e profile carries 68 blocks at 77.7%. Adds a guard that fails the job when the summary holds fewer than 10 blocks — tokenless uploads fail open, which is why this went unnoticed.

Also drops -failfast.

The test step ran bare `go test` from tests/ with no -coverpkg, so the
profile never recorded plugin packages and the sed filter left the
module prefix in place on what did survive.

Scope coverpkg to the plugin module, run the root unit tests, strip the
prefix with awk, and fail the job when the summary holds no plugin
blocks.
Copilot AI lite review requested due to automatic review settings August 17, 2026 15:13

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot encountered an error and was unable to review this pull request. You can try again by re-requesting a review.

@codecov

codecov Bot commented Aug 17, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 70.37%. Comparing base (00b9f05) to head (7d7a1cb).

Additional details and impacted files
@@             Coverage Diff             @@
##           master      #19       +/-   ##
===========================================
+ Coverage        0   70.37%   +70.37%     
===========================================
  Files           0        3        +3     
  Lines           0      108      +108     
===========================================
+ Hits            0       76       +76     
- Misses          0       19       +19     
- Partials        0       13       +13     

☔ View full report in Codecov by Harness.
📢 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.

@rustatian rustatian self-assigned this Aug 17, 2026
@rustatian
rustatian merged commit 4f79398 into master Aug 17, 2026
8 of 11 checks passed
@rustatian
rustatian deleted the ci/fix-coverage-reporting branch August 17, 2026 16:43
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