Skip to content

Add timing, skip and process context to CI diagnostics - #12142

Merged
Amaury Levé (Evangelink) merged 7 commits into
mainfrom
dev/amauryleve/ci-diagnostic-context
Oct 30, 2026
Merged

Amaury Levé (Evangelink) merged 7 commits into
mainfrom
dev/amauryleve/ci-diagnostic-context

Conversation

@Evangelink

@Evangelink Amaury Levé (Evangelink) commented Oct 30, 2026 •

Copy link
Copy Markdown
Member

Pull request

Summary

Make the existing Azure DevOps summary and acceptance-host diagnostics attributable without expanding fail-only console output:

  • Label summed test time separately from SDK elapsed time, retain failed-test timing, and show outcomes in the existing bounded slowest-test lists. Aggregate rendering has one global top ten instead of repeating it under failing modules.
  • Group skipped tests by reported reason and platform with module/TFM context, bounded output and explicit omissions. Preserve optional/legacy fragment compatibility in both linked reporter consumers and make unavailable duration history explicit.
  • Defer the acceptance console timing list only when --report-azdo-summary and case-insensitive TF_BUILD=true are both active. Otherwise preserve local contextual, two-decimal timing including failures. Successful process-attempt statistics identify module, framework, PID and acceptance-host versus artifact-worker; failure stderr and exit semantics are unchanged.
  • Separately show an authoritative Runner policy outcome and exit, including 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 existing on-failure visibility 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/main at a0fcc2da5d7911dae128795184f99165f3332cae is included through merge commit 72a3bc87add2b08c153e8eb56ad2a3631170e33c, 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 fix 82ec9d46d2e671c02138bc9eedc60d8b1aeeef1d corrects the nonshipping local timing gate; current head e9386b539446b325f137defe4eb0448fb3911ef4 adds 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 matched 72a3 shipping packages also passed the requested normal/ignored-failure replays on the companion's final frozen head a629f41ab69bdb8f9c2c6ce63d1edf7b5f1aabfe. 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-failure documentation 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 exit 0. 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 7dd2407848979d58f0e9b2bd75101a2dbfa7d1bc and implementation 4d10341bf973cb94adcdab8e150f18431b07c04f ran 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:

## ❌ Overall test results

**32 tests** · ✅ **25 passed** · ❌ **1 failed** · ⏭ **6 skipped** · ⏱ **790ms** · exit code **2** (AtLeastOneTestFailed — At least one test failed.)

After:

## ❌ Overall test results

**32 tests** · ✅ **25 passed** · ❌ **1 failed** · ⏭ **6 skipped** · ⏱ Elapsed: **730ms**

**Runner policy:** ❌ failed · exit code **2** (AtLeastOneTestFailed — At least one test failed.)

The complete captured timing list has 20 rows before (failed-module ten plus global ten) and 10 after. Actual after rows include:

- **15.00s** — `Longest` — passed — Alpha (net8.0, x64)
- **15.00s** — `Longest` — failed — Beta (net8.0, x64)

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 0269e3cb4724521dfde20cdd10ea9ea8a87f57cf and corrected 4d10341bf973cb94adcdab8e150f18431b07c04f ran with both reporter packages and --ignore-exit-code 2. Both retained 32/25/1/6, two modules, and parent/manifest exit 0.

Azure before:

## ❌ Overall test results

**32 tests** · ✅ **25 passed** · ❌ **1 failed** · ⏭ **6 skipped** · ⏱ Elapsed: **809ms**

Azure after:

## ❌ Overall test results

**32 tests** · ✅ **25 passed** · ❌ **1 failed** · ⏭ **6 skipped** · ⏱ Elapsed: **833ms**

**Runner policy:** ✅ accepted · exit code **0** (Success — The test run succeeded.)

GitHub's actual after artifact and populated job summary retain their accepted global heading and failed module details:

## ✅ Overall Test Run Summary

| Total | Passed | Failed | Skipped | Flaky | Duration |
|---:|---:|---:|---:|---:|---:|
| 32 | 25 | 1 | 6 | 0 | 833ms |

**Runner policy:** ✅ accepted · exit code **0** (Success — The test run succeeded.)

The on-failure variant 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 exit 0.

Standalone timing consumer and real process roles

