Skip to content

Forward MSTest filters through the packaged-app sidecar - #11805

Merged
Amaury Levé (Evangelink) merged 7 commits into
microsoft:mainfrom
Sergio0694:user/sergiopedri/sidecar-framework-filtering
Oct 8, 2026
Merged

Amaury Levé (Evangelink) merged 7 commits into
microsoft:mainfrom
Sergio0694:user/sergiopedri/sidecar-framework-filtering

Conversation

@Sergio0694

@Sergio0694 Sergio Pedri (Sergio0694) commented Oct 8, 2026 •

Copy link
Copy Markdown
Member

Fix the packaged-app controller rejecting MSTest's --filter before activating the actual test host. The sidecar registers the existing single-expression option only for an MSTest-enabled controller. The activated host owns grammar and selection; unrelated unknown options remain errors, and real MSTest hosts do not acquire duplicate filter registration.

The routing dependency #11804 is now merged. This branch incorporates current main in 12638d9b76900519c17c45aa3b5218c71ec5574f, retaining the project-local bootstrap, launch-profile precedence, response-file informational routing, and restart transport. The remaining increment includes shared provider/internal API tracking, generated localization, exact extension-token/help/info expectations, real native/MSBuild filter regressions, capable Windows CI selection, guarded package cleanup, and filtering documentation.

The public packaged WinUI sample enables all SDK-managed extensions and provides Probe-Extensions.ps1. Its support report explicitly distinguishes verified filter/TRX/retry/activation behavior, zero-covered-line Partial coverage, controller-rejected Unavailable options, and unexercised interactive/licensed/exporter scenarios. Those composition gaps are not claimed fixed. Published sample pins still need coordinated release advancement. No separate issue was supplied.

Fresh validation at 12638d9b7

Fresh MSTest 4.6.0-dev / MTP 2.6.0-dev packages were tested with native SDK 10.0.401 and the repository-pinned SDK 12.0.100-alpha.1.26480.103. Detailed exact commands, verification boundaries, and artifact locations are in the fresh extensive review.

  • powershell.exe -NoProfile -ExecutionPolicy Bypass -File .\eng\build.ps1 -restore -build -bl -msbuildEngine dotnet -projects artifacts\tmp\Review11805\Review11805.slnx /p:SkipUapTargetFramework=true /m:1 /bl:artifacts\log\Debug\Review11805-Build-Final.binlog — passed, zero warnings/errors. The generated, uncommitted solution includes Platform/Package/Adapter/TestFramework/Analyzer projects and the three relevant test projects.
  • Restore/build with -pack and /bl:artifacts\log\Debug\Review11805-Composed-Final.binlog produced fresh shipping packages and both controller layouts, but the complete package audit failed on excluded UAP assets (MSTest 10/9, adapter 76/64, framework 105/88 expected/actual). A transient existing multi-TFM copy retry was also reported; the subsequent serial final build passed cleanly. Both packed Windows extension DLLs match final build outputs by SHA-256.
  • UpdateXlf on the owning PackagedApp project — passed, 13 regenerated catalogs. python .github\scripts\check_localization.py — passed, all 364 catalogs.
  • Packaged-app units on .NET 8 and .NET 9 — 174 passed and two existing platform-specific skips on each framework.
  • Focused MSTest acceptance — 120 passed, zero skipped, including 39 real native/MSBuild activation cases and all 18 filter boundary cases.
  • Public WinUI sample matrix — all four cases passed through a short worktree alias. Both additional filtered/unfiltered native WinUI cases passed from a short physical staging layout containing unchanged final binaries, aligned packages, pinned SDK, version metadata, and sample assets — two passed, zero skipped. The original long worktree failed before activation in the legacy XAML compiler; the alias also exposed two existing alias-versus-physical-layout assertions, so those two cases were independently rerun in the physical layout. No assertion was weakened.
  • Whitespace checks, all 13 changed C# UTF-8 BOMs, and owned test-package registration cleanup — passed.

Across final verification runs: 474 passed cases and four existing unit-test skips. Real activation coverage verifies exact selected TRX names/outcomes, spaced and literal-quoted expressions, selected failures, zero matches, invalid grammar, missing/repeated filters and unknown options before activation, actual retries, launcher suppression, native AppContainer rejection, help/discovery, clean/no-build launches, response files, launch-profile precedence, multi-target aggregation, cancellation, and cleanup retention. Public samples cover native full-trust and MSBuild full-trust/AppContainer selection.

Limits: classic UAP execution and the complete UAP package audit remain unvalidated locally. Native AppContainer remains unsupported. SDK 10 summarizes invalid-filter host errors/exit 8 without displaying the detailed parse message; the MSBuild path checks that diagnostic. Legacy VSTest-mode dotnet test --filter is not newly forwarded; supported paths are native MTP and InvokeTestingPlatform. No downstream rollout, servicing change, or backport was performed.

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Register the shared single-expression filter option only in MSTest-enabled controllers, leaving grammar and test selection to the activated host. Cover native and MSBuild filtering, failures, reports, retries, and sidecar help, and document quoting and SDK 10 diagnostics.

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

🔵 Needs a closer look

Cumulative Windows activation and lifecycle changes warrant maintainer review, with classic UAP and full package validation still incomplete.

0 open findings

What changed in this PR

Enables MSTest filter forwarding through the packaged-app sidecar. The cumulative diff also includes native routing from #11804; both fixes are intended to ship together.

Changes:

  • Registers --filter only for MSTest-enabled controllers, leaving evaluation to the activated host.
  • Routes native launches through the sidecar while preserving transport, arguments, and host results.
  • Adds regression coverage, localized resources, API tracking, and usage documentation.
