Repository navigation
ci(coverage): rename report label, tolerate upload errors - #73
Merged
Merged
Conversation
Rename the coverage report label from code-coverage-agent to code-coverage/coverlet, matching the tool that produced the report and the naming used by the other plugin repos. Set fail-on-error to false so an upload problem is reported as a warning instead of failing the workflow, since coverage is informational.
Contributor
There was a problem hiding this comment.
🟢 Approval recommended
There are no active review issues blocking the CI coverage-upload configuration change.
No open issues 🎉
What changed in this PR
Updates the CI coverage upload configuration to align report naming across plugin repositories and keep upload failures from failing CI. The library and package are unchanged.
Changes:
- Renames the coverage report label to
code-coverage/coverlet. - Sets
fail-on-error: falseso upload errors produce warnings rather than workflow failures.
| File | Description |
|---|---|
.github/workflows/ci.yml |
Updates the coverage label and error handling, with a comment explaining why uploads are non-blocking. |
Review effort: Balanced
Code coverage overviewLanguages: C# C# / code-coverage/coverlet
Line coverage data for the main branch is not yet available. View coverage of the 10 most covered files.
ℹ️ Calculations represent line coverage. Results may change as calculations are updated. |
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.
Summary
The coverage upload step in
ci.ymlnow uses the labelcode-coverage/coverletinstead ofcode-coverage-agent, and setsfail-on-error: falseso an upload problem shows up as a warning instead of failing the workflow.Why
The label names the tool that produced the report (coverlet, Cobertura format), which is how the other plugin repos label it, so reports line up across repos. Coverage is informational here, so a failed upload should not turn CI red.
This mirrors the same change in Plugin.ByteArrays (#86).
Change Type
Affected Areas
(CI workflow only.)
Behavior And Compatibility
The library and its package are untouched. Coverage reports uploaded from now on appear under the new label; reports uploaded earlier keep the old one.
fail-on-error: falseonly affects the upload step's result.Tests
Workflow-only change. The upload runs on pushes and same-repo PRs, so the first run after merge confirms the new label.
Documentation
Checklist
type(scope): subject)