The non-shipping consumer was source-linked into the same deterministic event harness in both variants.

Before:

Slowest 10 tests:
  12.00000s PassedSlow
  1.25000s PassedFast

After:

Slowest 10 tests — Timing (.NETCoreApp,Version=v8.0):
  20.00s [failed] FailedSlower
  12.00s [passed] PassedSlow
  1.25s [passed] PassedFast

The actual acceptance artifact-worker entry points were also exercised by a real SDK TRX merge. Before:

Process started: 0

After:

Process launch attempts: 0 [module=Microsoft.Testing.Platform.Acceptance.IntegrationTests, framework=.NETCoreApp,Version=v12.0, pid=228912, role=artifact-worker]

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 fix 82ec9d46d2e671c02138bc9eedc60d8b1aeeef1d. Latest shipping-package source: merge 72a3bc87add2b08c153e8eb56ad2a3631170e33c, parents 0322089b02b07380280e0403744f52e20821b2f0 and a0fcc2da5d7911dae128795184f99165f3332cae. 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 baseline 7dd2407848979d58f0e9b2bd75101a2dbfa7d1bc; policy baseline 0269e3cb4724521dfde20cdd10ea9ea8a87f57cf.

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-local TEMP/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, source 6fc4e43c66eb03fb2383ab25a809ff7f4dda81aa, parent f5838f51c497a70fb60f3ed7e89102ca293b6838, managed CLI SHA-256 852D141F067C6E2021F194A76DEFFFA67868E6B21F9F6565EB8064286C8354CF, native CLI SHA-256 AFA587BDC378C001A0684DC34F13F7A203427367780D1548FF553AB676358DCF. The kit is read-only and the controlled comparison uses its managed CLI. The later final-a629 confirmation 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-artifacts tool 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.

Real scenario Reported totals Parent / manifest exit Verified artifacts and behavior
Mixed result, original and implemented packages 32 total / 25 passed / 1 failed / 6 skipped 2 / 2 One required global Azure artifact each; 20→10 timing rows
Ignored failure, on and on-failure 32 / 25 / 1 / 6 0 / 0 Azure + GitHub artifacts and job summary retain failed data; after includes explicit policy 0
All runnable tests pass, on-failure 32 / 26 / 0 / 6 0 / 0 Standalone aggregates exist; job-summary file absent
Zero results 0 / 0 / 0 / 0 8 / 8 Required aggregate artifacts still produced
Stop after one failure, Alpha completed first 32 / 25 / 1 / 6 live counts 13 / 13 maximumFailedTests truncation; two-module denominator, one completed module's two provider fragments, partial warnings in both aggregates and job summary
Fresh merged72a3 packages, normal and ignored failure 32 / 25 / 1 / 6 in both runs 2 / 2 and 0 / 0 Both real global artifacts, ten-row Azure bound, explicit policy/test distinction and existing on-failure detail reverified against new payloads
Same merged72a3 packages on final SDK a629 32 / 25 / 1 / 6 in both runs 2 / 2 and 0 / 0 Actual retained four-input manifests; one Azure global artifact/publication and ten timing rows; failed details and on-failure job-summary content retained

The 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 1 only to arrange a completed module before the stop. Repository test scheduling is unchanged.

Commands and recorded results

$dotnet denotes the repository-local pinned executable; $sdk the verified frozen capable executable; $evidence and $results unique task-owned output directories. Package variants have independent NUGET_PACKAGES caches. 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.

& $dotnet msbuild src\Platform\Microsoft.Testing.Extensions.AzureDevOpsReport\Microsoft.Testing.Extensions.AzureDevOpsReport.csproj -restore '-t:Rebuild;Pack' -p:Configuration=Release -p:UpdateXlfOnBuild=false -p:TreatWarningsAsErrors=true "-bl:$evidence\merged-Microsoft.Testing.Extensions.AzureDevOpsReport-pack.binlog" -v:quiet
& $dotnet msbuild src\Platform\Microsoft.Testing.Extensions.GitHubActionsReport\Microsoft.Testing.Extensions.GitHubActionsReport.csproj -restore '-t:Rebuild;Pack' -p:Configuration=Release -p:UpdateXlfOnBuild=false -p:TreatWarningsAsErrors=true "-bl:$evidence\merged-Microsoft.Testing.Extensions.GitHubActionsReport-pack.binlog" -v:quiet
& $dotnet msbuild src\Platform\Microsoft.Testing.Platform\Microsoft.Testing.Platform.csproj -restore '-t:Rebuild;Pack' -p:Configuration=Release -p:UpdateXlfOnBuild=false -p:TreatWarningsAsErrors=true "-bl:$evidence\merged-Microsoft.Testing.Platform-pack.binlog" -v:quiet
# Each exit0; fresh aligned2.6.0-dev closure from merge72a3, all declared shipping TFMs.

