Repository navigation
[rel/4.5] Restore MTP startup diagnostics under dotnet test - #12027
Conversation
Backport #11971 independently onto rel/4.5, retaining its warning/error console fallback before the pipe connection and its unit and packed-consumer regression coverage. (cherry picked from commit a93dbf2) Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com> Copilot-Session: b024fc53-2e58-4ac1-99c0-aa0d7fd2d8c6
|
Final test-triage resolution — Azure Pipelines build 1640957 Analysis is final (completed/aggregate build; evidence is not incomplete). The build completed with overall result
These are not product or regression defects: the test names and assertion messages make clear they are intentional retry-recovery probes that exercise the MTP retry/AppContainer-host-failover extension points added/touched by this PR (startup diagnostics under No other failures, crashes, hangs, or duration regressions were found ( I searched open/closed issues for these test names and found none. Conclusion: No actionable defect. No issue created — this is expected retry-probe behavior for build 1640957, not a flaky or broken test. No further action needed.
|
Summary
Independent
rel/4.5backport of #11971, restoring MTP startup diagnostics under nativedotnet testfor #11964.Source commit:
a93dbf24f42227f60bb2b32a4468d3643b20fffe.Release base:
133c4720c6671061d6a315a517e98578838eda3c.Backport commit:
3ae75236b4e61a7ec1c52fc9409b5f3028cfa350.All five changed files exactly match the merged source PR. This branch contains one backport commit, no other fixes, and no SDK/version changes.
Warnings/errors fall back to the existing console service only before a dotnet-test connection is registered. Validation still exits 5 without opening the pipe. Informational/help output remains suppressed; connected forwarding and legacy-protocol suppression are unchanged.
Validation and regression evidence
Windows, Release; repository SDK 12.0.100-alpha.1.26480.103, unchanged from the release branch. The complete changed MTP package was packed for net8.0, net9.0, and netstandard2.0. Unit tests ran on .NET 8.0.31. The acceptance host targets net11.0 and ran on the SDK's .NET 12 runtime with
DOTNET_ROLL_FORWARD=Major; its generated consumers target net10.0.The unfixed comparison retained the final tests and packed the original release production code. It did not rely on setup failures, skips, or zero executed tests.
DotnetTestPassthroughOutputDeviceTestsDotnetTestPipeStartupErrorTestsdata rows: unknown option, missing extension, duplicate providers, malformed configurationThere were no skipped cases. TRX, JUnit, and CTRF reports were parsed and their counts reconciled. The built/tested five-file source state was verified unchanged when committed.
Recorded repository commands
Commands ran from the worktree root in a child process with repo-local
DOTNET_ROOT, MSBuild server reuse disabled, an explicit shortened Windows PATH, andDOTNET_PROCESSOR_COUNT=2. Build/pack commands additionally used/m:2or-m:2; nativedotnet testused--max-parallel-test-modules 1.The acceptance-harness prerequisite packages were individually packed from this release checkout with
dotnet pack <project> -c Release -m:2 -nr:false -p:SkipUapTargetFramework=true -bl:<unique-log> -v minimal. The changed MTP package did not exclude any of its shipping TFMs. This is targeted packaging, not a claimed full-solution/UAP pack.Real shipping-SDK composed-product check
Separately built package-consuming net10.0 applications with shipping SDK 10.0.402, explicitly referencing the locally packed MTP, Platform.MSBuild, and TrxReport 2.5.2-dev packages. Baseline/fixed consumers used separate NuGet caches, pinned SDK selection, and source mapping that forces
Microsoft.Testing.*to the local release feed.Both states passed all nine expected contract scenarios:
dotnet test --project Good\Good.csproj --no-build -c Release --report-trx --results-directory <normal>ReleaseConsumerTestpassed in the TRX; plain informational sentinel absent--unknown-option,--report-gh, or--config-file <invalid.json>; Bad project registers duplicatemy-optionprovidersdotnet test --solution Consumer.slnx --no-build -c Release --report-trx --results-directory <mixed>STARTUP_CONSUMER_MODE=failedSTARTUP_CONSUMER_MODE=zero--server dotnettestcli --dotnet-test-pipe <live-listener> --unknown-optionThe SDK invocations above also captured unique binlogs. The direct-host invocation does not invoke MSBuild. Both consumer solutions were built with
dotnet build Consumer.slnx -c Release -m:2 -nr:false -bl:<unique-log> -v minimal(exit 0).Readable diagnostic transcript, abbreviating SDK summary/path lines:
The isolated SDK cache's nupkg matched the packed nupkg byte-for-byte. Both executed SDK consumer DLLs matched the package's net9.0 payload; all eight retained acceptance output DLLs per comparison state matched the corresponding payload too.
162359B0C577566D1D4F837BE53E628F22E22E648A390E2243190ACCB3070BDF2D87F9166DB4E3EE80CB2E0EDB07C699080A81E865DBCA1A73DB75F42C9EB9D8Evidence is retained locally under
artifacts\TestResults\startup-{baseline,fixed}-{unit,acceptance},artifacts\startup-validation, and this Copilot session's files (recorded argument lists, harness source, logs, summaries). These are local artifacts, not links to published CI artifacts.Limitations: focused Windows validation only; no full solution, classic UAP, Linux/macOS, or separate cancellation-suite execution. The branch's SDK pin and cancellation/protocol implementations were not changed. No remaining blocker for the focused backport validation; remote CI is not claimed green.