Repository navigation
[rel/4.5] Fix existing MTP summary verdicts - #12031
Conversation
Selectively adapt the existing MTP summary-correctness fixes from #11960 (6968acc). Honor the exit-code 8 ignore policy in zero-test summary coloring, exclude skipped tests from explicit minima, and preserve framework-session failures without changing actual process exit codes or introducing a notification protocol. Add focused unit and packed-consumer regressions. Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com> Copilot-Session: 62f8933b-5dd0-45b1-9500-4b641f9a9f70
|
Final test-triage resolution — Azure Pipelines build 1640977 Final analysis of the completed aggregate build ( Summary: No actionable test failures. All 6 raw "failed" records in the normalized evidence come from first-attempt executions of deliberate retry/probe test cases that are designed to fail once and then pass on a subsequent attempt — this is expected product behavior being validated, not a regression:
For each of these, the same Conclusion: No issue is warranted — this is a clean build with only expected, by-design retry-probe churn. No further action needed.
|
Selective servicing adaptation of the existing MTP summary-correctness fixes only from #11960, source merge
6968acca2a1933175d4c9bf84b5863861f42a8e1. This is not a whole cherry-pick.There is exactly one new commit above
rel/4.5:1fb21269baf6b6f661e7805311d282dafca1bc44, validated on release base2eeb80e3dd7e6e71c11cd2375d06185032697d1a. No other unmerged backport is stacked.Scope
ExitCodeIgnorePolicyfor exit 8 when coloring zero-test summaries, including environment-over-command-line precedence and empty-environment fallback. Expected empty runs remain Zero tests ran, in neutral color, rather than becoming invented passing tests.The existing result service remains the owner of actual process-exit calculation. Failed tests, cancellation, handshake/process failures, counters, default all-skipped behavior, and explicitly ignored process exit codes retain their existing semantics. Only the corresponding summary implementation, internal API tracking, and regressions change.
Deliberately excluded from #11960
No
AssemblyRunNotSelected/No affected tests selectednotification, new resources or localizations, SDK caller/source port, affected-test documentation expansion, or unrelated hosting-test output suppression. The SDK companion is not shipped and is not required by this PR. No new public API or notification protocol is introduced.Executed validation
Windows, unchanged pinned SDK 12.0.100-alpha.1.26480.103, at most 2 MSBuild workers per build. Final package: Microsoft.Testing.Platform 2.5.2-dev, including its normal net8.0/net9.0/netstandard2.0 payload. The real consumer targets net10.0. The net11.0 acceptance harness uses process-local
DOTNET_ROLL_FORWARD=Majorto launch on the pinned SDK runtime; the SDK pin is unchanged.The 28 consumer cases execute the built test application against a newly repacked release package, with an asset-local NuGet cache so sibling builds cannot supply a different
2.5.2-devpackage. They assert actual process exits 0/2/8/9/10, rendered verdict/color, and exact counter blocks across empty runs, ignore-policy precedence, strict/default skipping, mixed pass/skip minima, real failed tests, and failed framework session creation/closure with zero or passing test nodes. Cancellation, handshake/process errors and multi-assembly aggregation are additionally covered by the focused unit suites; this is not a claim of SDK companion end-to-end validation.The final consumer's
Microsoft.Testing.Platform.dllwas SHA-256 compared withlib/net9.0/Microsoft.Testing.Platform.dllinside the final shipping nupkg: exact match.Exact commands and retained evidence
Logging pipes are omitted below; executable arguments are preserved.
$evidenceis the retained session artifact directory:Sensitivity check: retained all tests and internal signatures, temporarily forced
AllowZeroTests=false, counted skipped tests toward minima again, and replaced the late session-failure provider withstatic () => false. Rebuilt with the same unit build command plus-restoreand binlogsummary-head-sensitivity-build-{}.binlog; ran the same net8.0 command with TRX filenamesummary-unit-reverted.trx. The expected failures split into 6 ignore-policy, 6 minimum-count, and 2 session-failure cases. All temporary reversions were removed before final repacking and the green reruns above.Retained evidence: the five named TRX files,
summary-package-evidence.json, build/test logs and unique binlogs under$evidence; final generated consumer underartifacts\tmp\Debug\testsuite\2N6Kv\TestRunSummary. A first dotnet-only pack that omitted UAP failed broader MSTest payload-count verification; the complete desktop pack resolved it without changing package expectations.Remaining local blockers: none. GitHub CI is separate from these executed local checks; no merge or Agent merge is requested.