& $dotnet artifacts\bin\Microsoft.Testing.Extensions.UnitTests\Release\net8.0\Microsoft.Testing.Extensions.UnitTests.dll --filter 'FullyQualifiedName~CiRunSummaryPolicyTests|FullyQualifiedName~AzureDevOpsSummaryReporterTests|FullyQualifiedName~CiRunSummaryAggregationTests|FullyQualifiedName~GitHubActionsSummaryReporterTests|FullyQualifiedName~AzureDevOpsTestNodeIdentityTests' --report-trx --report-trx-filename merge-fixed.trx --report-junit --report-junit-filename merge-fixed.xml --results-directory "$evidence\merge-fixed-results" --progress off --show-test-results failed --no-ansi
# Exit0;298 executed/passed,0 failed/skipped.

& $dotnet artifacts\bin\Microsoft.Testing.Platform.UnitTests\Release\net8.0\Microsoft.Testing.Platform.UnitTests.dll --filter 'FullyQualifiedName~BaseSerializerPrimitiveTests|FullyQualifiedName~BaseSerializerPartialReadTests|FullyQualifiedName~SlowestTestsConsumerTests|FullyQualifiedName~AcceptanceDiagnosticsTests' --report-trx --report-trx-filename merge-platform.trx --report-junit --report-junit-filename merge-platform.xml --results-directory "$evidence\merge-platform-results" --progress off --show-test-results failed --no-ansi
# Exit0;38 executed/passed,0 failed/skipped.

& $dotnet artifacts\bin\Microsoft.Testing.Extensions.UnitTests\Release\net8.0\Microsoft.Testing.Extensions.UnitTests.dll --filter 'FullyQualifiedName~CiRunSummaryPolicyTests' --report-trx --report-trx-filename policy-red.trx --report-junit --report-junit-filename policy-red.xml --results-directory "$evidence\policy-isolated-red-results" --progress off --show-test-results failed --no-ansi
# Isolated baseline0269 with identical new tests:12 executed,7 intended assertion failures,5 characterization passes,exit2.
# Restored corrected sources + Rebuild + identical selection:12/12 passed,exit0.

& .\artifacts\bin\Microsoft.Testing.Extensions.UnitTests\Release\net462\Microsoft.Testing.Extensions.UnitTests.exe --filter 'FullyQualifiedName~CiRunSummaryPolicyTests' --report-trx --report-trx-filename policy-net462.trx --report-junit --report-junit-filename policy-net462.xml --results-directory "$evidence\policy-net462-results" --progress off --show-test-results failed --no-ansi
# Exit0;12/12 passed on net462.

& $sdk msbuild .\Diagnostics.slnx -restore -t:Rebuild -p:Configuration=Release "-bl:$evidence\merged-native-build.binlog" -v:quiet
# Exit0 in the isolated merged consumer; explicit merged-candidate-feed and a fresh cache.
& $sdk test --test-modules '**\bin\Release\net8.0\*a.dll' --root-directory . --report-azdo --report-azdo-summary --report-gh --report-gh-step-summary on-failure --results-directory $results --show-test-results failed --no-progress
# TF_BUILD=true;GITHUB_ACTIONS=true;DIAGNOSTICS_MODE=mixed;unique GITHUB_STEP_SUMMARY.
# Only Alpha.dll/Beta.dll match;32 reported/26 executed/6 skipped;parent/manifest2;one artifact per provider.
& $sdk test --test-modules '**\bin\Release\net8.0\*a.dll' --root-directory . --report-azdo --report-azdo-summary --report-gh --report-gh-step-summary on-failure --results-directory $results --show-test-results failed --no-progress --ignore-exit-code 2
# Same merged packages:32/25/1/6,parent/manifest0;failed data and existing on-failure visibility retained.

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 mode pass or zero. The actual partial run was:

