ci: surface code coverage results in PRs and build summaries#7554
Merged
gavinbarron merged 2 commits intomainfrom Apr 1, 2026
Merged
ci: surface code coverage results in PRs and build summaries#7554gavinbarron merged 2 commits intomainfrom
gavinbarron merged 2 commits intomainfrom
Conversation
Add coverage report visibility to both CI pipelines: GitHub Actions (dotnet.yml): - Add MarkdownSummaryGithub report type to ReportGenerator - Write coverage summary to GITHUB_STEP_SUMMARY - Post sticky PR comment with coverage via marocchino/sticky-pull-request-comment - Add pull-requests: write permission for the comment step Azure DevOps (ci-build.yml): - Add --collect:"XPlat Code Coverage" to the test step - Install ReportGenerator and generate merged Cobertura + HTML report - Publish results via PublishCodeCoverageResults@2 task Fixes #7553 Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
baywet
previously approved these changes
Apr 1, 2026
Member
|
sonarqube is supposed to give a coverage report, but it seems broken for this repository? |
Contributor
Author
|
yeah, not a fan of how flaky sonarqube is, plus I'd like to have visibility in the ADO pipeline for easier reporting |
…ures - Add condition: succeeded() to test step so it runs regardless of which conditional build step executed - Add condition: succeededOrFailed() to install ReportGenerator, generate report, and publish coverage steps so coverage is reported even when tests fail Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Contributor
SummarySummary
Coveragekiota - 12.3%
Kiota.Builder - 82.9%
|
MIchaelMainer
approved these changes
Apr 1, 2026
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
Fixes #7553
Coverage data was collected during CI but not surfaced to developers. This PR adds coverage report visibility to both pipelines.
GitHub Actions (.github/workflows/dotnet.yml)
Azure DevOps (.azure-pipelines/ci-build.yml)