Skip to content

[Windows][net11] Release MSIX dependency locks during Helix deployment - #39498

Merged
kubaflo merged 1 commit into
release/11.0.1xxfrom
kubaflo-ga-windows-deployment-fix
Oct 20, 2026
Merged

kubaflo merged 1 commit into
release/11.0.1xxfrom
kubaflo-ga-windows-deployment-fix

Conversation

@kubaflo

@kubaflo kubaflo commented Oct 20, 2026 •

Copy link
Copy Markdown
Contributor

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.1xx explicitly 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.WebExperience was 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 = $true on the existing Add-AppxPackage operation. Microsoft's contract covers processes associated with the package or its dependencies, unlike ForceTargetApplicationShutdown, 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.cake is 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.
  • Parsed the actual embedded packaged-installation PowerShell block with System.Management.Automation.Language.Parser.ParseInput — zero syntax errors. No pipeline/configuration tests added.
  • Scoped Windows validation, build 1642005, pipeline maui-pr-devicetests (314), succeeded against exact merge SHA 3dd42fdc543581d054e4c1506028f98a5eab6f6f (head b49e748652a5cc08317de2a3d8f79953a6dcd151, GA base e818662f833cb7a9ecd7c3f7fc95f2a72cfb0359). Both Windows stages succeeded; seven non-Windows stages were intentionally skipped.
  • Submission log 33 correlates Helix job aa365ac9. All ten actual Windows work items finished with exit 0; the administrative queueing item is excluded from test counts.
  • All five previously blocked packaged consoles record Package installed, application launch, generated result XML, and exit 0. No 0x80073D02 or WebExperience lock message appears in the ten work-item consoles.
Packaged suite Passed Failed Skipped
Controls 862 0 31
Core 2,028 0 111
Essentials 304 0 14
Graphics 33 0 0
BlazorWebView 39 0 4
Total 3,266 0 160

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

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
@kubaflo
kubaflo temporarily deployed to copilot-pat-pool October 20, 2026 11:35 — with GitHub Actions Inactive
@github-actions

Copy link
Copy Markdown
Contributor

🚀 Dogfood this PR with:

⚠️ WARNING: Do not do this without first carefully reviewing the code of this PR to satisfy yourself it is safe.

curl -fsSL https://raw.githubusercontent.com/dotnet/maui/main/eng/scripts/get-maui-pr.sh | bash -s -- 39498

Or

  • Run remotely in PowerShell:
iex "& { $(irm https://raw.githubusercontent.com/dotnet/maui/main/eng/scripts/get-maui-pr.ps1) } 39498"

@kubaflo kubaflo added this to the .NET 11.0 GA milestone Oct 20, 2026
@kubaflo
kubaflo temporarily deployed to copilot-pat-pool October 20, 2026 11:35 — with GitHub Actions Inactive
@azure-pipelines

Copy link
Copy Markdown
Azure Pipelines:
Successfully started running 1 pipeline(s).
There may be pipelines that require an authorized user to comment /azp run to run.

@kubaflo
kubaflo temporarily deployed to copilot-pat-pool October 20, 2026 11:36 — with GitHub Actions Inactive
@kubaflo
kubaflo temporarily deployed to copilot-pat-pool October 20, 2026 11:38 — with GitHub Actions Inactive
@kubaflo
kubaflo temporarily deployed to copilot-pat-pool October 20, 2026 11:40 — with GitHub Actions Inactive
@kubaflo
kubaflo temporarily deployed to copilot-pat-pool October 20, 2026 11:40 — with GitHub Actions Inactive
@github-actions github-actions Bot added the s/agent-review-in-progress AI review is currently running for this PR label Oct 20, 2026
@kubaflo
kubaflo marked this pull request as ready for review October 20, 2026 13:16
Copilot AI balanced review requested due to automatic review settings October 20, 2026 13:16

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

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 ForceApplicationShutdown on 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

@kubaflo

kubaflo commented Oct 20, 2026

Copy link
Copy Markdown
Contributor Author

Checked the actual Helix correlation payload as well as the build SHA: all ten Windows work items reference the same eng archive, and its devices/run-windows-devicetests.cmd contains ForceApplicationShutdown = $true in the parameters passed to Add-AppxPackage. The extracted runner matches PR head b49e748652a5cc08317de2a3d8f79953a6dcd151 after CRLF/LF normalization (payload SHA-256 5377c9beae0c2d1bacbd33e73b2a48b788ae5211d851682dd53ccf384321077f). The Controls packaged console invokes that correlation-payload runner. This confirms the passing suites exercised the patched script; the different-worker/forced-lock limitation in the description still applies.

@kubaflo

kubaflo commented Oct 20, 2026

Copy link
Copy Markdown
Contributor Author

@dalexsoto stamp

@dalexsoto dalexsoto 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.

Stamping as requested by @kubaflo; no code review performed.

@kubaflo
kubaflo merged commit 293e5cc into release/11.0.1xx Oct 20, 2026
44 checks passed
@kubaflo
kubaflo deleted the kubaflo-ga-windows-deployment-fix branch October 20, 2026 17:52
kubaflo added a commit that referenced this pull request Oct 22, 2026
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
github-actions Bot pushed a commit that referenced this pull request Oct 23, 2026
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
kubaflo added a commit that referenced this pull request Oct 27, 2026
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
kubaflo added a commit that referenced this pull request Nov 3, 2026
<!-- 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`.

---------
@github-actions github-actions Bot locked and limited conversation to collaborators Nov 20, 2026

This branch was previously deployed

1 inactive deployment
copilot-pat-pool — b49e7486 Deployed Oct 20, 2026 by kubaflo via conclusion #2414
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

s/agent-review-in-progress AI review is currently running for this PR

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants