Repository navigation
[Windows][net11] Release MSIX dependency locks during Helix deployment - #39498
Conversation
Let Add-AppxPackage shut down processes using the package or its dependencies on disposable Helix workers. Preserve the x64 dependency selection and fail-fast deployment diagnostics. Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com> Copilot-Session: 13123418-949d-4066-9355-01dcfbd7f41a
|
🚀 Dogfood this PR with:
curl -fsSL https://raw.githubusercontent.com/dotnet/maui/main/eng/scripts/get-maui-pr.sh | bash -s -- 39498Or
iex "& { $(irm https://raw.githubusercontent.com/dotnet/maui/main/eng/scripts/get-maui-pr.ps1) } 39498" |
|
Azure Pipelines: Successfully started running 1 pipeline(s). There may be pipelines that require an authorized user to comment /azp run to run. |
There was a problem hiding this comment.
🔵 Needs a closer look
No code issues were identified, but current required-check status and the reported Windows validation still need independent confirmation.
No open issues 🎉
What changed in this PR
Addresses Windows packaged device-test deployment failures caused by locked MSIX dependencies on disposable Helix workers.
Changes:
- Enables
ForceApplicationShutdownon the existing package installation. - Documents dependency-lock handling and keeps local developer deployment unchanged.
| File | Description |
|---|---|
| eng/devices/run-windows-devicetests.cmd | Enables shutdown of processes associated with the package or its dependencies. |
| .github/docs/maui-ci-facts.md | Documents the deployment flag and its Helix-only scope. |
Review effort: Balanced
|
Checked the actual Helix correlation payload as well as the build SHA: all ten Windows work items reference the same |
|
@dalexsoto stamp |
Port the runner shutdown flag and CI facts from #39498 without importing GA history. Keep dependency-process shutdown limited to disposable Helix workers. Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com> Copilot-Session: 7c8b0ad3-c2a6-4fef-bd2a-0a06d36b7505 Cherry-picked-from: 7673773 Copilot-Session: c33a22b9-b10e-4231-9b6e-2cf2ef8bc415
Port the runner shutdown flag and CI facts from #39498 without importing GA history. Keep dependency-process shutdown limited to disposable Helix workers. Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com> Copilot-Session: 7c8b0ad3-c2a6-4fef-bd2a-0a06d36b7505 Cherry-picked-from: 7673773 Copilot-Session: c33a22b9-b10e-4231-9b6e-2cf2ef8bc415
Port only the existing merged #39498/b49e748652a5cc08317de2a3d8f79953a6dcd151 behavior and direct canonical CI documentation, matching verified candidate4cc61bde4020b3001c149d0a0df48e3eedcb7d37 exactly. The runner preimage matched byte-for-byte; retain x64 dependency selection, fail-fast deployment logs and local developer behavior. This is the existing Helix-only Add-AppxPackage ForceApplicationShutdown option, not broad process killing or a test-assertion change. Both final blobs match the verified GA port; all11 embedded PowerShell commands parse with zero errors and whitespace checks pass. Historical Windows1642005 evidence is supporting only; no local/current-head native deployment pass or locked-package control is claimed. Source-Commit: b49e748 Source-Commit: 4cc61bd Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com> Copilot-Session: 87b27872-6f30-4208-af18-f1e6de6ff66c
<!-- Please let the below note in for people that find this PR --> > [!NOTE] > Are you waiting for the changes in this PR to be merged? > It would be very helpful if you could [test the resulting artifacts](https://github.com/dotnet/maui/wiki/Testing-PR-Builds) from this PR and let us know in a comment if this change resolves your issue. Thank you! ### Description of Change Backports the test-specific fixes from `release/11.0.1xx` that are not already present on `main`: - #39498 — force shutdown of dependency owners during disposable Helix MSIX deployment. - #39607 — isolate Resizetizer SVG test outputs using `BaseTest` cleanup (test-only hunk; no dependency updates). - #39784 — stabilize HybridWebView GC fixture lifetimes and WebView2 iframe readiness observation. Source patches were checked against open and recently merged PRs. Existing ports, release-only snapshot baselines, and dependency/version updates were intentionally excluded. ### Validation - `.dotnet/dotnet test src/SingleProject/Resizetizer/test/UnitTests/Resizetizer.UnitTests.csproj -c Debug -p:BuildTaskOnlyBuild=true -p:CI=true --no-restore --filter 'FullyQualifiedName~SkiaSharpSvgToolsTests' --verbosity minimal` — **29 passed, 0 failed**. - The same Release command — **29 passed, 0 failed**. - `.dotnet/dotnet build src/Controls/tests/DeviceTests/Controls.DeviceTests.csproj -f net11.0-android -r android-arm64 -c Debug -p:IncludeIosTargetFrameworks=false -p:IncludeMacCatalystTargetFrameworks=false -p:IncludeWindowsTargetFrameworks=false -p:IncludeAndroidTargetFrameworks=true -p:TreatWarningsAsErrors=false -v:minimal` — **passed** with two existing `MAUI1001` warnings. - Embedded packaged-installation PowerShell parsed with zero syntax errors. - `git diff --check` — **passed**. - Native Windows execution was not run locally; the source PRs retain their Windows/Helix qualification evidence. ### Issues Fixed Backports the validated test fixes from #39498, #39607, and #39784 to `main`. ---------
Note
Are you waiting for the changes in this PR to be merged?
It would be very helpful if you could test the resulting artifacts from this PR and let us know in a comment if this change resolves your issue. Thank you!
Description of Change
Targets
release/11.0.1xxexplicitly for .NET 11 GA.The Windows packaged-device-test runner installs the test MSIX together with its x64 dependencies. In GA device build 1641000, all five packaged suites failed before tests started with
0x80073D02:MicrosoftWindows.Client.WebExperiencewas using the shared Windows App Runtime dependency. No result XML was produced for those packaged suites; successful unpackaged work items do not validate this route.Set
ForceApplicationShutdown = $trueon the existingAdd-AppxPackageoperation. Microsoft's contract covers processes associated with the package or its dependencies, unlikeForceTargetApplicationShutdown, which only covers the target package. This lets Windows deployment release the relevant dependency locks without hard-coding a process name or introducing broad process killing, sleeps, retries, or deferred registration.This is limited to disposable Helix workers. The x64 dependency selection, certificate handling, single app/dependency installation operation, cleanup, terminating errors, nonzero exit, and Appx diagnostics are unchanged. Local developer deployment in
windows.cakeis deliberately untouched. The CI facts document records this distinction.Existing #38827 already supplies the dependency-architecture and diagnostic fixes and is retained; #35670 addresses the separate Cake route. Searches of open and recently merged PRs for the issue, HRESULT, runner, and shutdown mechanism found no duplicate remediation.
Validation:
git diff --check— passed.System.Management.Automation.Language.Parser.ParseInput— zero syntax errors. No pipeline/configuration tests added.maui-pr-devicetests(314), succeeded against exact merge SHA3dd42fdc543581d054e4c1506028f98a5eab6f6f(headb49e748652a5cc08317de2a3d8f79953a6dcd151, GA basee818662f833cb7a9ecd7c3f7fc95f2a72cfb0359). Both Windows stages succeeded; seven non-Windows stages were intentionally skipped.Package installed, application launch, generated result XML, and exit 0. No0x80073D02or WebExperience lock message appears in the ten work-item consoles.All 112 XML files were read: ten aggregates and 102 source/category files. Aggregate test multisets reconcile exactly with source/category records; there are no failed tests, assembly/collection errors, unreadable files, or unknown results. Both Controls configurations have all 47 expected category XML files; FlexLayout explicitly declares zero tests rather than being absent. The five unpackaged suites separately passed the same counts (3,266 passed / 0 failed / 160 skipped), without being used as a proxy for packaged coverage.
Evidence limit: this is one successful scoped run on different workers, empirically demonstrating packaged deployment and execution with the change. It does not establish that the original WebExperience dependency lock was present on these workers, that Windows terminated that exact process, or that the flag was necessary in this particular run. No deliberately forced-lock experiment or whole-GA readiness claim is made. No Windows runtime or desktop automation ran locally.
Issues Fixed
Fixes #39464