& $sdk test --test-modules '**\bin\Release\net8.0\*a.dll' --root-directory . --report-azdo --report-azdo-summary --report-gh --report-gh-step-summary on-failure --maximum-failed-tests 1 --max-parallel-test-modules 1 --results-directory $results --show-test-results failed --no-progress
# Parent/manifest13; real partial artifacts and warnings retained after Alpha completed.

The real process-role comparison uses:

& $sdk test --test-modules '**\Release\net12.0\*Acceptance.IntegrationTests.dll' --root-directory $binRoot --filter 'FullyQualifiedName~__CI_DIAGNOSTIC_NO_MATCH__' --report-trx --results-directory $results --results-directory-layout per-module --show-test-results failed --no-progress
# Earlier frozen SDK4622ed3b6b3d58465613c5ac0a11243d40f61107:both variants retain0 tests/exit8 and merge2 TRX inputs into1.

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=false preserved 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 82ec9d46d2e671c02138bc9eedc60d8b1aeeef1d and resolved after a verified reply. The constructor now matches the reporter's ordinal case-insensitive TF_BUILD=true gate 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.

.\.dotnet\dotnet.exe msbuild .\test\UnitTests\Microsoft.Testing.Platform.UnitTests\Microsoft.Testing.Platform.UnitTests.csproj /t:Build /p:Configuration=Debug /p:UseSharedCompilation=false /nr:false /v:minimal /warnaserror '-bl:artifacts\timing-review-4423698557\all-target-build-{}.binlog'
# Exit0; net8.0, net9.0, net10.0, net11.0 and net462.
.\.dotnet\dotnet.exe msbuild .\test\Utilities\Microsoft.Testing.TestInfrastructure\Microsoft.Testing.TestInfrastructure.csproj /t:Build /p:Configuration=Debug /p:UseSharedCompilation=false /nr:false /v:minimal /warnaserror '-bl:artifacts\timing-review-4423698557\infrastructure-build-{}.binlog'
# Exit0; owning net12.0 infrastructure project.
.\.dotnet\dotnet.exe .\artifacts\bin\Microsoft.Testing.Platform.UnitTests\Debug\net8.0\Microsoft.Testing.Platform.UnitTests.dll --filter 'FullyQualifiedName~Microsoft.Testing.Platform.UnitTests.TestInfrastructure.SlowestTestsConsumerTests' --report-trx --report-trx-filename green.trx --results-directory .\artifacts\timing-review-4423698557\green --progress off --show-test-results all
# Exit0;29/29 passed.
.\artifacts\bin\Microsoft.Testing.Platform.UnitTests\Debug\net462\Microsoft.Testing.Platform.UnitTests.exe --filter 'FullyQualifiedName~Microsoft.Testing.Platform.UnitTests.TestInfrastructure.SlowestTestsConsumerTests' --report-trx --report-trx-filename net462.trx --results-directory .\artifacts\timing-review-4423698557\net462 --progress off --show-test-results all
# Exit0;29/29 passed.
.\.dotnet\dotnet.exe msbuild .\artifacts\timing-review-4423698557\comparison\Microsoft.Testing.Platform.UnitTests\Microsoft.Testing.Platform.UnitTests.csproj /t:Build /p:TargetFramework=net8.0 /p:Configuration=Debug /p:BuildProjectReferences=false /p:UseSharedCompilation=false /nr:false /v:minimal '-bl:artifacts\timing-review-4423698557\red-build-{}.binlog'
# Exit0; buildable option-only counterfactual, final test file unchanged.
.\.dotnet\dotnet.exe .\artifacts\timing-review-4423698557\comparison\bin\Microsoft.Testing.Platform.UnitTests\Debug\net8.0\net8.0\Microsoft.Testing.Platform.UnitTests.dll --filter 'FullyQualifiedName~Microsoft.Testing.Platform.UnitTests.TestInfrastructure.SlowestTestsConsumerTests' --report-trx --report-trx-filename red.trx --results-directory .\artifacts\timing-review-4423698557\red --progress off --show-test-results all
# Exit2;29 executed,24 passed,5 intended failures.

