Repository navigation
Document Coverage Measurement and Declare Codecov Flags - #1172
Conversation
Phase 2 of the coverage plan: provide what the integration, regression, and Windows coverage runs consume before any of them exists. - Pin dotnet-coverage and ReportGenerator in the local tool manifest. - Add a coverage settings file that turns on every optional processing step. - Declare the integration, regression, and windows Codecov flags, carrying the host-specific ones forward, and strip the image's /Builder source prefix. - Document the local unit, image, and merge loop in OPERATIONS.md, and how a local rate compares with Codecov's. Co-Authored-By: Claude Opus 5.5 <[email protected]>
Co-Authored-By: Claude Opus 5.5 <[email protected]>
|
A recorded local strict-review pass covers head |
|
No actionable comments were generated in the recent review.
|
| Layer / File(s) | Summary |
|---|---|
Coverage tools and Docker settings .config/dotnet-tools.json, Docker/PlexCleaner.coverage.json |
The tool manifest adds pinned dotnet-coverage and ReportGenerator tools. The Docker settings file configures PlexCleaner processing, conversion, and verification options. |
Codecov flags and path mapping codecov.yml |
Codecov carryforward is disabled by default and enabled for the regression and windows flags. The configuration also declares the integration flag and adds a /Builder/ fix mapping. |
Coverage workflows and release notes OPERATIONS.md, HISTORY.md, README.md |
The operations guide adds local, Docker, report-merging, and Windows coverage instructions. The release notes mention local and Docker coverage measurement. |
Estimated code review effort: 3 (Moderate) | ~20 minutes
Change: Other
Sequence Diagram(s)
sequenceDiagram
participant Developer
participant Coverage as dotnet-coverage
participant UnitTests as PlexCleanerTests
participant DockerTest as Docker test.sh
participant ReportGenerator
Developer->>Coverage: Run local coverage command
Coverage->>UnitTests: Collect test coverage
UnitTests-->>Coverage: Cobertura report
Developer->>Coverage: Run Docker coverage command
Coverage->>DockerTest: Collect in-container coverage
DockerTest-->>Coverage: Coverage report
Developer->>ReportGenerator: Merge Cobertura reports
ReportGenerator-->>Developer: Merged report
Possibly related issues
- ptr727/PlexCleaner#1171: The pull request implements several Phase 2 coverage requirements described in the issue, including coverage tools, flags, path mapping, settings, and documentation.
Possibly related PRs
- ptr727/PlexCleaner#1064: The coverage instructions refer to the hub’s .NET unit coverage uploads and Codecov flags.
- ptr727/PlexCleaner#1065: The Docker coverage instructions use the test script path introduced by this PR.
Suggested labels: chore
Merge Risk: 
Low · up to 9a4e4
-
The coverage instructions can produce an invalid image report when checkout paths contain sed metacharacters. This narrow limitation does not block merging with owner awareness; the existing finding remains unresolved.
Pre-merge checks: 
5
-
Full details: Docstring Coverage
-
Explanation
No eligible functions found in the changed files. Skipping docstring coverage check. Docstring coverage is scoped to functions touched by this diff with cyclomatic complexity of at least 2. Documentation-only edits and deletions within surviving functions are included; unchanged diff context and fully deleted functions are excluded. Analyzed 0 functions across 0 files. (1 skipped: 1 unsupported.)
-
Finishing Touches
-
Generate unit tests (beta)
-
- Commit to this branch
- Create a new PR
-
- Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.
PR Summary by QodoDocument coverage measurement and configure future Codecov flags
AI Description
Diagram
High-Level Assessment
Files changed (6)
|
Code Review by Qodo
1. Coverage instructions fail without jq
|
There was a problem hiding this comment.
🟢 Approval recommended
The reviewed coverage tooling, configuration, and documentation changes have no remaining active issues requiring resolution.
No open issues 🎉
What changed in this PR
This pull request adds the tooling, configuration, and documentation needed to measure unit and Docker-based coverage and prepare future Codecov integration, regression, and Windows coverage runs.
Changes:
- Pins
dotnet-coverageand ReportGenerator as local .NET tools. - Adds coverage-specific Docker settings and Codecov flags.
- Documents local, Docker, merged-report, and Windows coverage workflows.
- Adds the related 3.24 release notes.
Review findings:
- Moderate ([P2]): Disable automatic updates in the Linux coverage settings to avoid repeated external GitHub API requests.
- Nit ([P2]): Make the documented
sed -imerge command portable across GNU and BSDsed.
| File | Description |
|---|---|
README.md |
Adds the coverage measurement entry to the 3.24 summary. |
OPERATIONS.md |
Documents unit, Docker, merged-report, and Windows coverage procedures. |
HISTORY.md |
Records the coverage tooling and settings addition under version 3.24. |
Docker/PlexCleaner.coverage.json |
Enables optional processing and verification paths for coverage runs. |
codecov.yml |
Declares integration, regression, and Windows flags and normalizes Docker source paths. |
.config/dotnet-tools.json |
Pins the coverage collection and report-generation tools. |
Review effort: Lite
Co-Authored-By: Claude Opus 5.5 <[email protected]>
|
A recorded local strict-review pass covers head |
|
Answers to the review findings that opened no thread:
|
I can dismiss the Qodo finding titled “Coverage instructions fail without jq” at |
Summary
Phase 2 of the coverage plan in the
coveragehandoff (#1171). It provides what the integration, regression, and Windows coverage runs need, before any of those runs exists. No C# changes.dotnet-coverageand ReportGenerator in.config/dotnet-tools.json.Docker/PlexCleaner.coverage.json, the default settings with every off-by-default step turned on:DeInterlace,RemoveUnwantedLanguageTracks,RemoveDuplicateTracks,SidecarUpdateOnToolChange,RestoreFileTimestamp,DeleteInvalidFiles,RegisterInvalidFiles.codecov.ymldeclares theintegration,regression, andwindowsflags. Onlyregressionandwindowscarry forward. Afixesrule strips the image builder's/Builder/source prefix.Findings that shape later phases
unitflag. The hub'svalidate-task.ymluploads the .NET unit coverage with no flag, so this repository cannot flag it. Filed as ptr727/ProjectTemplate#3819. Until that lands, unit coverage appears only in the total.--versionprints<version>+<short sha>.win-x64folder is framework-dependent withPlexCleaner.pdbbeside the executable, not single-file.dotnet-coverage collectcan instrument it as shipped.test.shover the Matroska test files, run under coverage in thedevelopimage and merged with the unit tests, gives 75.2% locally (ReportGenerator, project sources only, partial lines counted as covered). The image build is one commit behind this branch.Verification
test.shunderdotnet-coverage collectinptr727/plexcleaner:develop(exit 0, 16 files, 0 errors), and the ReportGenerator merge.codecov.ymlvalidated atcodecov.io/validate.🤖 Generated with Claude Code
Summary by CodeRabbit