Skip to content

fix: report plugin coverage instead of the tests module - #171

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

fix: report plugin coverage instead of the tests module#171
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 ~600 lines of tests. Three separate defects:

  • the e2e step ran -coverpkg=./... from inside tests/, so it instrumented the tests module, not the plugin
  • the codecov job had no actions/checkout, so codecov could not map the reported paths onto repo files
  • download-artifact was called with no name/pattern, which puts each artifact in its own directory, so the *.out glob matched nothing

The last green run on master uploaded 341 bytes. Locally the corrected profile carries 44 blocks.

Scopes coverpkg to github.com/roadrunner-server/headers/v6/..., adds the checkout, downloads with an explicit pattern and path, and replaces the sed filter with the awk prefix strip that jobs uses. Adds a guard that fails the job when the merged summary holds fewer than 10 blocks — tokenless uploads fail open, which is why this went unnoticed.

Also drops -failfast, which hides every failure after the first.

The e2e step ran -coverpkg=./... from inside tests/, so it only ever
instrumented the tests module and the upload filter then dropped every
line. The codecov job also had no checkout and pulled artifacts without
a name, so the *.out glob matched nothing.

Scope coverpkg to the plugin module, check the repo out before
uploading, strip the module prefix with awk like jobs does, and fail the
job when the merged summary holds no plugin blocks.
Copilot AI lite review requested due to automatic review settings August 17, 2026 15:11

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 69.69%. Comparing base (72abb85) to head (60e7f29).
⚠️ Report is 4 commits behind head on master.

Additional details and impacted files
@@             Coverage Diff             @@
##           master     #171       +/-   ##
===========================================
+ Coverage        0   69.69%   +69.69%     
===========================================
  Files           0        1        +1     
  Lines           0       66       +66     
===========================================
+ Hits            0       46       +46     
- Misses          0       13       +13     
- Partials        0        7        +7     

☔ 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 merged commit f87e0df into master Aug 17, 2026
9 of 11 checks passed
@rustatian
rustatian deleted the ci/fix-coverage-reporting branch August 17, 2026 16:45
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