The corrected helper SHA-256 is 39C34F1BE612647E91843CE02E9155BC601F9E2C33C2C1E650E0FA8CED81273B; counterfactual helper 9171E10F65DD13B3FB91210A9D1D3DC75AE8367FECE5183A295D595F62B0BEB8; identical test file F02A6F5B338A38DBD92141BC41889A0983845C860315E505D26792D3DFA1439E. The restored comparison rebuild and command use the same project/selector with comparison-green log/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, base c6405adbf0aadab2a0419579f5bffcd72a72764a, through frozen kit required-summary-sdk-a629f41ab6. Managed CLI SHA-256 is 4720B630F9AD8DC37F51B3DF790B6C7B5DB7634DC1CC8C41386AAFB2D967C9A3; native CLI SHA-256 is AA0DBE209A4C46711EFB14694F2B462F3A005F2FAE7AC8D2D445178A822CEEC9. Both were verified before and after the runs. These are managed-CLI shipping-layout replays, matching DOTNET_CLI_ENABLEAOT=false in the controlled comparison, not an additional native-AOT matrix.

The owned artifacts\ci-policy-composed\final-sdk\global.json selects only the final frozen root, version 12.0.100-dev, roll-forward disabled, and MTP runner. Actual dotnet --info reports commit a629f41ab6 and the final kit's SDK Base Path; it cannot silently select the ancestor 6fc kit. CLI home is isolated, global-tool PATH insertion is disabled, both DOTNET_ROOT variables select the kit, and the existing matched merged-packages cache remains separate from earlier variants.

The two exact dotnet test --test-modules commands above were replayed from this new fixture against the unchanged 72a3 package closure in the table below, with fresh final-sdk-failure-results and final-sdk-ignored-results paths 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.dll and Beta.dll (net8.0, x64). Each emits Passing01–Passing12, Longest, and Skipped1–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 is Beta / Fixture.Cases.Longest.

Final-kit case Parent / authoritative exit Azure global artifact/publication Azure global timing rows GitHub on-failure
Normal failure 2 / 2 1 / 1 10, including failed Beta.Longest Present; failed policy and failed details
--ignore-exit-code 2 0 / 0 1 / 1 10, including failed Beta.Longest Present; accepted policy and failed details

Actual final-kit ignored-run excerpts:

Test run summary: Passed!
  total: 32
  failed: 1
  succeeded: 25
  skipped: 6
## ❌ Overall test results

**32 tests** · ✅ **25 passed** · ❌ **1 failed** · ⏭ **6 skipped** · ⏱ Elapsed: **647ms**

**Runner policy:** ✅ accepted · exit code **0** (Success — The test run succeeded.)

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.json and sdk-worker-manifest-156640.json in the corresponding result folders. final-sdk-consumer-provenance.json, final-sdk-failure-run.json, final-sdk-ignored-run.json, and their *-verified.json receipts 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.

Package Latest merged72a3 nupkg SHA-256 Executed net8 DLL SHA-256
Microsoft.Testing.Platform E602F7D93F8448FB2699A3ABB2879D94DE86DC3628ADF58610DDDF70C7570F1F D1BD203D2815527C10FF174BC3CDCD9A2784B65A7C06EB57BBA524F12A310B4E
Microsoft.Testing.Extensions.AzureDevOpsReport E2AEB2E55E0F2B2B24536A3752D76D051B1A2EF068CE6E6A6CFC3C950F8B8558 B1BF67FC011E7AE2F1F8D69F8EEB4FDE3B21E75DBA11B1B99FF162BCA1F80C02
Microsoft.Testing.Extensions.GitHubActionsReport FE1B80C1008724FED628AF330299398FB711D8028E567691D64FDD908E4D7242 C6F7FF6368880ED3BA89F4C85D93925C238A252C4179015E1E4098BBE95C988E

Controlled policy comparison snapshots:

Package Baseline0269 nupkg SHA-256 Corrected4d10341 nupkg SHA-256
Microsoft.Testing.Platform CFE3E600DC7FE97E5794009DB7AB09F35D0FC613A23E40B79620924841924BBD E056649A7F1B3FEA7B366037EEFBFB2DED61C203F8BB9F199F87C4EAC44A4FF7
Microsoft.Testing.Extensions.AzureDevOpsReport 2159E8CE52335869449D2B48584C8780991240C2954698B07A4D081A2A099754 44F64386F3FC238A627FBEDB0AAC5CE463D8F941A26B6A6FE5023620FA05F73B
Microsoft.Testing.Extensions.GitHubActionsReport 1475578F469CF34F91A4058E7FBB4CB7E68B843D4DBC24207AE03953672644E6 5BBF2A2FA169807D3D3E23188321DACB495A1DF134A6BA4F80575BEF6CC7B0D2

