Repository navigation
Add timing, skip and process context to CI diagnostics - #12142
Conversation
Keep Azure DevOps summaries bounded, preserve legacy fragments and failure exits, and add revision-sensitive reporting regressions. Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
There was a problem hiding this comment.
Note
🤖 Automated review by GitHub Copilot. Generated by the Expert Code Review workflow. To request a follow-up action, reply by tagging @copilot directly.
Scope reviewed: the Azure DevOps summary changes (skip reasons, outcome and OS metadata, Elapsed vs Test time wording), the shared CI summary models, reader and aggregation code, the InternalAPI.Unshipped.txt files, PACKAGE.md, the decision record, and the acceptance and unit test wiring.
Findings: no confirmed defects, so I left no inline comments.
- Fragment compatibility: the new JSON fields (
OperatingSystem,SkipReasons,Outcome) are optional and omitted when null. Older fragments are handled and labelled "unavailable" in the output. - Reader validation: the bounds on skip reasons look consistent. Each reason is capped at 512 characters, at most 10 reasons are allowed, and the counts must not exceed
SkippedTests. Aggregation applies the same caps. - Markdown safety: skip reasons go through
EscapeCell.NormalizeSkipReasoncollapses newlines before they reach the table. - Internal API: the
TestRecordconstructor change is declared in bothInternalAPI.Unshipped.txtfiles. The existing 5-argument overload keeps its callers compiling.
Evidence gaps (reviewed from the diff only, nothing was built or executed):
- I didn't check that
TestTimeExplanationrenders correctly in the single-module layout (a blank line is needed after the status strip). - I didn't check that retry or flaky-attempt merging preserves
SkipReasons. - Test-value evidence (red/green runs) is not included in this review. Please link it in the PR description.
There was a problem hiding this comment.
🧪 Test quality review — PR #12142
Compared merge base 7dd2407848979d58f0e9b2bd75101a2dbfa7d1bc with head 0269e3cb4724521dfde20cdd10ea9ea8a87f57cf. Evidence applies to this head, not every intermediate commit.
Test-value evidence
Static predictions only. No code, builds or tests were executed, and no accessible paired red/green records exist for this head. Green CI is not counted as proof.
| Changed contract | Test coverage found | Counterfactual (predicted) | Status |
|---|---|---|---|
SlowestTestsConsumer records all terminal outcomes, ignores superseded retries and non-positive timings, orders ties ordinally, formats F2 invariant, clears state at session start, disables itself under --report-azdo-summary |
SlowestTestsConsumerTests (12 new tests), asserting exact output lines |
A wrong outcome label, tie order, format or clear would likely fail the exact-output assertions | Static prediction: likely detected |
AcceptanceDiagnostics prints the summary only on exit 0, with an exact leading internal-merge-artifacts role |
AcceptanceDiagnosticsTests (3 methods, 10 data cases) |
Dropping the exit-code guard or using a substring match would likely fail the exact-string and empty-list assertions | Static prediction: likely detected |
Azure DevOps aggregate markdown (global top-10, elapsed time, history notice, skip-reason grouping and caps) and the matching CiRunSummary* model/reader/aggregation changes |
AzureDevOpsSummaryReporterTests (9 new tests) and CiRunSummaryAggregationTests (8 new tests) |
Changes to grouping, truncation limits or metadata validation would likely fail the boundary-case tests | Static prediction: likely detected |
| End-to-end packed standalone summary | AzureDevOpsSummaryAcceptanceTests (2 new tests) |
Asserts rendered markdown | Unverified: not run, and needs a pack |
Docs, PACKAGE.md, InternalAPI.Unshipped.txt |
n/a | Non-executable | Not applicable |
I did not exhaustively trace every data case in the two large reporter and aggregation test files. Their detailed per-case assessment is an evidence gap.
🧵 Parallel safety
STATUS: CLEAN (specialist, static read-only analysis). All four assemblies in scope are MethodLevel parallel or unchanged in scope. Counts: Critical=0, High=0, Warning=0, Info=0.
- The
CultureInfomutation inSlowestTestsConsumerTestsis restored infinally. - New temp directories are uniquely named.
- The acceptance fixture is class-scoped.
- The
Program.cschanges do not alter any parallelization attribute.
Per-test assessment
Pseudo-mutation evidence below consists of static predictions, not executed mutation results. Rows are grouped by test class. I did not run the per-test grading skill on each method.
| Result | Quality | Test | Notes | How to improve |
|---|---|---|---|---|
| Uncertain | — | new SlowestTestsConsumerTests.* (12) |
Exact-output assertions look strong, but each method was not graded individually. | Per-method production-branch grading is needed to resolve. |
| Uncertain | — | new AcceptanceDiagnosticsTests.* (3) |
Exact-string and boundary data rows look solid, but were not graded individually. | Per-method production-branch grading is needed to resolve. |
| Uncertain | — | new AzureDevOpsSummaryReporterTests.* (9), CiRunSummaryAggregationTests.* (8), AzureDevOpsSummaryAcceptanceTests.* (2) |
Large changed ranges were only skimmed, not graded per data case. | Per-method production-branch grading is needed to resolve. |
No verified, actionable defects were found, so no inline comments were posted.
This advisory review is heuristic and non-blocking.
Re-run the combined review with /review-tests, or only the parallel-safety specialist with /parallel-audit.
🤖 Automated content by GitHub Copilot. Generated by the Test Quality Review on PR (on open / sync) workflow. · copilot · auto · 57.2 AIC · ⌖ 0.829 AIC · ⊞ 8K · ◷
There was a problem hiding this comment.
🟡 Changes recommended
Enabling --report-azdo-summary outside Azure DevOps suppresses console timings without writing a summary, leaving users without timing output.
1 open issue
What changed in this PR
This PR improves Microsoft.Testing.Platform’s Azure DevOps summaries and acceptance-host diagnostics while keeping console output bounded and preserving existing SDK fallback behavior.
Changes:
- Distinguishes summed test time from elapsed time, adds outcomes, and renders one aggregate top-ten timing list.
- Adds bounded skip-reason and platform context with backward-compatible fragment metadata.
- Adds process attribution, contextual local timings, regression tests, and a decision record.
Test-value evidence: For revision 0269e3cb4724521dfde20cdd10ea9ea8a87f57cf, the PR reports 325 passing cases and buildable counterfactual failures. Those execution artifacts were not independently verified here. Native SDK-wide Azure DevOps aggregation remains explicitly unverified pending separate SDK support.
| File | Description |
|---|---|
test/Utilities/Microsoft.Testing.TestInfrastructure/SlowestTestsConsumer.cs |
Adds outcomes, context, synchronization, and summary-mode suppression. |
test/Utilities/Microsoft.Testing.TestInfrastructure/AcceptanceDiagnostics.cs |
Formats successful process-attempt diagnostics with identity and role. |
test/UnitTests/Microsoft.Testing.Platform.UnitTests/TestInfrastructure/SlowestTestsConsumerTests.cs |
Covers timing output, outcomes, filtering, and lifecycle behavior. |
test/UnitTests/Microsoft.Testing.Platform.UnitTests/TestInfrastructure/AcceptanceDiagnosticsTests.cs |
Covers process identity, role detection, and failure silence. |
test/UnitTests/Microsoft.Testing.Platform.UnitTests/Microsoft.Testing.Platform.UnitTests.csproj |
Links the diagnostics helper into unit tests. |
test/UnitTests/Microsoft.Testing.Extensions.UnitTests/CiRunSummaryAggregationTests.cs |
Tests metadata compatibility, normalization, and validation boundaries. |
test/UnitTests/Microsoft.Testing.Extensions.UnitTests/AzureDevOpsSummaryReporterTests.cs |
Verifies summary formatting, bounded lists, and skip context. |
test/IntegrationTests/MSTest.Acceptance.IntegrationTests/Program.cs |
Wires contextual timing and process diagnostics into the MSTest host. |
test/IntegrationTests/Microsoft.Testing.Platform.Acceptance.IntegrationTests/Program.cs |
Wires contextual timing and process diagnostics into the MTP host. |
test/IntegrationTests/Microsoft.Testing.Platform.Acceptance.IntegrationTests/AzureDevOpsSummaryAcceptanceTests.cs |
Adds packed-summary and legacy-SDK fallback coverage. |
src/Platform/SharedExtensionHelpers/SummaryReporterHelpers.cs |
Adds optional skip reasons to test records. |
src/Platform/SharedExtensionHelpers/CiRunSummaryModels.cs |
Adds optional platform, outcome, and skip-group metadata. |
src/Platform/SharedExtensionHelpers/CiRunSummaryAggregation.cs |
Captures outcomes and bounded, normalized skip groups. |
src/Platform/SharedExtensionHelpers/CiRunSummaryAggregateReader.cs |
Validates new metadata while accepting legacy fragments. |
src/Platform/Microsoft.Testing.Extensions.GitHubActionsReport/InternalAPI/InternalAPI.Unshipped.txt |
Tracks shared test-record API changes. |
src/Platform/Microsoft.Testing.Extensions.AzureDevOpsReport/PACKAGE.md |
Documents timing labels and grouped skip diagnostics. |
src/Platform/Microsoft.Testing.Extensions.AzureDevOpsReport/InternalAPI/InternalAPI.Unshipped.txt |
Tracks shared test-record API changes. |
src/Platform/Microsoft.Testing.Extensions.AzureDevOpsReport/AzureDevOpsSummaryReporter.Markdown.Skips.cs |
Renders bounded skip groups and omission counts. |
src/Platform/Microsoft.Testing.Extensions.AzureDevOpsReport/AzureDevOpsSummaryReporter.Markdown.History.cs |
Explicitly reports unavailable duration history. |
src/Platform/Microsoft.Testing.Extensions.AzureDevOpsReport/AzureDevOpsSummaryReporter.Markdown.Formatting.cs |
Separates elapsed and test-time labels. |
src/Platform/Microsoft.Testing.Extensions.AzureDevOpsReport/AzureDevOpsSummaryReporter.Markdown.cs |
Adds timing explanations and standalone skip context. |
src/Platform/Microsoft.Testing.Extensions.AzureDevOpsReport/AzureDevOpsSummaryReporter.Markdown.Aggregate.cs |
Adds outcomes and removes repeated per-module timing lists. |
src/Platform/Microsoft.Testing.Extensions.AzureDevOpsReport/AzureDevOpsSummaryReporter.Lifecycle.cs |
Captures and preserves skip explanations. |
docs/decisions/ci-diagnostic-context.md |
Records design choices, validation claims, and SDK limitations. |
Review effort: Balanced
Retain strict test-result and on-failure behavior while exposing accepted or failed invocation policy, including exit zero, in both aggregate reports. Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Preserve both internal API additions and reconcile the incoming data-row snapshot with the runner-policy context. Validate reporter/name formatting and serializer/diagnostic paths. Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Bind the unchanged 72a3 shipping package closure to the frozen a629 SDK companion and preserve the original controlled captures. Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
There was a problem hiding this comment.
🧪 Test quality review — PR #12142
Compared merge base a0fcc2da5d7911dae128795184f99165f3332cae with head e9386b539446b325f137defe4eb0448fb3911ef4. Evidence applies to this head, not every intermediate commit. Static, read-only analysis; no code, builds or tests were executed.
Test-value evidence
No accessible paired red/green execution records exist for this head, and green CI or the author's claims are not counted as proof. All items below are static predictions or unverified.
| Changed contract | Test found | Counterfactual (predicted) | Status |
|---|---|---|---|
AcceptanceDiagnostics prints only on exit 0, with an exact leading internal-merge-artifacts role | AcceptanceDiagnosticsTests (3 methods, 10 data cases) with exact-string and empty-list assertions | Dropping the exit-code guard or matching a substring or other case would fail the empty-list or exact-string assertions | Static prediction: likely detected |
SlowestTestsConsumer outcomes, ordering, formatting, session clearing, summary-mode suppression | SlowestTestsConsumerTests (exact-output tests) | A wrong label, tie order, format or clear would likely fail the exact-output assertions | Static prediction, not traced per case |
Azure DevOps aggregate markdown and CiRunSummary* model, reader and aggregation changes | AzureDevOpsSummaryReporterTests, CiRunSummaryAggregationTests, CiRunSummaryPolicyTests | Changed grouping, caps or validation would likely fail the boundary tests | Unverified: the large changed ranges were not traced case by case |
| Packed standalone summary and SDK fallback | AzureDevOpsSummaryAcceptanceTests | Asserts rendered markdown | Unverified: needs -pack, not run |
Docs, PACKAGE.md, InternalAPI.Unshipped.txt | n/a | Non-executable | Not applicable |
Evidence gap: the per-data-case assessment of the large reporter, aggregation and consumer test files is incomplete.
🧵 Parallel safety
STATUS: CLEAN (specialist, static). Counts: Critical=0, High=0, Warning=0, Info=0.
- All four assemblies are MethodLevel and
Program.csparallelization attributes are unchanged. TheProgram.cschanges are host wiring only. - The changed tests use unique temp directories and share no mutable static, environment or console state.
AzureDevOpsSummaryAcceptanceTestsuses a read-only class fixture and a per-method results directory.- Coverage is manual only; no analyzer output was available.
Per-test assessment
Pseudo-mutation evidence below consists of static predictions, not executed mutation results. I fully assessed only the AcceptanceDiagnosticsTests methods. The other changed test classes are listed as unresolved rather than given unverified grades.
| Result | Quality | Test | Notes | How to improve |
|---|---|---|---|---|
| Uncertain | — | new SlowestTestsConsumerTests.*, AzureDevOpsSummaryReporterTests.*, CiRunSummaryAggregationTests.*, CiRunSummaryPolicyTests.*, AzureDevOpsSummaryAcceptanceTests.* |
Large changed ranges were not graded per method or data case. | Per-method grading against production branches is needed to resolve. |
| Pass | B (80–89) | new AcceptanceDiagnosticsTests. |
Exact-string assertion covers each identity field; the expectation partly mirrors the format. | None |
| Pass | A (90–100) | new AcceptanceDiagnosticsTests. |
Both argument shapes are asserted empty for negative and failure exit codes. | None |
| Pass | B (80–89) | new AcceptanceDiagnosticsTests. |
Exact match on the role across empty, leading, later, case and substring args. | None |
No novel, verified, actionable defects were found, so no inline comments were posted. The open Copilot thread about suppressing console timings only when Azure DevOps reporting is active already covers the one live concern.
This advisory review is heuristic and non-blocking.
Re-run the combined review with /review-tests, or only the parallel-safety specialist with /parallel-audit.
🤖 Automated content by GitHub Copilot. Generated by the Test Quality Review on PR (on open / sync) workflow. · copilot · auto · 52.8 AIC · ⌖ 0.834 AIC · ⊞ 8K · ◷
|
Final test-triage resolution — Azure Pipelines build 1656141 Result: inconclusive (evidence incomplete), but no actionable test defect found. No issue created.
Next step: if these probe failures should not appear in published reports, check how the diagnostics job publishes the probe TRX files. Otherwise no action is needed.
|
|
/backport to rel/4.5 |
|
Started backporting to rel/4.5: https://github.com/microsoft/testfx/actions/runs/41087902748 |
|
Amaury Levé (@Evangelink) backporting to rel/4.5 failed, the patch most likely resulted in conflicts: $ git am --3way --empty=keep --ignore-whitespace --keep-non-patch changes.patch
Applying: Clarify CI timing, skip reasons, and acceptance process context
Using index info to reconstruct a base tree...
A src/Platform/Microsoft.Testing.Extensions.AzureDevOpsReport/AzureDevOpsSummaryReporter.Markdown.Aggregate.cs
A src/Platform/Microsoft.Testing.Extensions.AzureDevOpsReport/AzureDevOpsSummaryReporter.Markdown.Formatting.cs
A src/Platform/Microsoft.Testing.Extensions.AzureDevOpsReport/AzureDevOpsSummaryReporter.Markdown.History.cs
M src/Platform/Microsoft.Testing.Extensions.AzureDevOpsReport/AzureDevOpsSummaryReporter.Markdown.cs
M src/Platform/Microsoft.Testing.Extensions.AzureDevOpsReport/InternalAPI/InternalAPI.Unshipped.txt
M src/Platform/Microsoft.Testing.Extensions.GitHubActionsReport/InternalAPI/InternalAPI.Unshipped.txt
M src/Platform/SharedExtensionHelpers/CiRunSummaryAggregateReader.cs
M src/Platform/SharedExtensionHelpers/CiRunSummaryModels.cs
M test/IntegrationTests/MSTest.Acceptance.IntegrationTests/Program.cs
M test/IntegrationTests/Microsoft.Testing.Platform.Acceptance.IntegrationTests/Program.cs
M test/UnitTests/Microsoft.Testing.Extensions.UnitTests/AzureDevOpsSummaryReporterTests.cs
M test/UnitTests/Microsoft.Testing.Extensions.UnitTests/CiRunSummaryAggregationTests.cs
M test/UnitTests/Microsoft.Testing.Platform.UnitTests/Microsoft.Testing.Platform.UnitTests.csproj
Falling back to patching base and 3-way merge...
CONFLICT (modify/delete): src/Platform/Microsoft.Testing.Extensions.AzureDevOpsReport/AzureDevOpsSummaryReporter.Markdown.Aggregate.cs deleted in HEAD and modified in Clarify CI timing, skip reasons, and acceptance process context. Version Clarify CI timing, skip reasons, and acceptance process context of src/Platform/Microsoft.Testing.Extensions.AzureDevOpsReport/AzureDevOpsSummaryReporter.Markdown.Aggregate.cs left in tree.
CONFLICT (modify/delete): src/Platform/Microsoft.Testing.Extensions.AzureDevOpsReport/AzureDevOpsSummaryReporter.Markdown.Formatting.cs deleted in HEAD and modified in Clarify CI timing, skip reasons, and acceptance process context. Version Clarify CI timing, skip reasons, and acceptance process context of src/Platform/Microsoft.Testing.Extensions.AzureDevOpsReport/AzureDevOpsSummaryReporter.Markdown.Formatting.cs left in tree.
CONFLICT (modify/delete): src/Platform/Microsoft.Testing.Extensions.AzureDevOpsReport/AzureDevOpsSummaryReporter.Markdown.History.cs deleted in HEAD and modified in Clarify CI timing, skip reasons, and acceptance process context. Version Clarify CI timing, skip reasons, and acceptance process context of src/Platform/Microsoft.Testing.Extensions.AzureDevOpsReport/AzureDevOpsSummaryReporter.Markdown.History.cs left in tree.
Auto-merging src/Platform/Microsoft.Testing.Extensions.AzureDevOpsReport/AzureDevOpsSummaryReporter.Markdown.cs
Auto-merging src/Platform/Microsoft.Testing.Extensions.AzureDevOpsReport/InternalAPI/InternalAPI.Unshipped.txt
Auto-merging src/Platform/Microsoft.Testing.Extensions.GitHubActionsReport/InternalAPI/InternalAPI.Unshipped.txt
CONFLICT (content): Merge conflict in src/Platform/Microsoft.Testing.Extensions.GitHubActionsReport/InternalAPI/InternalAPI.Unshipped.txt
Auto-merging src/Platform/SharedExtensionHelpers/CiRunSummaryAggregateReader.cs
CONFLICT (content): Merge conflict in src/Platform/SharedExtensionHelpers/CiRunSummaryAggregateReader.cs
Auto-merging src/Platform/SharedExtensionHelpers/CiRunSummaryModels.cs
Auto-merging test/IntegrationTests/MSTest.Acceptance.IntegrationTests/Program.cs
CONFLICT (content): Merge conflict in test/IntegrationTests/MSTest.Acceptance.IntegrationTests/Program.cs
Auto-merging test/IntegrationTests/Microsoft.Testing.Platform.Acceptance.IntegrationTests/Program.cs
CONFLICT (content): Merge conflict in test/IntegrationTests/Microsoft.Testing.Platform.Acceptance.IntegrationTests/Program.cs
Auto-merging test/UnitTests/Microsoft.Testing.Extensions.UnitTests/AzureDevOpsSummaryReporterTests.cs
Auto-merging test/UnitTests/Microsoft.Testing.Extensions.UnitTests/CiRunSummaryAggregationTests.cs
Auto-merging test/UnitTests/Microsoft.Testing.Platform.UnitTests/Microsoft.Testing.Platform.UnitTests.csproj
error: Failed to merge in the changes.
hint: Use 'git am --show-current-patch=diff' to see the failed patch
hint: When you have resolved this problem, run "git am --continue".
hint: If you prefer to skip this patch, run "git am --skip" instead.
hint: To restore the original branch and stop patching, run "git am --abort".
hint: Disable this message with "git config set advice.mergeConflict false"
Patch failed at 0001 Clarify CI timing, skip reasons, and acceptance process context
Error: The process '/usr/bin/git' failed with exit code 128NOTE: A PR will be created, but needs to be revised manually! |
|
Amaury Levé (@Evangelink) backporting to rel/4.5 failed, the patch most likely resulted in conflicts: $ git am --continue
Applying: Clarify CI timing, skip reasons, and acceptance process context
Applying: Show authoritative runner policy alongside raw CI test results
Using index info to reconstruct a base tree...
M src/Platform/Microsoft.Testing.Extensions.GitHubActionsReport/GitHubActionsSummaryReporter.Markdown.Aggregate.cs
M src/Platform/Microsoft.Testing.Extensions.GitHubActionsReport/PACKAGE.md
A src/Platform/SharedExtensionHelpers/CiRunSummaryExitCode.cs
M test/UnitTests/Microsoft.Testing.Extensions.UnitTests/AzureDevOpsSummaryReporterTests.cs
Falling back to patching base and 3-way merge...
Auto-merging src/Platform/Microsoft.Testing.Extensions.GitHubActionsReport/GitHubActionsSummaryReporter.Markdown.Aggregate.cs
CONFLICT (content): Merge conflict in src/Platform/Microsoft.Testing.Extensions.GitHubActionsReport/GitHubActionsSummaryReporter.Markdown.Aggregate.cs
Auto-merging src/Platform/Microsoft.Testing.Extensions.GitHubActionsReport/PACKAGE.md
CONFLICT (modify/delete): src/Platform/SharedExtensionHelpers/CiRunSummaryExitCode.cs deleted in HEAD and modified in Show authoritative runner policy alongside raw CI test results. Version Show authoritative runner policy alongside raw CI test results of src/Platform/SharedExtensionHelpers/CiRunSummaryExitCode.cs left in tree.
Auto-merging test/UnitTests/Microsoft.Testing.Extensions.UnitTests/AzureDevOpsSummaryReporterTests.cs
error: Failed to merge in the changes.
hint: Use 'git am --show-current-patch=diff' to see the failed patch
hint: When you have resolved this problem, run "git am --continue".
hint: If you prefer to skip this patch, run "git am --skip" instead.
hint: To restore the original branch and stop patching, run "git am --abort".
hint: Disable this message with "git config set advice.mergeConflict false"
Patch failed at 0002 Show authoritative runner policy alongside raw CI test results
Error: The process '/usr/bin/git' failed with exit code 128NOTE: A PR will be created, but needs to be revised manually! |

