Skip to content

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

Merged
rustatian merged 2 commits into
masterfrom
ci/fix-coverage-reporting
Aug 17, 2026
Merged

fix: report plugin coverage instead of the tests module#107
rustatian merged 2 commits into
masterfrom
ci/fix-coverage-reporting

Conversation

@rustatian

Copy link
Copy Markdown
Member

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

The e2e step ran -coverpkg=./... from inside tests/, so it instrumented the tests module rather than the plugin. The codecov job was already correct, so the awk prefix filter then dropped every line and the upload arrived empty.

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

Scopes coverpkg to github.com/roadrunner-server/logger/v6/... and adds a root unit step. Locally the corrected profile carries 127 blocks. 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.

Note this does not fix the intermittent GPBDecodeException: Unexpected wire type failures — those come from composer update re-resolving the PHP SDK on every run and are handled separately once the plugin betas are tagged.

The e2e step ran -coverpkg=./... from inside tests/, so it instrumented
the tests module and the awk filter then dropped every line. The root
unit tests never ran in CI at all.

Scope coverpkg to the plugin module, add a root unit step, 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:14

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.

The tests module pinned http/v6 beta.8, which pulls api-go beta.13 and
the connect-era protos, while the PHP SDK is on the v1 line. The worker
failed to decode the first frame and exited, so the request came back
500.

TestFileLogger also asserted on "worker constructed" and "201 GET",
neither of which the stack emits: pool logs "worker is allocated" and
the http access log is structured, so the status is a "status":201
field. Assert on what the file logger writes.
@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 79.35%. Comparing base (70058c3) to head (d1c0441).
⚠️ Report is 72 commits behind head on master.

Additional details and impacted files
@@             Coverage Diff             @@
##           master     #107       +/-   ##
===========================================
+ Coverage        0   79.35%   +79.35%     
===========================================
  Files           0        5        +5     
  Lines           0      281      +281     
===========================================
+ Hits            0      223      +223     
- Misses          0       47       +47     
- Partials        0       11       +11     

☔ 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 2e0a09c into master Aug 17, 2026
8 checks passed
@rustatian
rustatian deleted the ci/fix-coverage-reporting branch August 17, 2026 16:53
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