You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
fix(ci): use direct coverage for local tool updates - #926
Local .NET tool updates with optional new release notes can pass the coverage gate even when the patch has no measurable source lines. This branch also updates the repository-local ReportGenerator pin from 5.5.11 to 5.5.12.
Changes
Select the direct Codecov-mode patch gate only when the diff modifies .config/dotnet-tools.json and any other changes are new Markdown entries directly under releases/unreleased.entries/.
Keep all four evidence producers and the 95% line and 85% branch thresholds for aggregate and measurable patch coverage, with the existing 0.5 percentage-point tolerance. Mixed code or policy changes continue to require native fan-in.
Cover qualifying and mixed changes with regression tests. Document the exception in the contributor guide, CI guide, fan-in guide, and validation tool reference.
Verification
Verified head bc72d5ba against main at 3600fd198 locally with .NET SDK 10.0.402.
24,678 passed, 13 skipped, zero failures across 59 test projects.
Aggregate coverage
96.35% line and 89.96% branch.
Patch coverage
100% line (7/7) and 100% branch (32/32).
Selection regression
All 23 tool-manifest cases passed. The manifest-plus-release-note plan selected all four producers and the direct patch gate.
Tool restore and formatting
ReportGenerator 5.5.12 restored. Formatting verification for the changed C# files and git diff --check passed.
The coverage lane passed on rerun with a physical macOS temp directory. Both runs used the same source snapshot and patch. GitHub’s native matrix will run on this PR because the branch includes CI selection code.
Auto incremental reviews are disabled on this repository.
Please check the settings in the CodeRabbit UI or the .coderabbit.yaml file in this repository. To trigger a single review, invoke the @coderabbitai review command.
Run configuration
Source mode: Auto
Repository: Unavailable
Branch: Unavailable
File: No configuration file from this repository applied
Commit: Unavailable
Layers: Organization UI
Review profile: ASSERTIVE
Plan: Team
Run ID: c905694d-86b0-4cfc-8d2a-b7d4c30d0184
You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.
Use the checkbox below for a quick retry:
Trigger review
No actionable comments were generated in the recent review.
Summary
Summary by CodeRabbit
Updates
Updated ReportGenerator from version 5.5.11 to 5.5.12.
CI
Qualifying changes limited to the local tool manifest, optionally with new release notes, use the direct patch coverage gate instead of native coverage.
The gate retains all four evidence producers and existing coverage thresholds. Changes that include other paths continue to use native coverage.
Documentation
Updated contribution and coverage guides to explain the selection rules and how direct patch coverage differs from native fan-in.
The ReportGenerator local tool version changes from 5.5.11 to 5.5.12. The evidence workflow adds a tool-manifest-only exception to native coverage selection, with tests and documentation for qualifying changes and retained coverage requirements.
The workflow disables native coverage selection for a modified existing tool manifest, optionally with directly added Markdown release entries. Tests cover qualifying and non-qualifying inventories. The documentation describes retained evidence producers, coverage thresholds, and direct versus native patch-gate behavior.
sequenceDiagram
participant GitDiffInventory
participant RepositoryEvidenceWorkflow
participant SelectionJson
participant DirectPatchGate
participant NativeCoverageMatrix
GitDiffInventory->>RepositoryEvidenceWorkflow: Provide changed paths and statuses
RepositoryEvidenceWorkflow->>RepositoryEvidenceWorkflow: Check the tool-manifest-only predicate
RepositoryEvidenceWorkflow->>SelectionJson: Set requiresNativeCoverage for the inventory
SelectionJson->>DirectPatchGate: Select direct patch coverage when the exception applies
SelectionJson->>NativeCoverageMatrix: Select native coverage when the exception does not apply
Loading
Possibly related PRs
forge-trust/AppSurface#906: Introduces the native coverage fan-in package and guide that this change documents and adjusts selection for.
forge-trust/AppSurface#893: Introduces the Evidence Validation tool whose workflow and documentation this change updates.
Merge Risk: Minimal · previous review bc72d
This PR bumps the ReportGenerator local tool to 5.5.12. It lets manifest-only updates, optionally with new release notes, use the direct patch coverage gate instead of the native matrix. All four evidence producers and the 95% line and 85% branch thresholds stay in force. Mixed changes still require native fan-in. No merge-blocking risk was found.
Pre-merge checks: 4
Check name
Status
Explanation
Title check
The title "fix(ci): use direct coverage for local tool updates" matches the main change: the diff selects the direct Codecov-mode patch gate for qualifying .config/dotnet-tools.json updates, with opti…
Description check
The description states the purpose: local .NET tool updates with optional release notes use the direct coverage gate when the patch has no measurable source lines. It lists the selection rule, the ret…
Linked Issues check
Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check
Check skipped because no linked issues were found for this pull request.
Full details: Title check
Explanation
The title "fix(ci): use direct coverage for local tool updates" matches the main change: the diff selects the direct Codecov-mode patch gate for qualifying .config/dotnet-tools.json updates, with optional new release entries. It is concise, specific, and follows a conventional-commit style. The changeset also includes a ReportGenerator version bump and documentation, which the title does not mention, but that is expected for a title that highlights the primary change.
Full details: Description check
Explanation
The description states the purpose: local .NET tool updates with optional release notes use the direct coverage gate when the patch has no measurable source lines. It lists the selection rule, the retained producers and thresholds, the ReportGenerator pin bump, the regression tests, the documentation updates, and verification results. It relates directly to the changeset.
Finishing Touches
Generate unit tests (beta)
Commit to this branch
Create a new PR
Fix failing CI checks
Commit to this branch
Create a new PR
Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts
A rabbit checked the tool-file line, Then hopped past gates with plans in time. Four evidence paths stayed in view, The patch gate took the manifest through. “Five-five-twelve!” the rabbit cheered, As release notes joined the queue.
Recent review info
Run configuration
Source mode: Auto
Repository: Unavailable
Branch: Unavailable
File: No configuration file from this repository applied
Commit: Unavailable
Layers: Organization UI
Review profile: ASSERTIVE
Plan: Team
Run ID: 0e88ee72-3be0-4b8d-9f22-cf993fc3beae
Commits
Reviewing files that changed from the base of the PR and between 3600fd1 and bc72d5b.
Included review availability: This review used your included allowance. 7 included reviews remain after this review. Your included PR review attempts over the past 7 days set your current allowance at 10 reviews per hour.
The reason will be displayed to describe this comment to others. Learn more.
🟢 Approval recommended
The change is narrowly scoped to tool-manifest-only CI selection behavior, is backed by added regression tests for qualifying and mixed inventories, and is accompanied by comprehensive documentation updates alongside the ReportGenerator version bump.
No open issues 🎉
What changed in this PR
Adjusts CI coverage selection so repository-local .NET tool-manifest-only updates (optionally with new unreleased release-note entry Markdown files) use the direct Codecov-mode patch gate, preventing failures when there are no measurable source lines, and bumps the pinned ReportGenerator tool version.
Changes:
Add a detector for qualifying “.config/dotnet-tools.json modified + optional new releases/unreleased.entries/*.md files” diffs and exempt them from native fan-in selection.
Add regression tests covering qualifying inventories and mixed/non-qualifying inventories.
Document the exception across validation-tool docs and contributor/CI guidance; update the ReportGenerator tool pin to 5.5.12.
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
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.
Local .NET tool updates with optional new release notes can pass the coverage gate even when the patch has no measurable source lines. This branch also updates the repository-local ReportGenerator pin from 5.5.11 to 5.5.12.
Changes
.config/dotnet-tools.jsonand any other changes are new Markdown entries directly underreleases/unreleased.entries/.Verification
Verified head
bc72d5baagainstmainat3600fd198locally with .NET SDK 10.0.402.git diff --checkpassed.The coverage lane passed on rerun with a physical macOS temp directory. Both runs used the same source snapshot and patch. GitHub’s native matrix will run on this PR because the branch includes CI selection code.
Related work