🟡 Confidence at a glance: packaged-app integration

Windows activation and lifecycle changes need maintainer confirmation; classic UAP and complete package validation remain outstanding.

File Description
test/​UnitTests/​Microsoft.Testing.Extensions.UnitTests/​PackagedAppNativeInformationalLaunchTests.cs Tests launch failures, cancellation, and cleanup.
test/​UnitTests/​Microsoft.Testing.Extensions.UnitTests/​PackagedAppControllerFilterCommandLineOptionsProviderTests.cs Tests filter registration and deferred validation.
test/​UnitTests/​Microsoft.Testing.Extensions.UnitTests/​PackagedAppControllerArgumentsTests.cs Tests bootstrap arguments and transport handling.
test/​IntegrationTests/​MSTest.Acceptance.IntegrationTests/​SdkTests.cs Updates controller extension expectations.
test/​IntegrationTests/​MSTest.Acceptance.IntegrationTests/​PackagedAppNativeDotnetTestTests.cs Exercises packaged activation, filtering, reports, and retries.
test/​IntegrationTests/​MSTest.Acceptance.IntegrationTests/​PackagedAppIntegrationTests.cs Tests routing contracts and gated filter help.
src/​Platform/​SharedExtensionHelpers/​TestCaseFilterCommandLineOptionsProviderBase.cs Documents controller reuse in a comment.
src/​Platform/​Microsoft.Testing.Extensions.PackagedApp/​Resources/​xlf/​ExtensionResources.zh-Hant.xlf Adds Traditional Chinese catalog entries.
src/​Platform/​Microsoft.Testing.Extensions.PackagedApp/​Resources/​xlf/​ExtensionResources.zh-Hans.xlf Adds Simplified Chinese catalog entries.
src/​Platform/​Microsoft.Testing.Extensions.PackagedApp/​Resources/​xlf/​ExtensionResources.tr.xlf Adds Turkish catalog entries.
src/​Platform/​Microsoft.Testing.Extensions.PackagedApp/​Resources/​xlf/​ExtensionResources.ru.xlf Adds Russian catalog entries.
src/​Platform/​Microsoft.Testing.Extensions.PackagedApp/​Resources/​xlf/​ExtensionResources.pt-BR.xlf Adds Brazilian Portuguese catalog entries.
src/​Platform/​Microsoft.Testing.Extensions.PackagedApp/​Resources/​xlf/​ExtensionResources.pl.xlf Adds Polish catalog entries.
src/​Platform/​Microsoft.Testing.Extensions.PackagedApp/​Resources/​xlf/​ExtensionResources.ko.xlf Adds Korean catalog entries.
src/​Platform/​Microsoft.Testing.Extensions.PackagedApp/​Resources/​xlf/​ExtensionResources.ja.xlf Adds Japanese catalog entries.
src/​Platform/​Microsoft.Testing.Extensions.PackagedApp/​Resources/​xlf/​ExtensionResources.it.xlf Adds Italian catalog entries.
src/​Platform/​Microsoft.Testing.Extensions.PackagedApp/​Resources/​xlf/​ExtensionResources.fr.xlf Adds French catalog entries.
src/​Platform/​Microsoft.Testing.Extensions.PackagedApp/​Resources/​xlf/​ExtensionResources.es.xlf Adds Spanish catalog entries.
src/​Platform/​Microsoft.Testing.Extensions.PackagedApp/​Resources/​xlf/​ExtensionResources.de.xlf Adds German catalog entries.
src/​Platform/​Microsoft.Testing.Extensions.PackagedApp/​Resources/​xlf/​ExtensionResources.cs.xlf Adds Czech catalog entries.
src/​Platform/​Microsoft.Testing.Extensions.PackagedApp/​Resources/​ExtensionResources.resx Adds filter help and startup diagnostics.
src/​Platform/​Microsoft.Testing.Extensions.PackagedApp/​PackagedAppTestHostLauncher.PackagedLaunch.cs Rejects native AppContainer transport.
src/​Platform/​Microsoft.Testing.Extensions.PackagedApp/​PackagedAppTestHostLauncher.LooseLayout.cs Clears inherited controller pipe state.
src/​Platform/​Microsoft.Testing.Extensions.PackagedApp/​PackagedAppTestHostLauncher.cs Restores native transport for host activation.
src/​Platform/​Microsoft.Testing.Extensions.PackagedApp/​PackagedAppNativeInformationalLaunch.cs Manages informational launches and cancellation.
src/​Platform/​Microsoft.Testing.Extensions.PackagedApp/​PackagedAppControllerFilterCommandLineOptionsProvider.cs Adds the controller-only filter provider.
src/​Platform/​Microsoft.Testing.Extensions.PackagedApp/​PackagedAppControllerArguments.cs Parses bootstrap and separates native transport.
src/​Platform/​Microsoft.Testing.Extensions.PackagedApp/​Microsoft.Testing.Extensions.PackagedApp.csproj Links the shared filter provider base.
src/​Platform/​Microsoft.Testing.Extensions.PackagedApp/​InternalAPI/​InternalAPI.Unshipped.txt Tracks new internal APIs.
src/​Platform/​Microsoft.Testing.Extensions.PackagedApp.MSBuild/​PACKAGE.md Documents native routing and filtering limitations.
src/​Platform/​Microsoft.Testing.Extensions.PackagedApp.MSBuild/​buildTransitive/​Microsoft.Testing.Extensions.PackagedApp.MSBuild.targets Selects native sidecar routing and MSTest capability.
src/​Platform/​Microsoft.Testing.Extensions.PackagedApp.Controller/​Program.cs Initializes routing and gated filter registration.
docs/​winui-testing.md Explains packaged filtering and supported launch paths.

