Skip to content

ci: normalize maintained source coverage#416

Merged
JerrettDavis merged 1 commit into
mainfrom
chore/coverage-normalization-gate
May 29, 2026
Merged

ci: normalize maintained source coverage#416
JerrettDavis merged 1 commit into
mainfrom
chore/coverage-normalization-gate

Conversation

@JerrettDavis

Copy link
Copy Markdown
Owner

Closes #412.

Normalizes repository coverage to maintained source and adds explicit 95% Codecov project/patch targets.

Changes:

  • ignores bin/**, obj/**, and generated *.g.cs build output in Codecov
  • applies the same maintained-source filters to CI ReportGenerator output
  • updates quality-gate docs with the current solution-level coverage command and report generation command

Local validation:

  • dotnet test PatternKit.slnx --configuration Release --no-build -p:TestTfmsInParallel=false --collect:"XPlat Code Coverage" --results-directory ./TestResults -- DataCollectionRunSettings.DataCollectors.DataCollector.Configuration.Format=cobertura
  • dotnet tool run reportgenerator with maintained-source filters: 95.3% line coverage
  • dotnet format PatternKit.slnx --verify-no-changes --verbosity minimal
  • docfx docs\docfx.json --warningsAsErrors

Copilot AI review requested due to automatic review settings May 29, 2026 00:18
@github-actions

Copy link
Copy Markdown
Contributor

⚠️ Deprecation Warning: The deny-licenses option is deprecated for possible removal in the next major release. For more information, see issue 997.

Dependency Review

✅ No vulnerabilities or license issues or OpenSSF Scorecard issues found.

Scanned Files

None

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR updates CI and documentation so repository coverage metrics reflect maintained source (excluding build output and generated files) and enforces an explicit 95% Codecov coverage floor, aligning with issue #412.

Changes:

  • Update codecov.yml to ignore bin/**, obj/**, and *.g.cs, and add explicit 95% project/patch status targets.
  • Apply the same maintained-source file filters to CI’s ReportGenerator step.
  • Update quality gate docs to use the solution-level coverage command and document the maintained-source ReportGenerator command.

Reviewed changes

Copilot reviewed 3 out of 3 changed files in this pull request and generated no comments.

File Description
docs/guides/quality-gates.md Updates local coverage and report-generation instructions to match CI and maintained-source filtering.
codecov.yml Adds maintained-source ignores and enforces 95% project/patch coverage targets.
.github/workflows/ci.yml Extends ReportGenerator file filters to exclude obj/, bin/, and *.g.cs from published CI coverage summaries.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@github-actions

Copy link
Copy Markdown
Contributor

Test Results

    12 files      12 suites   6m 54s ⏱️
 3 595 tests  3 595 ✅ 0 💤 0 ❌
10 796 runs  10 796 ✅ 0 💤 0 ❌

Results for commit e082009.

@codecov

codecov Bot commented May 29, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 95.69%. Comparing base (7812e9f) to head (e082009).

Additional details and impacted files
@@            Coverage Diff             @@
##             main     #416      +/-   ##
==========================================
+ Coverage   89.63%   95.69%   +6.06%     
==========================================
  Files         551      551              
  Lines       44183    44183              
  Branches     6357     6357              
==========================================
+ Hits        39604    42282    +2678     
+ Misses       2051     1901     -150     
+ Partials     2528        0    -2528     
Flag Coverage Δ
unittests 95.69% <ø> (+6.06%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 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.

@github-actions

Copy link
Copy Markdown
Contributor

🔍 PR Validation Results

Version: ``

✅ Validation Steps

  • Build solution
  • Run tests
  • Build documentation
  • Dry-run NuGet packaging

📊 Artifacts

Dry-run artifacts have been uploaded and will be available for 7 days.


This comment was automatically generated by the PR validation workflow.

@github-actions

Copy link
Copy Markdown
Contributor

Code Coverage

Summary
  Generated on: 05/29/2026 - 00:26:04
  Coverage date: 05/29/2026 - 00:23:46 - 05/29/2026 - 00:25:52
  Parser: MultiReport (12x Cobertura)
  Assemblies: 5
  Classes: 1616
  Files: 551
  Line coverage: 95.3%
  Covered lines: 42126
  Uncovered lines: 2057
  Coverable lines: 44183
  Total lines: 95379
  Branch coverage: 76.4% (12405 of 16227)
  Covered branches: 12405
  Total branches: 16227
  Method coverage: 96.4% (8351 of 8658)
  Full method coverage: 88.8% (7689 of 8658)
  Covered methods: 8351
  Fully covered methods: 7689
  Total methods: 8658

PatternKit.Core                                                                                                     95.4%
  PatternKit.Application.ActivityTracking.ActivityGateState                                                          100%
  PatternKit.Application.ActivityTracking.ActivityLease                                                              100%
  PatternKit.Application.ActivityTracking.ActivityRecord                                                             100%
  PatternKit.Application.ActivityTracking.ActivityTracker                                                            100%
  PatternKit.Application.Aggregates.AggregateCommandHandler<T1, T2, T3>                                              100%
  PatternKit.Application.Aggregates.AggregateCommandResult<T>                                                        100%
  PatternKit.Application.Aggregates.AggregateRoot<T1, T2>                                                            100%
  PatternKit.Application.AntiCorruption.AntiCorruptionLayer<T1, T2>                                                 90.4%
  PatternKit.Application.AntiCorruption.AntiCorruptionResult<T>                                                      100%
  PatternKit.Application.AuditLog.AuditLogAppendResult<T>                                                           85.7%
  PatternKit.Application.AuditLog.InMemoryAuditLog<T1, T2>                                                          95.4%
  PatternKit.Application.BoundedContexts.BoundedContextAdapter                                                       100%
  PatternKit.Application.BoundedContexts.BoundedContextCapability                                                   83.3%
  PatternKit.Application.BoundedContexts.BoundedContextDescriptor                                                   95.4%
  PatternKit.Application.ContextMaps.ContextMapDescriptor                                                           96.8%
  PatternKit.Application.ContextMaps.ContextMapRelationship                                                          100%
  PatternKit.Application.DataMapping.DataMapper<T1, T2>                                                             94.6%
  PatternKit.Application.DataMapping.DataMapperError                                                                  90%
  PatternKit.Application.DataMapping.DataMapperResult<T>                                                            84.6%
  PatternKit.Application.DomainEvents.DomainEventDispatcher<T>                                                      95.4%
  PatternKit.Application.DomainEvents.DomainEventDispatchResult                                                      100%
  PatternKit.Application.DomainServices.DomainServiceOperation<T1, T2>                                               100%
  PatternKit.Application.DomainServices.DomainServiceRegistry<T1, T2>                                                100%
  PatternKit.Application.EventSourcing.EventStoreAppendResult                                                        100%
  PatternKit.Application.EventSourcing.InMemoryEventStore<T1, T2>                                                   97.9%
  PatternKit.Application.EventSourcing.StoredEvent<T1, T2>                                                            80%
  PatternKit.Application.FeatureToggles.FeatureToggleDecision                                                       87.5%
  PatternKit.Application.FeatureToggles.FeatureToggleRule<T>                                                         100%
  PatternKit.Application.FeatureToggles.FeatureToggleSet<T>                                                         96.9%
  PatternKit.Application.IdentityMap.IdentityMap<T1, T2>                                                             100%
  PatternKit.Application.IdentityMap.IdentityMapResult<T>                                                           92.8%
  PatternKit.Application.MaterializedViews.MaterializedView<T1, T2>                                                 98.4%
  PatternKit.Application.Repository.InMemoryRepository<T1, T2>                                                      92.8%
  PatternKit.Application.Repository.RepositoryResult<T>                                                             93.3%
  PatternKit.Application.ServiceLayer.ServiceLayerOperation<T1, T2>                                                 96.7%
  PatternKit.Application.ServiceLayer.ServiceLayerResult<T>                                                         94.7%
  PatternKit.Application.ServiceLayer.ServiceLayerRule<T>                                                            100%
  PatternKit.Application.Specification.Specification<T>                                                              100%

@JerrettDavis JerrettDavis merged commit 32413fc into main May 29, 2026
13 checks passed
@JerrettDavis JerrettDavis deleted the chore/coverage-normalization-gate branch May 29, 2026 00:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Normalize Codecov to maintained source and enforce 95% coverage floor

2 participants