Pull request
Summary
Make the existing Azure DevOps summary and acceptance-host diagnostics attributable without expanding fail-only console output:
--report-azdo-summaryand case-insensitiveTF_BUILD=trueare both active. Otherwise preserve local contextual, two-decimal timing including failures. Successful process-attempt statistics identify module, framework, PID andacceptance-hostversusartifact-worker; failure stderr and exit semantics are unchanged.0, in both aggregate reports. An accepted invocation does not rewrite genuinely failed tests. Azure's strict test-result indication, GitHub's existing global badge, failure details, partial warnings and existingon-failurevisibility are preserved.This follows the investigation of successful public build 1655468. Different Linux/macOS skip totals are not treated as regressions. No terminal-core, SDK-vendoring or sample-script feature changes are included.
Latest-base synchronization:
origin/mainata0fcc2da5d7911dae128795184f99165f3332caeis included through merge commit72a3bc87add2b08c153e8eb56ad2a3631170e33c, without rewriting published history. The single internal-API baseline conflict preserves both additions; the incoming data-row snapshot now also expects the runner-policy line. 298 reporter/name-formatting cases and 38 serializer/diagnostic cases pass. Fresh packages from the merge commit passed the actual global/ignored-policy runs again with verified source/cache/output hashes. Review fix82ec9d46d2e671c02138bc9eedc60d8b1aeeef1dcorrects the nonshipping local timing gate; current heade9386b539446b325f137defe4eb0448fb3911ef4adds only the final SDK replay decision-record update.Real global composition is verified. The initially missing SDK contract is implemented in dotnet/sdk#56852. Controlled before/after package variants ran through the same frozen SDK
6fc4e43c66eb03fb2383ab25a809ff7f4dda81aa; those captures remain unchanged. The final matched72a3shipping packages also passed the requested normal/ignored-failure replays on the companion's final frozen heada629f41ab69bdb8f9c2c6ce63d1edf7b5f1aabfe. Actual required workers produced merged reports and authoritative metadata in both stages. Deployment still requires the companion; no capability bit or synthetic worker input was forced.Design and decision record
Maintained research, decisions and evidence.
Reuse the existing summary/fragment pipeline rather than introducing another report format or enabling per-module console top-ten dumps throughout the matrix. New fragment metadata is additive and presence-aware; absent legacy values remain unavailable rather than becoming false defaults. The non-tool process label includes controllers/orchestrators rather than guessing their internal subtype from arguments. Test scheduling and outcome/count policy are unchanged.
Composed validation exposed an accepted-runner/failed-test distinction. The pre-existing Azure regression deliberately requires a failed test indication even with an authoritative successful exit; it remains intact. GitHub's global heading already follows the runner exit. The correction is additive policy context, not greenwashing test results.
The
on-failuredocumentation says the job summary is written when the test invocation fails; it does not explicitly promise exit-code-only gating. The final bounded decision preserves existing visibility for actual failed tests and partial runs even with effective exit0. No writer gate, fragment capture or raw-outcome computation was changed. PACKAGE.md makes this distinction explicit.The main merge retains both the incoming data-row label formatter and serializer source-link changes. Its only semantic test reconciliation adds the policy line to the new data-row snapshot; none of that snapshot's row-identity assertions was removed.
Demonstration
Text transcripts are clearer than screenshots here. All excerpts below were captured from execution. Fixture timing values and reason strings are deterministic input data, not performance measurements. Earlier controlled package snapshots remain frozen; the merged-source reruns are recorded separately rather than silently replacing them.
Actual SDK-wide summary: original versus implemented packages
Baseline TestFx
7dd2407848979d58f0e9b2bd75101a2dbfa7d1bcand implementation4d10341bf973cb94adcdab8e150f18431b07c04fran through the same capable SDK. Each produced one real job-wide Azure artifact with 32 reported tests: 25 passed, 1 intentional failure, 6 skipped, 26 executed, two modules, and parent/manifest exit 2.Before:
After:
The complete captured timing list has 20 rows before (failed-module ten plus global ten) and 10 after. Actual after rows include:
The same report contains grouped skip reasons/platform/module identity and explicit unavailable history. Both modules retain summed test time
01:33; that value is not confused with the SDK's elapsed time. The differing elapsed measurements are not presented as a speed improvement. Fresh merged-head packages retained the same ten-row bound and counts in a new real run.Actual ignored failure: test results versus runner policy
Policy baseline
0269e3cb4724521dfde20cdd10ea9ea8a87f57cfand corrected4d10341bf973cb94adcdab8e150f18431b07c04fran with both reporter packages and--ignore-exit-code 2. Both retained 32/25/1/6, two modules, and parent/manifest exit 0.Azure before:
Azure after:
GitHub's actual after artifact and populated job summary retain their accepted global heading and failed module details:
The
on-failurevariant remains visible in both versions because a genuine failed test remains. Failed details are retained in the standalone artifacts and job summary; neither fragments nor outcomes are discarded. The merged-head fresh-package rerun independently preserved this distinction and the same parent/manifest exit0.Standalone timing consumer and real process roles
The non-shipping consumer was source-linked into the same deterministic event harness in both variants.
Before:
After:
The actual acceptance artifact-worker entry points were also exercised by a real SDK TRX merge. Before:
After:
Both zero-result runs retained parent exit 8 and produced one merged TRX from two input reports. This is process/artifact-policy evidence, not executed-regression-test evidence. Normal invocation output separately identifies
role=acceptance-host.Earlier native per-module-fallback and packed-renderer-only captures remain recorded as such. They are not relabeled as the later real required-worker execution.
Validation and regression proof
Current PR head:
e9386b539446b325f137defe4eb0448fb3911ef4, a documentation-only child of tested review fix82ec9d46d2e671c02138bc9eedc60d8b1aeeef1d. Latest shipping-package source: merge72a3bc87add2b08c153e8eb56ad2a3631170e33c, parents0322089b02b07380280e0403744f52e20821b2f0anda0fcc2da5d7911dae128795184f99165f3332cae. Shipping source/configuration remains identical to that merge; later executable changes are confined to the nonshipping timing helper and its unit tests. Earlier controlled implementation/package revision:4d10341bf973cb94adcdab8e150f18431b07c04f; original baseline7dd2407848979d58f0e9b2bd75101a2dbfa7d1bc; policy baseline0269e3cb4724521dfde20cdd10ea9ea8a87f57cf.Original feature/merge builds used bootstrapped SDK
12.0.100-alpha.1.26509.101, Release, warnings-as-errors and all declared targets. Unit execution preserves method-level parallelism with 32 workers and uses owned process-localTEMP/TMP. After main reconciliation, 298 reporter/policy/display-name cases and 38 serializer/acceptance-diagnostic cases pass, with parsed matching TRX/JUnit counts. The merge's initial one-failure run exposed the incoming snapshot's missing policy line; updating that expectation retained all its data-row assertions and returned the selection to green. The subsequent local-timing review correction was validated separately in Debug: 29/29 on net8.0 and 29/29 on net462, plus all declared unit-project targets and the owning net12.0 infrastructure build.The preceding policy selection passed 275 reporter cases and 12 policy cases on net462. Earlier infrastructure runs passed 30 on net8 and the same 30 on net462; two real packed fallback acceptance cases passed. No skips are counted as regression proof.
The controlled real before/after composition uses frozen SDK
12.0.100-dev, source6fc4e43c66eb03fb2383ab25a809ff7f4dda81aa, parentf5838f51c497a70fb60f3ed7e89102ca293b6838, managed CLI SHA-256852D141F067C6E2021F194A76DEFFFA67868E6B21F9F6565EB8064286C8354CF, native CLI SHA-256AFA587BDC378C001A0684DC34F13F7A203427367780D1548FF553AB676358DCF. The kit is read-only and the controlled comparison uses its managed CLI. The later final-a629confirmation is recorded separately below, not substituted for this comparison.An identical observation-only fixture hook copies the real SDK-produced manifest when the actual
internal-merge-artifactstool starts, then lets the platform tool run unchanged. It neither supplies nor modifies a manifest, handshake, capability, result or policy. SDK cleanup still removes its original temporary manifest. Retained copies were parsed and checked against parent results: total/passed/failed/skipped, final exit and the two-module denominator. Package DLL bytes were matched against nupkg entries, separate restore caches, and both executed Alpha/Beta outputs.onandon-failureon-failuremaximumFailedTeststruncation; two-module denominator, one completed module's two provider fragments, partial warnings in both aggregates and job summaryThe initial parallel stop probe terminated both producers before any fragment was retained and produced no worker artifact; it is not partial-rendering proof. The final partial probe uses
--max-parallel-test-modules 1only to arrange a completed module before the stop. Repository test scheduling is unchanged.Commands and recorded results
$dotnetdenotes the repository-local pinned executable;$sdkthe verified frozen capable executable;$evidenceand$resultsunique task-owned output directories. Package variants have independentNUGET_PACKAGEScaches. Fixture-local global.json selects the frozen SDK and MTP runner;DOTNET_CLI_ENABLEAOT=false, both DOTNET_ROOT variables point at the kit,DOTNET_ADD_GLOBAL_TOOLS_TO_PATH=0, CLI home is isolated, and build-server reuse is disabled for composition.The earlier original/final comparison uses the same native module selector with
--report-azdo --report-azdo-summary; the dual-reporter policy comparison adds--report-gh --report-gh-step-summary on-failure --ignore-exit-code 2. Success and zero-result runs omit the ignore option and set fixture modepassorzero. The actual partial run was:The real process-role comparison uses:
Strict all-declared-TFM extension and MTP unit builds passed, including netstandard2.0 shipping libraries and net462/net472 consumers where declared; both acceptance entry points also compiled.
UpdateXlfOnBuild=falsepreserved unchanged localization; no resource/XLF changes are included. TRX/JUnit counts and paired identities were parsed/reconciled, and the two packed fallback tests passed the independent acceptance execution verifier.Review correction: preserve local timing fallback
Review comment 4423698557 is fixed in
82ec9d46d2e671c02138bc9eedc60d8b1aeeef1dand resolved after a verified reply. The constructor now matches the reporter's ordinal case-insensitiveTF_BUILD=truegate rather than suppressing timings for the option alone. An internal injected string keeps the eleven environment/option cases parallel-safe; no test mutates process-wide environment variables.The original selection passed 20/20 at parent
5e8d17e9263e6abe947a58b87017d155a44c60d6. With identical final tests retained, restoring only the old option-only suppression in an isolated comparison produced 29 executed, 24 passed, 5 intended assertion failures, exit 2 for unset/false/empty/invalid/padded environment values. Restoring the fix returned 29/29, exit 0. Final source also passed 29/29 on net462, with no skipped cases.The corrected helper SHA-256 is
39C34F1BE612647E91843CE02E9155BC601F9E2C33C2C1E650E0FA8CED81273B; counterfactual helper9171E10F65DD13B3FB91210A9D1D3DC75AE8367FECE5183A295D595F62B0BEB8; identical test fileF02A6F5B338A38DBD92141BC41889A0983845C860315E505D26792D3DFA1439E. The restored comparison rebuild and command use the same project/selector withcomparison-greenlog/result names and return29/29, exit0. All retained TRX counts and intended assertion failures were independently checked before publication; only task-owned comparison outputs were removed.Final companion SDK head confirmation
The two requested final replays use dotnet/sdk#56852, exact source
a629f41ab69bdb8f9c2c6ce63d1edf7b5f1aabfe, basec6405adbf0aadab2a0419579f5bffcd72a72764a, through frozen kitrequired-summary-sdk-a629f41ab6. Managed CLI SHA-256 is4720B630F9AD8DC37F51B3DF790B6C7B5DB7634DC1CC8C41386AAFB2D967C9A3; native CLI SHA-256 isAA0DBE209A4C46711EFB14694F2B462F3A005F2FAE7AC8D2D445178A822CEEC9. Both were verified before and after the runs. These are managed-CLI shipping-layout replays, matchingDOTNET_CLI_ENABLEAOT=falsein the controlled comparison, not an additional native-AOT matrix.The owned
artifacts\ci-policy-composed\final-sdk\global.jsonselects only the final frozen root, version12.0.100-dev, roll-forward disabled, and MTP runner. Actualdotnet --inforeports commita629f41ab6and the final kit's SDK Base Path; it cannot silently select the ancestor6fckit. CLI home is isolated, global-tool PATH insertion is disabled, both DOTNET_ROOT variables select the kit, and the existing matchedmerged-packagescache remains separate from earlier variants.The two exact
dotnet test --test-modulescommands above were replayed from this new fixture against the unchanged 72a3 package closure in the table below, with freshfinal-sdk-failure-resultsandfinal-sdk-ignored-resultspaths and corresponding job-summary files. All package/nuspec source stamps, cached DLLs and both copied executable module outputs were rechecked. No restore/repack was substituted: shipping source/configuration is identical at the tested82ec and documentation-only final head. Earlier6fc snapshots, commands and before/after captures remain untouched and reachable in history.Both runs select only
Alpha.dllandBeta.dll(net8.0, x64). Each emitsPassing01–Passing12,Longest, andSkipped1–Skipped3: 32 reported / 26 non-skipped / 25 passed / 1 failed / 6 skipped, with a two-module denominator and four provider inputs in each actual SDK-produced manifest. The preserved failed identity isBeta / Fixture.Cases.Longest.--ignore-exit-code 2Actual final-kit ignored-run excerpts:
Azure's strict test indicator remains failed; GitHub's existing global badge is accepted for exit0. Both retain failed-module detail, and each step summary equals its standalone GitHub content except for the expected publication start/end comments. Skip grouping, unavailable history, and the ten-row Azure bound are retained. The final normal run renders the failed policy/exit2 instead. This is diagnostic correctness, not a timing-performance claim.
Retained worker copies are
sdk-worker-manifest-301368.jsonandsdk-worker-manifest-156640.jsonin the corresponding result folders.final-sdk-consumer-provenance.json,final-sdk-failure-run.json,final-sdk-ignored-run.json, and their*-verified.jsonreceipts retain exact environment/argv, paths, hashes, counters, exits and assertions; the SDK companion owner received these paths. The versioned final-kit record preserves the portable result. No new functional scope, extra consumer cases, non-Windows execution, servicing validation, or completed CI is claimed.Immutable package provenance
All package versions are
2.6.0-dev; equal versions are not evidence of equal bytes. Nuspec repository commits were read back, and physical DLL hashes were checked against both module outputs and fresh caches. Earlier feeds remain unchanged.E602F7D93F8448FB2699A3ABB2879D94DE86DC3628ADF58610DDDF70C7570F1FD1BD203D2815527C10FF174BC3CDCD9A2784B65A7C06EB57BBA524F12A310B4EE2AEB2E55E0F2B2B24536A3752D76D051B1A2EF068CE6E6A6CFC3C950F8B8558B1BF67FC011E7AE2F1F8D69F8EEB4FDE3B21E75DBA11B1B99FF162BCA1F80C02FE1B80C1008724FED628AF330299398FB711D8028E567691D64FDD908E4D7242C6F7FF6368880ED3BA89F4C85D93925C238A252C4179015E1E4098BBE95C988EControlled policy comparison snapshots:
CFE3E600DC7FE97E5794009DB7AB09F35D0FC613A23E40B79620924841924BBDE056649A7F1B3FEA7B366037EEFBFB2DED61C203F8BB9F199F87C4EAC44A4FF72159E8CE52335869449D2B48584C8780991240C2954698B07A4D081A2A09975444F64386F3FC238A627FBEDB0AAC5CE463D8F941A26B6A6FE5023620FA05F73B1475578F469CF34F91A4058E7FBB4CB7E68B843D4DBC24207AE03953672644E65BBF2A2FA169807D3D3E23188321DACB495A1DF134A6BA4F80575BEF6CC7B0D2Original7dd diagnostic comparison packages remain separately frozen: platform
FAEB97C814BBEB8C4A2EB266BA7848B4931ED01C34C259A2A8C1EE316F5FFE50, Azure reporterAB749BD9D9255E6E4320AC51B6543ABD155E0F534F2EA606295615D773D14343.Corrected4d10341 net8 DLL hashes remain recorded: platform
A03A65F74BE8CE0E72662C187E7614AF3167EA0533B20B6CF03245F5414BF7ED, AzureE1A6438FC87A454C822B98149A11BD8203A3BB51E7F0FDC691EE1C33CBC63D06, GitHub165AB5F381CD79ADC1DC1DB7CBCD3B903FD4C6E5542C04150C64176B6BA4BC5A. The latest merged closure incorporates main's serializer source organization and display-label implementation and was revalidated rather than inferred from those earlier bytes.Raw binlogs, XML reports, real manifest copies, captures and immutable packages remain in task-owned storage because they contain machine paths. Portable results/excerpts are preserved here and in the versioned decision record; the SDK companion owner has the full provenance and evidence paths. Non-Windows execution, release-branch servicing/backports and completed CI are not claimed. Global composition is verified against the named companion SDK build, not older unsupported SDKs.
Test-value evidence
BuildAggregateMarkdown_RendersOneGlobalTopTenWithOutcomesAndElapsedTimeSessionFinishing_GroupsSkipExplanationsWithoutListingSkippedNamesAsync,ReadAndAggregate_InvalidDiagnosticMetadataIsRejectedByBothProvidersAsyncConsumeAsync_RecordsEveryTerminalOutcome,CommandLineConstructor_DisablesOnlyWhenAzureDevOpsSummaryIsSet,FormatProcessSummary_AttributesModuleFrameworkProcessAndRolePackedStandalone_ReportsOutcomesSkipReasonsAndSummedTestTime,FixtureSdkWithoutRequiredArtifactSupport_PreservesPerModuleFallbackAggregateRenderers_SeparateAuthoritativePolicyFromTestResults,AggregateRenderers_WithoutAuthoritativeExitDoNotInventPolicy,GitHubOnFailure_RetainsFailuresAndArtifactsWithPolicyContextBuildAggregateMarkdown_DataDrivenTests_DistinguishesRowsInEverySection,BaseSerializerPrimitiveTests,BaseSerializerPartialReadTestsThe initial diagnostic counterfactual retained additive API/metadata-construction support and identical regression tests while restoring old rendering/lifecycle/validation and consumer formatting; it was not an unmodified base checkout. Its retained patch SHA-256 is
E53787B6BD22500CA24A69FFD4BE37A0B64A3558459A77BC246350DE9102D9E9. Correct files were restored/rebuilt/repacked and263+30+2 passed again in that comparison.The policy follow-up needs no production API scaffolding: baseline0269 plus the same new test file compiles and executes. Its test-file SHA-256 is
A39EEAB4F61438F35FB490EA671E0D4D2434BF675FC755065E98400B24982CF8. The existing Azure test intentionally requiring failed-test indication with authoritative exit0 remains unchanged and passes.Additional revision-bound review proof (parent
5e8d17e9263e6abe947a58b87017d155a44c60d6, code82ec9d46d2e671c02138bc9eedc60d8b1aeeef1d, documentation-only final heade9386b539446b325f137defe4eb0448fb3911ef4):CommandLineConstructor_DisablesOnlyWhenAzureDevOpsSummaryIsActiveSetup/compile/launch failures, zero-result probes and skipped tests are not counted as behavioral reds. The earlier renderer-only and old-SDK fallback evidence is distinguished from the subsequent actual required-worker comparison. No destructive reset, history rewrite or pull-request merge was performed.