Repository navigation
Aggregate CI test run summaries - #10530
Conversation
Co-authored-by: Copilot App <[email protected]>
Co-authored-by: Copilot App <[email protected]> Copilot-Session: df54ad63-598f-4a55-806d-dd25697b1161
There was a problem hiding this comment.
Pull request overview
Adds capability-gated aggregation of GitHub Actions and Azure DevOps CI summaries across dotnet test modules while preserving legacy per-assembly behavior.
Changes:
- Adds required post-processing negotiation and authoritative run-summary metadata.
- Introduces shared, provenance-validated aggregation and CI-specific rendering.
- Adds unit, protocol-contract, and acceptance coverage plus documentation updates.
Show a summary per file
| File | Description |
|---|---|
test/UnitTests/Microsoft.Testing.Platform.UnitTests/IPC/ProtocolTests.cs |
Verifies new handshake IDs. |
test/UnitTests/Microsoft.Testing.Platform.UnitTests/Extensions/ArtifactPostProcessing/ArtifactPostProcessingTests.cs |
Tests required kinds and run summaries. |
test/UnitTests/Microsoft.Testing.Platform.DotnetTestProtocolContract.UnitTests/DotnetTestProtocolContractTests.cs |
Locks protocol constants. |
test/UnitTests/Microsoft.Testing.Extensions.UnitTests/GitHubActionsSummaryReporterTests.cs |
Tests aggregate rendering and upsert behavior. |
test/UnitTests/Microsoft.Testing.Extensions.UnitTests/CiRunSummaryAggregationTests.cs |
Covers aggregation and post-processors. |
test/UnitTests/Microsoft.Testing.Extensions.UnitTests/AzureDevOpsSummaryReporterTests.cs |
Tests aggregate Azure rendering. |
test/IntegrationTests/Microsoft.Testing.Platform.Acceptance.IntegrationTests/DotnetTestPipe/DotnetTestPipeProtocol.cs |
Adds protocol IDs to test infrastructure. |
test/IntegrationTests/Microsoft.Testing.Platform.Acceptance.IntegrationTests/DotnetTestPipe/DotnetTestPipeArtifactPostProcessingTests.cs |
Exercises required processing and run summaries. |
src/Platform/SharedExtensionHelpers/CiRunSummaryAggregation.cs |
Implements shared fragment aggregation. |
src/Platform/Microsoft.Testing.Platform/ServerMode/DotnetTest/IPC/Constants.cs |
Defines new handshake properties. |
src/Platform/Microsoft.Testing.Platform/ServerMode/DotnetTest/DotnetTestConnection.cs |
Consumes SDK capability response. |
src/Platform/Microsoft.Testing.Platform/PublicAPI/PublicAPI.Unshipped.txt |
Tracks new public APIs. |
src/Platform/Microsoft.Testing.Platform/InternalAPI/InternalAPI.Unshipped.txt |
Tracks new internal APIs. |
src/Platform/Microsoft.Testing.Platform/Extensions/ArtifactPostProcessing/IArtifactPostProcessor.cs |
Adds required-processing and run-summary contracts. |
src/Platform/Microsoft.Testing.Platform/Extensions/ArtifactPostProcessing/ArtifactPostProcessingManifest.cs |
Parses authoritative run summaries. |
src/Platform/Microsoft.Testing.Platform/Extensions/ArtifactPostProcessing/ArtifactPostProcessingHandshakeProperties.cs |
Advertises required artifact kinds. |
src/Platform/Microsoft.Testing.Extensions.GitHubActionsReport/PACKAGE.md |
Documents aggregate summaries. |
src/Platform/Microsoft.Testing.Extensions.GitHubActionsReport/Microsoft.Testing.Extensions.GitHubActionsReport.csproj |
Links shared aggregation dependencies. |
src/Platform/Microsoft.Testing.Extensions.GitHubActionsReport/InternalAPI/InternalAPI.Unshipped.txt |
Updates tracked internal surface. |
src/Platform/Microsoft.Testing.Extensions.GitHubActionsReport/GitHubActionsSummaryReporter.cs |
Produces fragments and renders aggregates. |
src/Platform/Microsoft.Testing.Extensions.GitHubActionsReport/GitHubActionsSummaryArtifactPostProcessor.cs |
Writes and upserts final GitHub summaries. |
src/Platform/Microsoft.Testing.Extensions.GitHubActionsReport/GitHubActionsExtensions.cs |
Registers aggregation components. |
src/Platform/Microsoft.Testing.Extensions.AzureDevOpsReport/PACKAGE.md |
Documents aggregate Azure summaries. |
src/Platform/Microsoft.Testing.Extensions.AzureDevOpsReport/Microsoft.Testing.Extensions.AzureDevOpsReport.csproj |
Links shared aggregation dependencies. |
src/Platform/Microsoft.Testing.Extensions.AzureDevOpsReport/InternalAPI/InternalAPI.Unshipped.txt |
Updates tracked internal surface. |
src/Platform/Microsoft.Testing.Extensions.AzureDevOpsReport/AzureDevOpsSummaryReporter.cs |
Produces fragments and renders aggregates. |
src/Platform/Microsoft.Testing.Extensions.AzureDevOpsReport/AzureDevOpsSummaryArtifactPostProcessor.cs |
Produces and uploads final Azure summaries. |
src/Platform/Microsoft.Testing.Extensions.AzureDevOpsReport/AzureDevOpsExtensions.cs |
Registers aggregation components. |
docs/RFCs/018-Artifact-Post-Processing.md |
Extends the artifact-processing design. |
docs/mstest-runner-protocol/004-protocol-dotnet-test-pipe.md |
Documents handshake properties. |
docs/glossary.md |
Describes CI summary aggregation. |
Review details
Tip
Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.
- Files reviewed: 31/31 changed files
- Comments generated: 5
- Review effort level: Balanced
🧪 Expert test review — PR #1053011 new/modified test methods reviewed across 7 test files (integration test files with non-test-body-only changes and pure-deletion files were excluded).
Remaining 6 tests (grade A, mutation fully killed — omitted for brevity)
— all assert exact contracts (exception type, idempotent single upload command, canonical output selection, filename length bound) with no observable weaknesses. This advisory comment was generated automatically. Grades are heuristic
|
There was a problem hiding this comment.
🤖 Automated content by GitHub Copilot. Generated by the Test Reviewer on PR (on open / sync) workflow. · auto · 210.1 AIC · ⌖ 3.65 AIC · ⊞ 16.9K · ◷
Co-authored-by: Copilot App <[email protected]> Copilot-Session: df54ad63-598f-4a55-806d-dd25697b1161
There was a problem hiding this comment.
Review details
Suppressed comments (3)
src/Platform/Microsoft.Testing.Extensions.GitHubActionsReport/GitHubActionsSummaryReporter.cs:608
- The module name is HTML-encoded in the
<summary>label but emitted raw again in this nested heading. With the test value<h1>A&B</h1>, the generated report still contains a live<h1>tag and the module can alter the summary markup. Apply the existing Markdown normalization and then HTML-encode the heading text.
.Append(EscapeInlineCode(module.AssemblyName)).Append("\n\n");
src/Platform/Microsoft.Testing.Extensions.AzureDevOpsReport/AzureDevOpsSummaryReporter.cs:503
- The module name is encoded in the
<summary>label but emitted as raw HTML in this nested heading. The added test value<h1>A&B</h1>therefore still injects a live heading into the generated Azure DevOps Markdown. Preserve the Markdown escaping and HTML-encode the value before appending it.
builder.Append("## ").Append(EscapeCell(module.AssemblyName)).Append("\n\n");
src/Platform/SharedExtensionHelpers/CiRunSummaryAggregation.cs:296
- The authoritative
TestModuleCountis discarded here even though the PR promises SDK-provided module count. Consequently, the new test suppliestestModuleCount: 12for only two fragments yet the aggregate is marked complete, and neither renderer can report that ten module-detail sections are absent. Carry the module count intoCiRunSummaryAggregateand render it and/or use it to flag incomplete module details.
- Files reviewed: 46/46 changed files
- Comments generated: 2
- Review effort level: Balanced
🧵 Parallel-safety audit — PR #10530Parallelization — assemblies touched by this PR's changed test files:
All four assemblies opt in via Findings: A (global-state) Nothing unsafe found. Reviewed the full diff of every changed test file/region in this PR (new tests in
No parallelization-state ( Advisory only — heuristic, non-blocking. Re-run with
|
Summary
dotnet testinvocation while retaining deterministic per-assembly details.The GitHub summary is atomically and idempotently upserted into
GITHUB_STEP_SUMMARY. Azure DevOps emits one idempotenttask.uploadsummarycommand. Truncated runs are explicitly marked partial, malformed fragments fail closed, and internal fragments are collapsed from the final artifact list after successful processing.SDK integration
A coordinated additive dotnet/sdk change is required before hosts defer direct output: consume handshake properties 18/19, retain required-kind singleton groups, return
RequiredPostProcessingSupported=true, and populate the manifestrunSummary. Until then, current reporting behavior is preserved.Validation
Microsoft.Testing.Extensions.UnitTests: 1019 total, 1013 passed, 6 skippedMicrosoft.Testing.Platform.UnitTests: 2150 passedMicrosoft.Testing.Platform.DotnetTestProtocolContract.UnitTests: 23 passedFixes #9003