🧠 Review effort: Balanced


Give feedback about Copilot approvals in this survey to enter a drawing for a $150 gift card.

@github-actions

This comment has been minimized.

@Evangelink Amaury Levé (Evangelink) left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please wire the new packaged-host regression matrix into the dedicated Windows application-model CI job before merging. One P2 finding is attached inline; I am withholding approval because the new end-to-end filter coverage currently never executes there.

Reviewed the complete cumulative 32-file diff at 438e7498, including the routing changes from #11804, and traced controller registration, native transport and execution-ID handoff, retries, cancellation, MSBuild launch overrides, shared-source/API tracking, resources, and test assertions. The routing/filter changes are a coherent dependency, and the documented requirement to ship both fixes together matches the implementation. I found no additional high-confidence production regression.

Confidence at a glance

🟢 Production, API, and localization

The filter provider is gated to MSTest-enabled sidecars, reuses the existing exactly-one-argument contract, and leaves grammar and selection to the activated host. Real MSTest hosts do not acquire duplicate registration. Internal API entries and the shared source link are consistent; all changed C# BOMs and the 13 generated XLF source/note sets match the five new resources.

🟢 MSBuild and existing composed-product coverage

Reviewed clean/no-build routing, explicit executable overrides, staged target paths, extension-token selection, and transport restoration. Build 1627441 passed its Windows Debug/Release, Linux Release, and application-model legs. Its dedicated application-model run 45130966 includes a passing real packaged full-trust native execution-ID/results test, plus packaged AppContainer and retry tests. This supports the existing launch contract, but does not exercise the new filter matrix.

🟡 New regression coverage and CI enforcement

I read the individual results rather than relying only on green check badges: all 29 cases in PackagedAppNativeDotnetTestTests, including all 18 native/MSBuild filter cases, are NotExecuted in Windows Release run 45133106. The dedicated MSTest job selects TestCategory=WindowsApplicationModel, which this class lacks, and does not supply its installed SDK path. The author reports local package-consuming validation; I did not independently rerun that activation matrix. Local review validation was limited to source-level bootstrap probes, diff checks, encoding checks, and resource/catalog consistency checks.

@microsoft-github-policy-service microsoft-github-policy-service Bot added needs/author-feedback Waiting on the original author. state/needs-review Awaiting review from the team. and removed state/needs-review Awaiting review from the team. labels Oct 8, 2026
@github-actions github-actions Bot added needs/author-feedback Waiting on the original author. and removed state/needs-review Awaiting review from the team. needs/author-feedback Waiting on the original author. labels Oct 8, 2026
Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>

Copilot-Session: b7b5bff4-a965-47d2-9b1b-03e3295c730c
Copilot AI balanced review requested due to automatic review settings October 8, 2026 07:47
@github-actions github-actions Bot added needs/author-feedback Waiting on the original author. and removed needs/author-feedback Waiting on the original author. labels Oct 8, 2026
@microsoft-github-policy-service microsoft-github-policy-service Bot added the state/needs-review Awaiting review from the team. label Oct 8, 2026
@github-actions github-actions Bot added needs/author-feedback Waiting on the original author. and removed state/needs-review Awaiting review from the team. needs/author-feedback Waiting on the original author. labels Oct 8, 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.

🔵 Needs a closer look

Cumulative process-routing and activation changes require human review, with cleanup safety unresolved and UAP/package validation incomplete.

1 open finding

🧠 Review effort: Balanced


Give feedback about Copilot approvals in this survey to enter a drawing for a $150 gift card.

@microsoft-github-policy-service microsoft-github-policy-service Bot added the state/needs-review Awaiting review from the team. label Oct 8, 2026
@github-actions github-actions Bot added needs/author-feedback Waiting on the original author. and removed state/needs-review Awaiting review from the team. needs/author-feedback Waiting on the original author. labels Oct 8, 2026
@github-actions github-actions Bot added needs/author-feedback Waiting on the original author. and removed needs/merge-conflict-resolution PR has merge conflicts that must be resolved. labels Oct 8, 2026

@Evangelink Amaury Levé (Evangelink) left a comment

Copy link
Copy Markdown
Member

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. To request a follow-up action, reply by tagging @copilot directly.

No remaining actionable code findings. I recommend approval of 12638d9b76900519c17c45aa3b5218c71ec5574f, subject to the normal CI and maintainer approval process.

I reviewed the original cumulative 44-file change and the final 38-file increment against current main, tracing controller registration, raw and parsed arguments, native SDK transport ownership, activated-host execution identity, retries, cancellation, launch-profile precedence, explicit overrides, multi-target aggregation, package alignment, shared source/API tracking, localization, CI selection, and cleanup. I also checked the new sample probes and test assertions against the observable product contract.