Original7dd diagnostic comparison packages remain separately frozen: platform FAEB97C814BBEB8C4A2EB266BA7848B4931ED01C34C259A2A8C1EE316F5FFE50, Azure reporter AB749BD9D9255E6E4320AC51B6543ABD155E0F534F2EA606295615D773D14343.

Corrected4d10341 net8 DLL hashes remain recorded: platform A03A65F74BE8CE0E72662C187E7614AF3167EA0533B20B6CF03245F5414BF7ED, Azure E1A6438FC87A454C822B98149A11BD8203A3BB51E7F0FDC691EE1C33CBC63D06, GitHub 165AB5F381CD79ADC1DC1DB7CBCD3B903FD4C6E5542C04150C64176B6BA4BC5A. 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

Contract / representative test Without behavior Correct implementation Evidence scope
Aggregate timing/context: BuildAggregateMarkdown_RendersOneGlobalTopTenWithOutcomesAndElapsedTime Executed: detected old labels and repeated timing section Executed: passed Initial263-case comparison had35 intended assertion failures; actual same-SDK global capture proves20→10 rows; merged rerun retains10
Skip/metadata: SessionFinishing_GroupsSkipExplanationsWithoutListingSkippedNamesAsync, ReadAndAggregate_InvalidDiagnosticMetadataIsRejectedByBothProvidersAsync Executed: detected missing grouped context/rejection guards Executed: passed Raw counts and physical fragment/package provenance retained
Local timing/process context: ConsumeAsync_RecordsEveryTerminalOutcome, CommandLineConstructor_DisablesOnlyWhenAzureDevOpsSummaryIsSet, FormatProcessSummary_AttributesModuleFrameworkProcessAndRole Executed:23 intended assertion failures in30 cases Executed:30/30 on net8/net462; merged diagnostic selection also green Actual TRX-worker attribution captured
Packed fallback: PackedStandalone_ReportsOutcomesSkipReasonsAndSummedTestTime, FixtureSdkWithoutRequiredArtifactSupport_PreservesPerModuleFallback Executed:2 intended Markdown equality failures Executed:2/2 after repacking Real package-consuming children; original child failure exits preserved
Policy versus raw results: AggregateRenderers_SeparateAuthoritativePolicyFromTestResults, AggregateRenderers_WithoutAuthoritativeExitDoNotInventPolicy, GitHubOnFailure_RetainsFailuresAndArtifactsWithPolicyContext Isolated0269 with identical final tests:12 executed,7 missing-policy assertion failures,5 characterization passes 12/12 on net8/net462; restored isolated selection12/12; latest298-case reporter/name selection green Real ignored-failure manifests and artifacts verify accepted0 alongside failed data and unchanged on-failure visibility
Main reconciliation: BuildAggregateMarkdown_DataDrivenTests_DistinguishesRowsInEverySection, BaseSerializerPrimitiveTests, BaseSerializerPartialReadTests Incoming snapshot omitted the independently added policy line Snapshot preserves both policy context and data-row identities; serializers and source links pass 298 reporter/name cases +38 serializer/diagnostic cases; merged fresh-package native runs also pass

The 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, code 82ec9d46d2e671c02138bc9eedc60d8b1aeeef1d, documentation-only final head e9386b539446b325f137defe4eb0448fb3911ef4):

Contract / test case Counterfactual Without behavior Correct implementation Evidence / gap
Local timing fallback: CommandLineConstructor_DisablesOnlyWhenAzureDevOpsSummaryIsActive Restore option-only suppression, retaining the injected signature and identical final tests; helper SHA above Executed: detected in five environment cases;29 executed,24 passed,5 failed,exit2 Executed:29/29 on net8.0 and net462; restored isolated comparison29/29,exit0 Exact commands, source/test hashes and independently parsed TRX; parallelism unchanged; no skipped cases counted
Final SDK composition with unchanged72a3 consumer Same consumer/packages, capable SDK6fc then finala629; compatibility preservation, not a new mutation Prior actual6fc normal/ignored runs retain32/25/1/6 and exits2/0 Finala629 actual manifests/artifacts retain the same counts/exits, ten Azure timing rows and failed details Managed shipping-layout green/green proof; earlier feature counterfactuals remain separate