During this review I merged the now-merged routing dependency (#11804) and current main, resolving ten overlapping conflicts without discarding either parent's behavior. This preserves the upstream project-local bootstrap, response-file informational routing, and restart transport alongside this PR's gated MSTest filter provider, filter matrix, CI category, and guarded cleanup. I caught and repaired a malformed RESX/XLIFF automatic merge, regenerated all 13 owning catalogs, and pushed the reconciliation in 12638d9b7. The PR is now mergeable. These are integration corrections, not additional defects attributed to the original filter implementation.

Confidence at a glance

🟢 Runtime, CLI, API, and localization

The sidecar registers exactly one visible filter argument only for an MSTest-enabled controller. The activated host still owns grammar and selection; unrelated unknown options remain errors and real MSTest hosts do not receive duplicate registration. The final production delta reuses the existing provider contract without adding public API or changing the upstream native transport protocol.

The final build passed with zero warnings/errors. Both .NET 8 and .NET 9 runs passed 174 packaged-app unit cases each, with two existing platform-specific skips each. Internal API baselines, 13 changed C# BOMs, and all 364 repository localization catalogs were verified. The Windows extension DLLs inside both shipping sidecar layouts match the final build outputs by SHA-256.

🟢 Composed-product behavior and regression coverage

Fresh, aligned MSTest 4.6.0-dev / MTP 2.6.0-dev packages were consumed by real Windows applications using native SDK 10.0.401 and InvokeTestingPlatform, not only mocks.

All 120 focused MSTest acceptance cases passed without skips, including 39 native/MSBuild activation cases and all 18 filter boundary cases. These check exact selected TRX names/outcomes, spaced and literal-quoted expressions, selected failures, no matches, invalid grammar, missing/repeated filters, unknown options before activation, actual retry attempts, disabled/AppContainer rejection, clean/no-build launch, launch-profile precedence, response-file discovery, custom overrides, cancellation, multi-target exit aggregation, and cleanup retention.

All four public WinUI sample cases passed: native/full-trust and MSBuild/full-trust/AppContainer selection plus the 14-extension support report. Both additional native WinUI cases passed from a short physical shipping-product staging layout, verifying filtered/unfiltered execution markers, TRX, execution identity, package identity, and registered layout. This totals 474 passed cases and four existing unit-test skips across the final verification runs.

The original long worktree caused six pre-activation XAML compiler failures. A short junction fixed compilation, but two existing layout assertions compared the alias with the physical, rematerialized layout. The four sample cases passed there; I independently reran both native layout cases from a short physical staging directory with unchanged final binaries and packages, and both passed. No test assertion was weakened to obtain these results.

🟡 Packaging, release, and explicitly unsupported scenarios

Packing produced fresh shipping packages, including both Windows controller layouts, but the complete package audit did not pass: SkipUapTargetFramework=true omits classic UAP assets (MSTest expected/actual 10/9, adapter 76/64, framework 105/88). A transient existing multi-TFM copy retry was also reported during packing; the subsequent serial final build passed cleanly. Classic UAP execution and the complete UAP package audit remain CI/release validation responsibilities.

The all-extension sample correctly reports coverage as Partial when Cobertura has zero covered sample lines, unsupported controller options as Unavailable, and unexercised exporter/licensed/interactive scenarios as NotExercised. Passing its acceptance check is not a claim that these gaps are fixed. Native AppContainer remains explicitly unsupported; its MSBuild filter path was exercised successfully. Published sample pins still need coordinated release advancement. No downstream rollout or servicing/backport was performed.

Reproducible validation

The uncommitted artifacts\tmp\Review11805\Review11805.slnx was generated from Platform, Package, Adapter, TestFramework, and Analyzer projects plus the extension unit and two acceptance projects.

powershell.exe -NoProfile -ExecutionPolicy Bypass -File .\eng\build.ps1 -restore -build -bl -msbuildEngine dotnet -projects artifacts\tmp\Review11805\Review11805.slnx /p:SkipUapTargetFramework=true /m:1 /bl:artifacts\log\Debug\Review11805-Build-Final.binlog
# Passed: 0 warnings, 0 errors.

powershell.exe -NoProfile -ExecutionPolicy Bypass -File .\eng\build.ps1 -restore -build -pack -bl -msbuildEngine dotnet -projects artifacts\tmp\Review11805\Review11805.slnx /p:SkipUapTargetFramework=true /bl:artifacts\log\Debug\Review11805-Composed-Final.binlog
# Shipping packages produced; final whole-package audit failed as described above.

.\.dotnet\dotnet.exe msbuild src\Platform\Microsoft.Testing.Extensions.PackagedApp\Microsoft.Testing.Extensions.PackagedApp.csproj -t:UpdateXlf -bl:artifacts\log\Debug\Review11805-UpdateXlf.binlog -v:minimal
# Passed; 13 regenerated catalogs.
python .github\scripts\check_localization.py
# Passed: 364 catalogs.

$env:DOTNET_ROLL_FORWARD = 'Major'
$env:TESTFX_RUN_WINDOWS_APP_MODEL_TESTS = '1'
$env:TESTFX_DOTNET_10_PATH = 'C:\Program Files\dotnet\dotnet.exe' # SDK 10.0.401
.\.dotnet\dotnet.exe artifacts\bin\Microsoft.Testing.Extensions.UnitTests\Debug\net8.0\Microsoft.Testing.Extensions.UnitTests.dll --filter 'FullyQualifiedName~PackagedApp' --report-trx --report-trx-filename final-net8.trx --results-directory "$PWD\artifacts\TestResults\Debug\Review11805" --progress off
# Passed: 174; existing skips: 2. Same command with net9.0/final-net9.trx: 174 passed, 2 existing skips.
.\.dotnet\dotnet.exe artifacts\bin\MSTest.Acceptance.IntegrationTests\Debug\net11.0\MSTest.Acceptance.IntegrationTests.dll --filter 'FullyQualifiedName~PackagedAppNativeDotnetTestTests|FullyQualifiedName~PackagedAppIntegrationTests|FullyQualifiedName~WindowsApplicationModelCleanupTests|FullyQualifiedName~PackagedHostFilterTests_AreSelectedByApplicationModelJob|FullyQualifiedName~MSTestSdk_PackagedWinUI_SelectsLauncherOnlyOnWindows|FullyQualifiedName~MSTestSdk_ModernUwp_DefaultsToMtpWithAppModelController' --report-trx --report-trx-filename final-mstest.trx --results-directory "$PWD\artifacts\TestResults\Debug\Review11805" --progress off
# Passed: 120; skipped: 0.

WinUI verification used the same final acceptance DLL with selector FullyQualifiedName~PublicPackagedWinUISample_|FullyQualifiedName~PackagedFullTrustWinUI_NativeDotnetTestPreservesExecutionIdAndPublishesResults through the short worktree alias Q:\pr11805-e66c64 (four sample cases passed; two alias/layout assertions failed), then selector FullyQualifiedName~PackagedFullTrustWinUI_NativeDotnetTestPreservesExecutionIdAndPublishesResults from the short physical staging root Q:\testfx11805-e66c64 (both passed). That staging layout contained the unchanged final acceptance output, freshly packed shipping/nonshipping packages, pinned SDK, repository version metadata, and required sample assets.

Evidence is retained under artifacts\TestResults\Debug\Review11805, artifacts\log\Debug\Review11805*.binlog, the public sample's artifacts\log\Debug\PackagedWinUI\...\extension-probes, and artifacts\tmp\Review11805. Test registrations were removed; only the temporary validation alias/staging layout were cleaned up.

@microsoft-github-policy-service microsoft-github-policy-service Bot added the state/needs-review Awaiting review from the team. label Oct 8, 2026
@github-actions github-actions Bot added needs/author-feedback Waiting on the original author. and removed state/needs-review Awaiting review from the team. needs/author-feedback Waiting on the original author. labels Oct 8, 2026

@Evangelink Amaury Levé (Evangelink) left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Approved at the user's explicit request after the extensive review and verified fixes.

Reviewed head: 12638d9b76900519c17c45aa3b5218c71ec5574f. No remaining actionable code findings; the merge conflicts and localization integration issue are resolved. Final composed-product verification passed 474 cases with four existing platform-specific skips.

CI remains in progress and must satisfy the normal merge requirements. The documented local UAP package-audit limitation is unchanged. This approval does not merge the PR.

@microsoft-github-policy-service microsoft-github-policy-service Bot added the state/needs-review Awaiting review from the team. label Oct 8, 2026
@github-actions github-actions Bot added state/approved Proposal approved; ready for implementation. and removed state/needs-review Awaiting review from the team. needs/author-feedback Waiting on the original author. labels Oct 8, 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.

🔵 Needs a closer look

Classic UAP compilation/execution and a successful full-package audit remain unvalidated for the shared controller changes.

0 open findings

🧠 Review effort: Balanced


Give feedback about Copilot approvals in this survey to enter a drawing for a $150 gift card.

@Evangelink

Copy link
Copy Markdown
Member

/backport to rel/4.5

@github-actions

github-actions Bot commented Oct 8, 2026

Copy link
Copy Markdown
Contributor

@github-actions

github-actions Bot commented Oct 8, 2026

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: Fix native dotnet test routing for packaged applications
Using index info to reconstruct a base tree...
M	docs/winui-testing.md
M	src/Platform/Microsoft.Testing.Extensions.PackagedApp.Controller/Program.cs
M	src/Platform/Microsoft.Testing.Extensions.PackagedApp.MSBuild/PACKAGE.md
M	src/Platform/Microsoft.Testing.Extensions.PackagedApp.MSBuild/buildTransitive/Microsoft.Testing.Extensions.PackagedApp.MSBuild.targets
M	src/Platform/Microsoft.Testing.Extensions.PackagedApp/InternalAPI/InternalAPI.Unshipped.txt
M	src/Platform/Microsoft.Testing.Extensions.PackagedApp/PackagedAppTestHostLauncher.LooseLayout.cs
M	src/Platform/Microsoft.Testing.Extensions.PackagedApp/PackagedAppTestHostLauncher.PackagedLaunch.cs
M	src/Platform/Microsoft.Testing.Extensions.PackagedApp/PackagedAppTestHostLauncher.cs
M	src/Platform/Microsoft.Testing.Extensions.PackagedApp/Resources/ExtensionResources.resx
M	src/Platform/Microsoft.Testing.Extensions.PackagedApp/Resources/xlf/ExtensionResources.cs.xlf
M	src/Platform/Microsoft.Testing.Extensions.PackagedApp/Resources/xlf/ExtensionResources.de.xlf
M	src/Platform/Microsoft.Testing.Extensions.PackagedApp/Resources/xlf/ExtensionResources.es.xlf
M	src/Platform/Microsoft.Testing.Extensions.PackagedApp/Resources/xlf/ExtensionResources.fr.xlf
M	src/Platform/Microsoft.Testing.Extensions.PackagedApp/Resources/xlf/ExtensionResources.it.xlf
M	src/Platform/Microsoft.Testing.Extensions.PackagedApp/Resources/xlf/ExtensionResources.ja.xlf
M	src/Platform/Microsoft.Testing.Extensions.PackagedApp/Resources/xlf/ExtensionResources.ko.xlf
M	src/Platform/Microsoft.Testing.Extensions.PackagedApp/Resources/xlf/ExtensionResources.pl.xlf
M	src/Platform/Microsoft.Testing.Extensions.PackagedApp/Resources/xlf/ExtensionResources.pt-BR.xlf
M	src/Platform/Microsoft.Testing.Extensions.PackagedApp/Resources/xlf/ExtensionResources.ru.xlf
M	src/Platform/Microsoft.Testing.Extensions.PackagedApp/Resources/xlf/ExtensionResources.tr.xlf
M	src/Platform/Microsoft.Testing.Extensions.PackagedApp/Resources/xlf/ExtensionResources.zh-Hans.xlf
M	src/Platform/Microsoft.Testing.Extensions.PackagedApp/Resources/xlf/ExtensionResources.zh-Hant.xlf
M	test/IntegrationTests/MSTest.Acceptance.IntegrationTests/PackagedAppIntegrationTests.cs
Falling back to patching base and 3-way merge...
Auto-merging docs/winui-testing.md
CONFLICT (content): Merge conflict in docs/winui-testing.md
Auto-merging src/Platform/Microsoft.Testing.Extensions.PackagedApp.Controller/Program.cs
CONFLICT (content): Merge conflict in src/Platform/Microsoft.Testing.Extensions.PackagedApp.Controller/Program.cs
Auto-merging src/Platform/Microsoft.Testing.Extensions.PackagedApp.MSBuild/PACKAGE.md
CONFLICT (content): Merge conflict in src/Platform/Microsoft.Testing.Extensions.PackagedApp.MSBuild/PACKAGE.md
Auto-merging src/Platform/Microsoft.Testing.Extensions.PackagedApp.MSBuild/buildTransitive/Microsoft.Testing.Extensions.PackagedApp.MSBuild.targets
CONFLICT (content): Merge conflict in src/Platform/Microsoft.Testing.Extensions.PackagedApp.MSBuild/buildTransitive/Microsoft.Testing.Extensions.PackagedApp.MSBuild.targets
Auto-merging src/Platform/Microsoft.Testing.Extensions.PackagedApp/InternalAPI/InternalAPI.Unshipped.txt
CONFLICT (content): Merge conflict in src/Platform/Microsoft.Testing.Extensions.PackagedApp/InternalAPI/InternalAPI.Unshipped.txt
Auto-merging src/Platform/Microsoft.Testing.Extensions.PackagedApp/PackagedAppControllerArguments.cs
CONFLICT (add/add): Merge conflict in src/Platform/Microsoft.Testing.Extensions.PackagedApp/PackagedAppControllerArguments.cs
Auto-merging src/Platform/Microsoft.Testing.Extensions.PackagedApp/Resources/ExtensionResources.resx
Auto-merging src/Platform/Microsoft.Testing.Extensions.PackagedApp/Resources/xlf/ExtensionResources.cs.xlf
Auto-merging src/Platform/Microsoft.Testing.Extensions.PackagedApp/Resources/xlf/ExtensionResources.de.xlf
Auto-merging src/Platform/Microsoft.Testing.Extensions.PackagedApp/Resources/xlf/ExtensionResources.es.xlf
Auto-merging src/Platform/Microsoft.Testing.Extensions.PackagedApp/Resources/xlf/ExtensionResources.fr.xlf
Auto-merging src/Platform/Microsoft.Testing.Extensions.PackagedApp/Resources/xlf/ExtensionResources.it.xlf
Auto-merging src/Platform/Microsoft.Testing.Extensions.PackagedApp/Resources/xlf/ExtensionResources.ja.xlf
Auto-merging src/Platform/Microsoft.Testing.Extensions.PackagedApp/Resources/xlf/ExtensionResources.ko.xlf
Auto-merging src/Platform/Microsoft.Testing.Extensions.PackagedApp/Resources/xlf/ExtensionResources.pl.xlf
Auto-merging src/Platform/Microsoft.Testing.Extensions.PackagedApp/Resources/xlf/ExtensionResources.pt-BR.xlf
Auto-merging src/Platform/Microsoft.Testing.Extensions.PackagedApp/Resources/xlf/ExtensionResources.ru.xlf
Auto-merging src/Platform/Microsoft.Testing.Extensions.PackagedApp/Resources/xlf/ExtensionResources.tr.xlf
Auto-merging src/Platform/Microsoft.Testing.Extensions.PackagedApp/Resources/xlf/ExtensionResources.zh-Hans.xlf
Auto-merging src/Platform/Microsoft.Testing.Extensions.PackagedApp/Resources/xlf/ExtensionResources.zh-Hant.xlf
Auto-merging test/IntegrationTests/MSTest.Acceptance.IntegrationTests/PackagedAppIntegrationTests.cs
CONFLICT (content): Merge conflict in test/IntegrationTests/MSTest.Acceptance.IntegrationTests/PackagedAppIntegrationTests.cs
Auto-merging test/IntegrationTests/MSTest.Acceptance.IntegrationTests/PackagedAppNativeDotnetTestTests.cs
CONFLICT (add/add): Merge conflict in test/IntegrationTests/MSTest.Acceptance.IntegrationTests/PackagedAppNativeDotnetTestTests.cs
Auto-merging test/UnitTests/Microsoft.Testing.Extensions.UnitTests/PackagedAppControllerArgumentsTests.cs
CONFLICT (add/add): Merge conflict in test/UnitTests/Microsoft.Testing.Extensions.UnitTests/PackagedAppControllerArgumentsTests.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 0001 Fix native dotnet test routing for packaged applications
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

github-actions Bot commented Oct 8, 2026

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: Fix native dotnet test routing for packaged applications
Applying: Forward MSTest filters through the packaged-app sidecar
Using index info to reconstruct a base tree...
M	docs/winui-testing.md
M	src/Platform/Microsoft.Testing.Extensions.PackagedApp.Controller/Program.cs
M	src/Platform/Microsoft.Testing.Extensions.PackagedApp.MSBuild/PACKAGE.md
M	src/Platform/Microsoft.Testing.Extensions.PackagedApp.MSBuild/buildTransitive/Microsoft.Testing.Extensions.PackagedApp.MSBuild.targets
M	src/Platform/Microsoft.Testing.Extensions.PackagedApp/InternalAPI/InternalAPI.Unshipped.txt
M	src/Platform/Microsoft.Testing.Extensions.PackagedApp/Resources/ExtensionResources.resx
M	src/Platform/Microsoft.Testing.Extensions.PackagedApp/Resources/xlf/ExtensionResources.cs.xlf
M	src/Platform/Microsoft.Testing.Extensions.PackagedApp/Resources/xlf/ExtensionResources.de.xlf
M	src/Platform/Microsoft.Testing.Extensions.PackagedApp/Resources/xlf/ExtensionResources.es.xlf
M	src/Platform/Microsoft.Testing.Extensions.PackagedApp/Resources/xlf/ExtensionResources.fr.xlf
M	src/Platform/Microsoft.Testing.Extensions.PackagedApp/Resources/xlf/ExtensionResources.it.xlf
M	src/Platform/Microsoft.Testing.Extensions.PackagedApp/Resources/xlf/ExtensionResources.ja.xlf
M	src/Platform/Microsoft.Testing.Extensions.PackagedApp/Resources/xlf/ExtensionResources.ko.xlf
M	src/Platform/Microsoft.Testing.Extensions.PackagedApp/Resources/xlf/ExtensionResources.pl.xlf
M	src/Platform/Microsoft.Testing.Extensions.PackagedApp/Resources/xlf/ExtensionResources.pt-BR.xlf
M	src/Platform/Microsoft.Testing.Extensions.PackagedApp/Resources/xlf/ExtensionResources.ru.xlf
M	src/Platform/Microsoft.Testing.Extensions.PackagedApp/Resources/xlf/ExtensionResources.tr.xlf
M	src/Platform/Microsoft.Testing.Extensions.PackagedApp/Resources/xlf/ExtensionResources.zh-Hans.xlf
M	src/Platform/Microsoft.Testing.Extensions.PackagedApp/Resources/xlf/ExtensionResources.zh-Hant.xlf
M	test/IntegrationTests/MSTest.Acceptance.IntegrationTests/PackagedAppIntegrationTests.cs
M	test/IntegrationTests/MSTest.Acceptance.IntegrationTests/PackagedAppNativeDotnetTestTests.cs
Falling back to patching base and 3-way merge...
Auto-merging docs/winui-testing.md
Auto-merging src/Platform/Microsoft.Testing.Extensions.PackagedApp.Controller/Program.cs
Auto-merging src/Platform/Microsoft.Testing.Extensions.PackagedApp.MSBuild/PACKAGE.md
Auto-merging src/Platform/Microsoft.Testing.Extensions.PackagedApp.MSBuild/buildTransitive/Microsoft.Testing.Extensions.PackagedApp.MSBuild.targets
Auto-merging src/Platform/Microsoft.Testing.Extensions.PackagedApp/InternalAPI/InternalAPI.Unshipped.txt
CONFLICT (content): Merge conflict in src/Platform/Microsoft.Testing.Extensions.PackagedApp/InternalAPI/InternalAPI.Unshipped.txt
Auto-merging src/Platform/Microsoft.Testing.Extensions.PackagedApp/Resources/ExtensionResources.resx
Auto-merging src/Platform/Microsoft.Testing.Extensions.PackagedApp/Resources/xlf/ExtensionResources.cs.xlf
Auto-merging src/Platform/Microsoft.Testing.Extensions.PackagedApp/Resources/xlf/ExtensionResources.de.xlf
Auto-merging src/Platform/Microsoft.Testing.Extensions.PackagedApp/Resources/xlf/ExtensionResources.es.xlf
Auto-merging src/Platform/Microsoft.Testing.Extensions.PackagedApp/Resources/xlf/ExtensionResources.fr.xlf
Auto-merging src/Platform/Microsoft.Testing.Extensions.PackagedApp/Resources/xlf/ExtensionResources.it.xlf
Auto-merging src/Platform/Microsoft.Testing.Extensions.PackagedApp/Resources/xlf/ExtensionResources.ja.xlf
Auto-merging src/Platform/Microsoft.Testing.Extensions.PackagedApp/Resources/xlf/ExtensionResources.ko.xlf
Auto-merging src/Platform/Microsoft.Testing.Extensions.PackagedApp/Resources/xlf/ExtensionResources.pl.xlf
Auto-merging src/Platform/Microsoft.Testing.Extensions.PackagedApp/Resources/xlf/ExtensionResources.pt-BR.xlf
Auto-merging src/Platform/Microsoft.Testing.Extensions.PackagedApp/Resources/xlf/ExtensionResources.ru.xlf
Auto-merging src/Platform/Microsoft.Testing.Extensions.PackagedApp/Resources/xlf/ExtensionResources.tr.xlf
Auto-merging src/Platform/Microsoft.Testing.Extensions.PackagedApp/Resources/xlf/ExtensionResources.zh-Hans.xlf
Auto-merging src/Platform/Microsoft.Testing.Extensions.PackagedApp/Resources/xlf/ExtensionResources.zh-Hant.xlf
Auto-merging test/IntegrationTests/MSTest.Acceptance.IntegrationTests/PackagedAppIntegrationTests.cs
CONFLICT (content): Merge conflict in test/IntegrationTests/MSTest.Acceptance.IntegrationTests/PackagedAppIntegrationTests.cs
Auto-merging test/IntegrationTests/MSTest.Acceptance.IntegrationTests/PackagedAppNativeDotnetTestTests.cs
CONFLICT (content): Merge conflict in test/IntegrationTests/MSTest.Acceptance.IntegrationTests/PackagedAppNativeDotnetTestTests.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 Forward MSTest filters through the packaged-app sidecar
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

github-actions Bot commented Oct 8, 2026

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: Forward MSTest filters through the packaged-app sidecar
Applying: Exercise packaged filter regressions in capable CI and real samples
Using index info to reconstruct a base tree...
M	eng/pipelines/steps/test-windows-app-model.yml
M	test/IntegrationTests/MSTest.Acceptance.IntegrationTests/PackagedAppNativeDotnetTestTests.cs
Falling back to patching base and 3-way merge...
Auto-merging eng/pipelines/steps/test-windows-app-model.yml
CONFLICT (content): Merge conflict in eng/pipelines/steps/test-windows-app-model.yml
Auto-merging test/IntegrationTests/MSTest.Acceptance.IntegrationTests/PackagedAppNativeDotnetTestTests.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 0003 Exercise packaged filter regressions in capable CI and real samples
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

github-actions Bot commented Oct 8, 2026

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: Exercise packaged filter regressions in capable CI and real samples
Applying: Add observable all-extension packaged WinUI sample
Applying: Retain packaged-native layouts until cleanup is verified
Using index info to reconstruct a base tree...
M	test/IntegrationTests/MSTest.Acceptance.IntegrationTests/PackagedAppNativeDotnetTestTests.cs
Falling back to patching base and 3-way merge...
Auto-merging test/IntegrationTests/MSTest.Acceptance.IntegrationTests/PackagedAppNativeDotnetTestTests.cs
Applying: Match native informational switches case-insensitively
Using index info to reconstruct a base tree...
M	src/Platform/Microsoft.Testing.Extensions.PackagedApp/PackagedAppControllerArguments.cs
M	test/UnitTests/Microsoft.Testing.Extensions.UnitTests/PackagedAppControllerArgumentsTests.cs
Falling back to patching base and 3-way merge...
Auto-merging src/Platform/Microsoft.Testing.Extensions.PackagedApp/PackagedAppControllerArguments.cs
CONFLICT (content): Merge conflict in src/Platform/Microsoft.Testing.Extensions.PackagedApp/PackagedAppControllerArguments.cs
Auto-merging test/UnitTests/Microsoft.Testing.Extensions.UnitTests/PackagedAppControllerArgumentsTests.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 0006 Match native informational switches case-insensitively
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

github-actions Bot commented Oct 8, 2026

Copy link
Copy Markdown
Contributor

Final test-triage resolution — Azure Pipelines build 1628162

Final (full) evidence confirms the regression already flagged as preliminary: the "Build Windows application-model acceptance" leg failed with 76 test failures/retries, all in MSTest.Acceptance.IntegrationTests_net11.0 (PackagedAppNativeDotnetTestTests), all System.TimeoutException: Command did not exit within 00:05:00: "dotnet.exe" build|test ... thrown from AcceptanceTestBase.RunWindowsApplicationModelCommandAsync. No other build leg or test project shows a failure; this is isolated to the Windows application-model acceptance job.

Affected tests (representative, same signature across all):

  • NativeDotnetTest_ActivatesIdentityRequiredHostAndReturnsItsResults (multiple TFM/flag combinations, all 5 retry attempts)
  • NativeDotnetTest_HelpAndDiscoveryDescribeActivatedHost, NativeDotnetTest_DiscoveryCannotFallbackWithDisabledOrAppContainerLauncher, NativeDotnetTest_DisablingRoutingReproducesIdentityRequiredStartupFailure
  • DotnetRun_HelpAndDiscoveryDescribeActivatedHost, DotnetRun_InformationalZeroExitWithoutHandshakeIsFailure, DotnetRun_PreservesLaunchProfileArgumentPrecedence, DotnetRun_AlsoActivatesIdentityRequiredHost
  • FrameworkFilter_ActivatesSelectedHostAndPreservesSelectionAndFailures (18 of the parameterized cases failed; retry attempts 1–18 all failed)

Historical correlation (confidence: high): history.json (complete, not flagged incomplete) shows the same signature in the two most recent main builds (1628049 @ 8cf7566, 1627931 @ cac4b5c), both on commits that post-date "Fix native dotnet test routing for packaged applications" (#11804, merged into main). All 8 prior main builds further back succeeded with zero failures in this area. This is a durable regression on main, not a one-off tied to this PR — the current PR branch inherits the broken base, and the failures are exercising the same RunWindowsApplicationModelCommandAsync → dotnet.exe build/test timeout path regardless of PR content.

Not evidence of flakiness: every retry attempt (up to 18 attempts for FrameworkFilter_...) failed with an identical timeout — no fail-then-pass recovery recorded, so this is a stable defect, not transient flakiness.

No existing open issue was found matching this signature after searching for PackagedAppNativeDotnetTestTests, TimeoutException, and related terms. Filing a tracking issue.

🤖 Automated content by GitHub Copilot. Generated by the Pipeline Test Triage workflow. · copilot · auto · 181.2 AIC · ⌖ 8.43 AIC · ⊞ 9.7K

Amaury Levé (Evangelink) added a commit that referenced this pull request Oct 8, 2026
…in #11805 (backport to rel/4.5) (#11837)

Co-authored-by: Sergio Pedri <sergio0694@live.com>
Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Co-authored-by: Amaury Levé <amauryleve@microsoft.com>
Copilot-Session: b7b5bff4-a965-47d2-9b1b-03e3295c730c
@Evangelink
Amaury Levé (Evangelink) merged commit 04dc178 into microsoft:main Oct 8, 2026
38 of 40 checks passed
@github-actions github-actions Bot removed the state/approved Proposal approved; ready for implementation. label Oct 8, 2026
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