Setup/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.

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>
Copilot AI balanced review requested due to automatic review settings October 30, 2026 12:25
@github-actions github-actions Bot added the state/needs-review Awaiting review from the team. label Oct 30, 2026

@github-actions github-actions Bot 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.

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. NormalizeSkipReason collapses newlines before they reach the table.
  • Internal API: the TestRecord constructor change is declared in both InternalAPI.Unshipped.txt files. 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 TestTimeExplanation renders 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.

@microsoft-github-policy-service microsoft-github-policy-service Bot added state/needs-review Awaiting review from the team. and removed state/needs-review Awaiting review from the team. labels Oct 30, 2026
@github-actions github-actions Bot added state/needs-review Awaiting review from the team. and removed state/needs-review Awaiting review from the team. labels Oct 30, 2026

@github-actions github-actions Bot 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.

🧪 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 CultureInfo mutation in SlowestTestsConsumerTests is restored in finally.
  • New temp directories are uniquely named.
  • The acceptance fixture is class-scoped.
  • The Program.cs changes 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.

ResultQualityTestNotesHow 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 · ◷

@microsoft-github-policy-service microsoft-github-policy-service Bot added state/needs-review Awaiting review from the team. and removed state/needs-review Awaiting review from the team. labels Oct 30, 2026
@github-actions github-actions Bot added state/needs-review Awaiting review from the team. and removed state/needs-review Awaiting review from the team. labels Oct 30, 2026

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.

🟡 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

@microsoft-github-policy-service microsoft-github-policy-service Bot added state/needs-review Awaiting review from the team. and removed state/needs-review Awaiting review from the team. labels Oct 30, 2026
@github-actions github-actions Bot added needs/merge-conflict-resolution PR has merge conflicts that must be resolved. and removed state/needs-review Awaiting review from the team. labels Oct 30, 2026
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>
Copilot AI balanced review requested due to automatic review settings October 30, 2026 13:13
@github-actions github-actions Bot added needs/merge-conflict-resolution PR has merge conflicts that must be resolved. and removed needs/merge-conflict-resolution PR has merge conflicts that must be resolved. labels Oct 30, 2026
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>

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.

🟢 Approval recommended

No active review issues were identified in the CI summary and acceptance-diagnostics changes.

1 open issue

Review effort: Balanced

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Copilot AI balanced review requested due to automatic review settings October 30, 2026 13:30
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>
@github-actions github-actions Bot added state/needs-review Awaiting review from the team. and removed state/needs-review Awaiting review from the team. labels Oct 30, 2026

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.

🟢 Approval recommended

The supplied review record identifies no active issues requiring changes to the CI summaries or acceptance-host diagnostics.

No open issues 🎉

1 resolved since last review

Review effort: Balanced

Copilot AI balanced review requested due to automatic review settings October 30, 2026 14:18

@github-actions github-actions Bot 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.

🧪 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 contractTest foundCounterfactual (predicted)Status
AcceptanceDiagnostics prints only on exit 0, with an exact leading internal-merge-artifacts roleAcceptanceDiagnosticsTests (3 methods, 10 data cases) with exact-string and empty-list assertionsDropping the exit-code guard or matching a substring or other case would fail the empty-list or exact-string assertionsStatic prediction: likely detected
SlowestTestsConsumer outcomes, ordering, formatting, session clearing, summary-mode suppressionSlowestTestsConsumerTests (exact-output tests)A wrong label, tie order, format or clear would likely fail the exact-output assertionsStatic prediction, not traced per case
Azure DevOps aggregate markdown and CiRunSummary* model, reader and aggregation changesAzureDevOpsSummaryReporterTests, CiRunSummaryAggregationTests, CiRunSummaryPolicyTestsChanged grouping, caps or validation would likely fail the boundary testsUnverified: the large changed ranges were not traced case by case
Packed standalone summary and SDK fallbackAzureDevOpsSummaryAcceptanceTestsAsserts rendered markdownUnverified: needs -pack, not run
Docs, PACKAGE.md, InternalAPI.Unshipped.txtn/aNon-executableNot 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.cs parallelization attributes are unchanged. The Program.cs changes are host wiring only.
  • The changed tests use unique temp directories and share no mutable static, environment or console state.
  • AzureDevOpsSummaryAcceptanceTests uses 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.

ResultQualityTestNotesHow 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.
FormatProcessSummary_
AttributesModuleFramework
ProcessAndRole
Exact-string assertion covers each identity field; the expectation partly mirrors the format. None
Pass A (90–100) new AcceptanceDiagnosticsTests.
WriteProcessSummary_
NonzeroExitWritesNothing
Both argument shapes are asserted empty for negative and failure exit codes. None
Pass B (80–89) new AcceptanceDiagnosticsTests.
WriteProcessSummary_
UsesLiveIdentityAnd
OnlyAnExactLeadingArtifactTool
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 · ◷

@microsoft-github-policy-service microsoft-github-policy-service Bot added state/needs-review Awaiting review from the team. and removed state/needs-review Awaiting review from the team. labels Oct 30, 2026
@github-actions github-actions Bot added state/needs-review Awaiting review from the team. and removed state/needs-review Awaiting review from the team. labels Oct 30, 2026

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.

🟢 Approval recommended

No active review issues are recorded for the CI summary and acceptance-host diagnostic changes.

No open issues 🎉

Review effort: Balanced

@github-actions

Copy link
Copy Markdown
Contributor

Final test-triage resolution — Azure Pipelines build 1656141

Result: inconclusive (evidence incomplete), but no actionable test defect found. No issue created.

  • The build result was succeeded. The collected reports contain 138,442 passed, 912 skipped and 6 failed records.
  • All 6 failed records come from the Windows_App_Model_Diagnostics extension-probe fixtures, not from the regular unit or integration test legs:
    • WinUIMtpPackagedApp.UnitTest1.RetryFailsFirstAttempt: the message says it deliberately fails the first retry attempt.
    • PackagedWinUI...RetryTestMethod_PassesOnSecondAppContainerHost: the message says the first host is meant to fail so Retry activates a second host.
    • NativeTests.Outcome (4 records): the message is "expected host failure".
  • These look like intentional probe outcomes. Confidence is medium: the failure messages say so, but the reports carry no attempt records proving a fail-then-pass recovery.
  • No crash or hang diagnostics, timeline failure signals or slowness regressions were found (slowRegressionCount = 0).
  • The evidence is incomplete: 1 artifact download failed. Other legs may therefore not have been fully analyzed.

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.

🤖 Automated content by GitHub Copilot. Generated by the Pipeline Test Triage workflow. · copilot · auto · 25.7 AIC · ⌖ 0.513 AIC · ⊞ 9.8K

@Evangelink

Copy link
Copy Markdown
Member Author

/backport to rel/4.5

@github-actions

Copy link
Copy Markdown
Contributor

@github-actions

Copy link
Copy Markdown
Contributor

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 128

NOTE: A PR will be created, but needs to be revised manually!

@github-actions

Copy link
Copy Markdown
Contributor

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 128

NOTE: A PR will be created, but needs to be revised manually!

@microsoft-github-policy-service microsoft-github-policy-service Bot added state/needs-review Awaiting review from the team. and removed state/needs-review Awaiting review from the team. labels Oct 30, 2026
@github-actions github-actions Bot added state/approved Proposal approved; ready for implementation. and removed state/needs-review Awaiting review from the team. labels Oct 30, 2026
@Evangelink
Amaury Levé (Evangelink) merged commit 5f0e9d6 into main Oct 30, 2026
36 checks passed
@Evangelink
Amaury Levé (Evangelink) deleted the dev/amauryleve/ci-diagnostic-context branch October 30, 2026 16:29
@github-actions github-actions Bot removed the state/approved Proposal approved; ready for implementation. label Oct 30, 2026
Amaury Levé (Evangelink) added a commit that referenced this pull request Nov 2, 2026
…in #12142 (backport to rel/4.5) (#12149)

Co-authored-by: Amaury Levé <amauryleve@microsoft.com>
Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants