Skip to content

[RC2] Fix CI dependency and provisioning blockers - #38788

Merged
kubaflo merged 7 commits into
release/11.0.1xx-rc2from
kubaflo-rc2-ci-fix
Sep 23, 2026
Merged

kubaflo merged 7 commits into
release/11.0.1xx-rc2from
kubaflo-rc2-ci-fix

Conversation

@kubaflo

@kubaflo kubaflo commented Sep 22, 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

Repair maui-pr on release/11.0.1xx-rc2 without downgrading its Apple 27.0 or Android 37.0 platform SDKs.

Failure Fix
Apple manifests reference unavailable .NET 10 compatibility packs 26.5.10322 Add the verified public feed from BAR build 332005 outside dependency-flow-managed sources.
SVG restore downgrades and Skia 4 compilation errors Restore coordinated SkiaSharp/HarfBuzz/SVG/ExCSS/System.Memory/System.Buffers pins used by net11.0 and #38538.
Aces agents lack Xcode 27 Select MAUI agents advertising Xcode 27 RC for public macOS jobs; fail explicitly if the required Xcode is absent.
Universal iOS 27 simulator download is unavailable Select native ARM64 on Apple Silicon; retain universal on Intel. Keep downloads version-pinned and fail unavailable downloads before destructive simulator recovery.
Apple library TFMs still target 26.5 Align current Apple TFMs and SDK defaults to 27.0; preserve previous-.NET TFMs.
Xcode 27 rejects native iOS 12.x / mapped macOS 10.15 minimums Set native and managed iOS minimums to 15.0, matching app templates. Native iOS 15.0 maps to macOS 12.0 for Catalyst.
Apple binding generator needs a newer .NET host runtime Align bootstrap, workload-provisioning, and SDK provenance pins at 11.0.100-rc.2.26470.103, from green net11 build 1607497. Its runtime satisfies Apple's 26465.108 minimum; other product/Arcade pins stay unchanged.
Helix monitor selects unauthorized NetCore-Svc-Public Reuse the submission pool and preserve public/internal Linux image demands.
Raster image assertions pass, but Windows test cleanup encounters a sharing violation Reuse BaseTest's existing RC1-era bounded, logged cleanup retries from #38124. Put raster outputs in its isolated directory and dispose raster tools deterministically.

Compared RC1 at 484132f9e5: retain its native-runtime download capability and established test-cleanup handling, without copying unpinned fallback behavior or downgrading RC2 platform inputs. Its latest 15 branch builds were not green, so its entire dependency set is not treated as a known-good replacement.

Add focused regression checks and CI troubleshooting guidance. No test skips, assertion weakening, warning suppressions, or pool-permission changes. Cleanup still fails after retry exhaustion. Rebased onto RC2 2fe346448b.

Compatibility: The declared iOS minimum increases from 13.0 to 15.0 to match the native framework required by Xcode 27. Previous-.NET TFM identifiers remain unchanged.

Validation

  • Full latest-head maui-pr succeeded: build 1608203, completed 2026-09-23 at 08:17 UTC for source head 7c8e9a5d710c2552ed3901caed84bfd87cfcb47f. All 31 jobs and all four stages succeeded; the complete 1,233-record timeline contains no failed, canceled, or abandoned records.
  • All 48 Helix work items passed. Actual failed-result queries across all 26 published test runs returned no failures. The previously failing raster test is explicitly Pass in both Windows Debug and Release uploaded XML.
  • Android integration: all 11 tests passed, with zero failures or skips, including NativeAOT, net10/net11, MAUI/Blazor, Debug/Release, and full-trimming scenarios. The long overall build duration was dominated by waiting for capacity in MAUI-DNCENG; the Android job itself took 25m35s. No pool or coverage bypass was used.
  • Reproduced Resizetizer restore downgrades and seven Graphics.Skia compilation errors before fixing dependencies; Graphics.Skia builds afterward.
  • Graphics.Tests: 375 passed. Full Resizetizer suite after the cleanup change on the selected RC2 SDK: 782 passed, 2 existing platform skips. All 23 raster tests pass. Resizetizer packaging contains the required SVG/Skia/HarfBuzz assemblies.
  • Pipeline/Review-PR Pester checks: 103 passed, covering executed Bash download scenarios, Apple SDK/TFM consistency, deployment minimums, and SDK pin alignment.
  • Native Release archives pass locally for iOS device, simulator, and Catalyst. Effective Catalyst settings confirm the macOS 12.0 mapping. CI subsequently built these using Xcode 27.
  • Confirmed the exact Apple binding-generator runtime requirement from its package and successfully launched that actual tool with the newly selected SDK runtime.
  • MSBuild evaluation confirms net11 Apple 27.0 and Android 37.0 TFMs, with unchanged net10 compatibility TFMs.
  • Original pipeline regressions fail against the release baseline and pass with the fixes. Compatibility packages, XML/YAML parsing, Xcode project lint, Bash syntax, scoped formatting, and whitespace checks were verified.

CI progression

Original failures: 1607595, 1607490.

  • 1607851: removed attempted legacy Provisionator enablement; that task is unavailable publicly.
  • 1607874: Xcode selected; exposed universal-runtime download issue.
  • 1607921: runtime/workloads installed; exposed TFM mismatch.
  • 1608019: exposed native deployment minimums.
  • 1608031: native compilation passed; exposed binding-generator host runtime.
  • 1608055: all four framework build jobs, both pack jobs, and completed integration jobs passed. One Windows Debug Resizetizer cleanup failed; fixed in 7c8e9a5d71. Android had not started before the next push superseded this run.
  • 1608203: succeeded on the final head. All build, packaging, unit-test, and integration-test jobs passed, including Android. Build Analysis and Build Insights also passed.

Copilot AI lite review requested due to automatic review settings September 22, 2026 21:53
@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 -- 38788

Or

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

@azure-pipelines

Copy link
Copy Markdown
Azure Pipelines:
There may be pipelines that require an authorized user to comment /azp run to run.

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.

Copilot review overview

🟡 Changes recommended

Unresolved provisioning, agent-selection, and regression-test integration issues remain.

Get a fresh assessment by requesting another Copilot review.

Review effort: Lite
Findings: 1 Medium severity

Open (1)
What changed in this PR

This pull request addresses RC2 dependency restore, Apple provisioning, macOS agent selection, and Helix monitoring blockers.

Changes:

  • Adds the Apple compatibility feed and updates coordinated graphics dependencies.
  • Adjusts CI provisioning, pool selection, monitoring, regression checks, and documentation.
File Description
NuGet.config Adds the Apple compatibility package source.
eng/​Versions.props Updates coordinated Skia, SVG, memory, and buffer dependencies.
eng/​pipelines/​ci.yml Updates build and pack provisioning and pool configuration.
eng/​pipelines/​ci.Tests.ps1 Adds pipeline regression assertions.
eng/​pipelines/​arcade/​stage-helix-tests.yml Reuses the selected Helix pool for monitoring.
eng/​pipelines/​arcade/​setup-test-env.yml Adjusts integration-test provisioning.
.github/​docs/​maui-ci-facts.md Documents the investigated CI blockers.

Comment on lines +1 to +3
#Requires -Modules Pester

Describe 'ci.yml provisioning' {
Copilot AI review requested due to automatic review settings September 22, 2026 22:04

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.

Copilot review overview

🔵 Needs a closer look

The new pipeline regression suite is not executed by the repository’s Pester workflow.

Review effort: Lite
Findings: 1 Medium severity

Open (1)

kubaflo and others added 3 commits September 23, 2026 00:18
Restore the Skia dependency tuple required by merged Graphics code, add Apple manifest compatibility packs, provision Xcode before macOS builds and tests, and reuse the Helix submission pool for monitoring.

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
…e retries

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>

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.

Copilot review overview

🟡 Changes recommended

Xcode version enforcement and simulator recovery handling have unresolved issues, and the new regression suite is not included in the standard Pester gate.

Get a fresh assessment by requesting another Copilot review.

Review effort: Lite
Findings: 1 High severity · 1 Medium severity

Open (2)

Comment on lines +172 to +175
echo "##vso[task.logissue type=error]Required Xcode ${ORIGINAL_VERSION} is not installed on this agent. Update the macOS agent image before building with the pinned Apple SDK."
echo "Tried: ${VERSIONS_TO_TRY[*]}"
echo "Falling back to latest available Xcode on this agent..."
# Find the latest Xcode by sorting version numbers
LATEST_XCODE=$(ls -1d /Applications/Xcode_*.app 2>/dev/null | sed 's|/Applications/Xcode_||;s|\.app||' | sort -t. -k1,1n -k2,2n -k3,3n | tail -1)
if [[ -n "$LATEST_XCODE" ]]; then
XCODE_VERSION="$LATEST_XCODE"
XCODE_PATH="/Applications/Xcode_${LATEST_XCODE}.app"
echo "Using latest available Xcode: ${XCODE_VERSION} at ${XCODE_PATH}"
else
echo "ERROR: No Xcode installations found in /Applications"
exit 1
fi
echo "Installed Xcode versions: ${XCODE_LIST[*]}"
exit 1
Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Copilot AI review requested due to automatic review settings September 22, 2026 22:30

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.

Copilot review overview

🔵 Needs a closer look

Unresolved findings affect automated test coverage, assertion strength, and guarded simulator recovery downloads.

Review effort: Lite
Findings: 1 High severity · 1 Medium severity

Open (2)

Raise the native iOS minimum to 15.0, which maps to macOS 12.0 for Catalyst, and align managed iOS metadata. Cover the deployment contract with a pipeline regression test.

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Copilot AI review requested due to automatic review settings September 22, 2026 22:44

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.

Copilot review overview

🔵 Needs a closer look

One or more issues must be addressed before approval.

Review effort: Lite
Findings: 1 High severity · 1 Medium severity

Open (2)

Align bootstrap, workload provisioning, and SDK provenance on 11.0.100-rc.2.26470.103 from the verified net11 build. Its runtime starts the pinned Apple 27 binding generator, which requires 26465.108 or newer. Preserve Apple, Android, and other product package pins.

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Copilot AI review requested due to automatic review settings September 22, 2026 22:59

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.

Copilot review overview

🔵 Needs a closer look

Moderate provisioning and regression-test gating issues remain unresolved.

Review effort: Lite
Findings: 1 High severity · 1 Medium severity

Open (2)

Keep raster outputs in BaseTest's isolated directory so the existing RC1 cleanup retries cover transient Windows image-file locks. Dispose raster tools deterministically while preserving every image assertion and final cleanup failures.

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Copilot AI review requested due to automatic review settings September 23, 2026 01:32

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.

Copilot review overview

🔵 Needs a closer look

The broad CI and platform changes require human review, and full latest-head validation remains pending.

Review effort: Lite
Findings: 1 High severity · 1 Medium severity

Open (2)

@kubaflo

kubaflo commented Sep 23, 2026

Copy link
Copy Markdown
Contributor Author

@dalexsoto stamp

@kubaflo
kubaflo merged commit c76b524 into release/11.0.1xx-rc2 Sep 23, 2026
39 checks passed
@kubaflo
kubaflo deleted the kubaflo-rc2-ci-fix branch September 23, 2026 14:30
@github-actions github-actions Bot added this to the .NET 11.0-rc2 milestone Sep 23, 2026
kubaflo added a commit that referenced this pull request Sep 23, 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

Forward-port the applicable fixes from #38788 (source head
`7c8e9a5d710c2552ed3901caed84bfd87cfcb47f`) to `net11.0`, based on
`9c0b29fed261f87ea77b84268768ac9e3d453609`. This is a separate, adapted
port, not a merge of the RC2 branch. The original RC2 PR remains open
and unchanged.

### Ported

- Fail explicitly when the required Xcode is absent instead of silently
choosing an unrelated installed version.
- Request ARM64 simulator runtimes on Apple Silicon and retain universal
downloads on Intel. Keep initial and recovery downloads pinned to the
selected Xcode version.
- Detect unavailable runtime downloads before destructive CoreSimulator
recovery, even when Xcode returns exit code 70. Preserve recovery for
actual simulator connection failures.
- Run the Helix monitor in the authorized submission pool while
preserving its public/internal Linux image demands.
- Reuse `BaseTest`'s existing bounded, logged cleanup retries for raster
fixtures and dispose every raster tool deterministically. Preserve all
23 test cases and their assertions; exhausted cleanup retries still
fail.
- Port CI troubleshooting documentation and regression coverage. Adapt
SDK/TFM alignment checks to the actual selected versions and exercise
both 26.5 and 27.0 simulator-download scenarios.
- Wire `eng/pipelines/ci.Tests.ps1` into the existing GitHub Pester
gate, including path triggers for its coupled inputs. Preserve read-only
`pull_request` execution and disabled checkout credential persistence.
This wiring was missing from the source PR.

### Target-specific adaptations and omissions

| Source change | net11.0 decision |
|---|---|
| Coordinated SkiaSharp/HarfBuzz/SVG/ExCSS/System.Memory/System.Buffers
pins | Already present unchanged, including SkiaSharp 4.150.1,
HarfBuzzSharp 14.2.1.1 and Svg.Skia 5.1.1. |
| SDK bootstrap/provisioning/provenance update | Already aligned at
`11.0.100-rc.2.26470.103`; preserve these and the target's newer
product/Arcade dependencies. Retain a version-independent alignment
assertion rather than the Apple-27-only minimum-runtime assertion. |
| Apple 27 TFMs and raised native/managed iOS minimums | Not applicable:
this target uses Apple `26.5.12253-net11-rc.2`. Preserve 26.5 TFMs,
existing deployment minimums, and previous-.NET compatibility targets.
Omit the Xcode-27-only deployment-minimum test. |
| RC2 .NET 10 Apple compatibility feed | Not copied: net11.0 uses
compatibility packs `26.5.10320`, not RC2's `26.5.10322`; preserve the
target's existing feeds. |
| Switch public macOS jobs to MAUI Xcode 27 RC agents | Not applicable:
retain Aces/Xcode 26.5. Baseline [build
1607497](https://dev.azure.com/dnceng-public/public/_build/results?buildId=1607497)
logs 14 and 577 confirm successful selection of
`/Applications/Xcode_26.5.app` for build and iOS integration jobs. Do
not transplant the RC2 pool assertion. |

No Provisionator enablement, SDK/TFM downgrades, test skips, weakened
assertions, warning suppression, pool-permission changes, or
shared-capacity changes.

## Validation on this forward port

- Pester **5.9.0**: **104 passed**, zero failed/skipped, across
`eng/pipelines/ci.Tests.ps1` and `.github/scripts/Review-PR.Tests.ps1`,
including after the workflow wiring update.
- The same tests against an isolated copy of the unchanged target
baseline produced **11 expected regression failures** and 93 passes; all
104 pass with this port.
- Resizetizer raster tests: **23 passed in Debug and 23 passed in
Release**, zero failures/skips, on macOS with locally installed SDK
`11.0.100-preview.6.26359.118`, targeting `net11.0`. These runs do not
substitute for Windows Helix validation or the pinned RC2 CI SDK.
- Both changed YAML templates parse; all 12 embedded Bash/script blocks
pass `bash -n`. Scoped C# whitespace formatting and `git diff --check`
pass.
- Pester workflow parsing verifies the new suite and all input path
triggers, with its read-only PR isolation intact.
- SDK/dependency/feed/TFM/native project files and `ci.yml` are
unchanged from the target baseline.

New-PR CI results are pending. The green RC2 source build is not claimed
as validation of this PR. Full Windows/macOS build, packaging, and
device/integration execution remain for this PR's CI.

---------

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
kubaflo added a commit that referenced this pull request Oct 9, 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!

<!--
!!!!!!! MAIN IS THE ONLY ACTIVE BRANCH. MAKE SURE THIS PR IS TARGETING
MAIN. !!!!!!!
-->

### Description of Change

<!-- Enter description of the fix in this section -->

Intentionally targets **net11.0**, based on
`8d04ca676fc51a8f940f65dfbec9a8085fa13615`, rather than main or RC2.
Ports the Apple-specific Xcode 27 adoption from `release/11.0.1xx-rc2`
without changing net11's SDK, runtime, Android, Extensions, or Arcade
pins.

- Pin all four .NET 11 Apple SDKs to **27.0.12211-net11-rc.2** from
macios commit `35d8bf5a42cd71edf4e2700b1e45f6c4b65f3fbe` (BAR 334217,
RC2 channel), and update current/default iOS, tvOS, Mac Catalyst and
macOS platform TFMs to 27.0.
- Align the .NET 10 Apple compatibility SDKs to **26.5.10322**, required
by all four selected .NET 11 workload manifests; update their
coherent-parent names and public feed. This is required manifest
alignment, not an unrelated .NET 10 upgrade.
- Raise managed and native iOS deployment minimums to **15.0**. Native
iOS 12 / Catalyst's mapped macOS 10.15 targets are rejected by Xcode 27.
The managed Catalyst minimum remains 17.0; templates already use iOS 15
/ Catalyst 17.
- Select **GoldenGate / Xcode 27** for public and internal Apple
framework, pack, integration, UI-app, device-app and official
compilation. Continue executing prebuilt iOS UI-test apps on **Tahoe /
Xcode 26.5**, and Catalyst UI tests on **macOS 14**.
- Remove the obsolete repository-wide Xcode 26.2/26.3 validation bypass
and unconditional `eng/Build.props` overrides. Normal builds now let the
workload validate Xcode; explicit test/review-runner overrides remain
available.
- Document build requirements and remaining image limitations in
`docs/DevelopmentTips.md`.

**Evidence and retained workarounds**

The RC2 adoption/CI changes are in #38787, #38788, #38853, #38855 and
#38892. #38806 deliberately omitted Apple 27 / minimum-version / pool
changes when forward-porting to net11; this supplies that missing Apple
configuration. Icon Composer changes from #38984 are already on net11
and are not duplicated.

- Keep the GoldenGate compilation fallback: standard Azure hosted macOS
26 currently provides only Xcode 26.0–26.6. The Xcode 27 preview pool is
not a proven standard Azure-hosted replacement; no paid pool is
introduced. [Azure image
availability](https://learn.microsoft.com/en-us/azure/devops/pipelines/agents/hosted?view=azure-devops),
[Xcode 27 image
discussion](actions/runner-images#14404 (comment)).
- Keep the Appium build/execution split: GoldenGate previously lacked
the required iOS 18.5 runtime / usable Simulator UI and failed Mac2
startup; corrected RC2 build 1611447 passed all 29 iOS jobs. Current RC2
UI failures occur during package restore and do not establish that
GoldenGate UI execution is fixed. macOS 14 retires November 2, 2026; its
replacement requires separate Mac2 validation.
- Keep simulator provisioning, architecture-specific downloads, bounded
recovery and explicit failure when required Xcode is missing. Do not
copy #38852's unmerged `skipXcode: true` shortcut.
- **Do not port** GoldenGate's prerelease selected-Xcode fast path: [RC2
build
1623906](https://dev.azure.com/dnceng-public/public/_build/results?buildId=1623906),
at RC2 HEAD `d32b79928709cf53b671336dabd0caef5a679fc2`, succeeded with
`/Applications/Xcode_27.app`, which the existing named fallback already
finds. This is source-configuration evidence, not validation of this PR.
- Do not copy later RC2 internal-SDK credentials, public-SDK fallbacks,
or internal feeds. They address different SDK/runtime pins. Retain
existing `TargetsCurrent`, local runner overrides and PowerShell
startup/recovery safeguards because Xcode 27 does not prove their
underlying issues resolved. The dedicated Copilot-review pipeline
retains its own older-branch overrides; it is not the standard net11
build lane.

**Validation**

- `.dotnet/dotnet build Microsoft.Maui.BuildTasks.slnf -c Release
-p:BuildTaskOnlyBuild=true -p:CI=true --verbosity quiet` — **passed**, 0
warnings / 0 errors, using the unchanged pinned SDK
`11.0.100-rtm.26480.113` in this worktree. This validates build
prerequisites, not Apple 27 app compilation.
- `DEVELOPER_DIR=/Applications/Xcode.app/Contents/Developer xcodebuild
-project
src/Core/AppleNative/PlatformInterop/MauiPlatformInterop.xcodeproj
-scheme MauiPlatformInterop -configuration Release -sdk iphonesimulator
-destination 'generic/platform=iOS Simulator' -derivedDataPath
artifacts/native-validation CODE_SIGNING_ALLOWED=NO build` — **passed**,
arm64 and x86_64 simulator framework compilation at iOS 15.0, using
installed **Xcode 26.6**, not Xcode 27. No simulator/app/test runner was
launched.
- `plutil -lint
src/Core/AppleNative/PlatformInterop/MauiPlatformInterop.xcodeproj/project.pbxproj`
and `git diff --check` — **passed**. Python `yaml.safe_load` / XML
parsing — **passed** for all changed pipeline and XML configuration
files. No pipeline tests were added.
- `.dotnet/dotnet msbuild Directory.Build.props -nologo
-getProperty:MauiPlatforms,MauiGraphicsPlatforms,IosTargetFrameworkVersionSdkDefault,MacCatalystTargetFrameworkVersionSdkDefault,ValidateXcodeVersion,TargetsCurrent`
— **passed**; current Apple TFMs resolve to 27.0 and the blanket
validation bypass is absent. Evaluating `eng/Versions.props` confirms
unchanged SDK/runtime/Android pins and all four Apple 27 pins.
- Downloaded and inspected all four exact Apple workload manifest
packages from the public dotnet11 feed — **passed**, confirming the .NET
10 compatibility SDK requirement is 26.5.10322.
- `dotnet format Microsoft.Maui.sln --no-restore --exclude Templates/src
--exclude-diagnostics CA1822` — attempted but **incomplete**: missing
restored references/workloads. Stopped it and removed its unrelated
generated formatting edits; no C# source changes are included.
- Initial unrestricted build-task attempts were blocked by missing
assets / Apple workloads. Repository bootstrap installed the exact
pinned SDK; full workload provisioning was stopped in favor of the
successful CI build-task-only command above.

Remote CI results for commit `e7a941cd121fff58bcd30892bbcf29e18882ac55`
(checked October 8, 2026):

- [maui-pr
1628491](https://dev.azure.com/dnceng-public/public/_build/results?buildId=1628491)
— **completed, failed overall**. Apple compilation, macOS pack and main
integration validation passed; the macOS build selected
`/Applications/Xcode_27.app`. The only failing main-pipeline task was
the Helix monitor: Windows Debug
`SkiaSharpSvgToolsTests.Resize.BasicNoScaleReturnsOriginalSize` failed
deleting a locked temporary file in `Resize.Dispose()`. This is a
**confirmed identical historical cleanup failure predating this PR**,
not evidence of an Xcode-adoption regression: September 29 [build
1616449](https://dev.azure.com/dnceng-public/public/_build/results?buildId=1616449),
the **net11.0-targeted #38984 merge build** (`refs/pull/38984/merge`,
not a direct `refs/heads/net11.0` baseline run), failed the same test in
Windows Release with the same `IOException` and `FileSystem.DeleteFile`
→ `Resize.Dispose()` line-25 stack; only the temporary filename differs.
See its actual [Helix
console](https://helixr1107v0xdeko0k025g8.blob.core.windows.net/dotnet-maui-refs-pull-38984-merge-c211216b883342c6ae/Microsoft.Maui.Resizetizer.UnitTests.dll/1/console.30a6023e.log?helixlogtype=result)
and [test-result
XML](https://helixr1107v0xdeko0k025g8.blob.core.windows.net/dotnet-maui-refs-pull-38984-merge-c211216b883342c6ae/Microsoft.Maui.Resizetizer.UnitTests.dll/1/testResults.xml?helixlogtype=result).
The fixture is byte-identical between exact base `8d04ca676f` and PR
head `e7a941cd12` (blob `a41ebe6e87b3809f952b51f98e594bf5faf2fe25`);
Skia/runtime pins and Windows execution pools are unchanged, and the
relevant configuration changes are Apple-specific. Together, this
supports **no causal link to Xcode adoption**. The latest exact-base
[net11.0 build
1628290](https://dev.azure.com/dnceng-public/public/_build/results?buildId=1628290)
passed; that does not negate the verified earlier occurrence. No cleanup
fix or rerun is included.
- [maui-pr-devicetests
1628492](https://dev.azure.com/dnceng-public/public/_build/results?buildId=1628492)
— **completed, succeeded**, including Mono/CoreCLR device-app
compilation. Cross-checked all nine Helix jobs: 71 terminal work items,
zero failing exits and no work items still running; this is a work-item
count, not a test-case count.
- [maui-pr-uitests
1628493](https://dev.azure.com/dnceng-public/public/_build/results?buildId=1628493)
— **completed, failed overall** at 21:42 UTC. UI-app compilation and the
complete **iOS CoreCLR UI stage passed**. The five failed/canceled
execution legs are MacCatalyst Layout, Navigation and Shell; Windows
Shell; and Android SafeAreaEdges. MacCatalyst Shell was canceled after
three hours during its retry, so its complete execution coverage remains
**unverified**, not passed.
- **Baseline-matched UI failures:** MacCatalyst `Issue59172RecoveryTest`
timeout matches [net11.0 build
1625634](https://dev.azure.com/dnceng-public/public/_build/results?buildId=1625634).
MacCatalyst `ValidateBackgroundColorDoesNotAffectInputTransparent`
timeout matches the exact-base [net11.0 build
1628291](https://dev.azure.com/dnceng-public/public/_build/results?buildId=1628291),
test run 45168562. MacCatalyst Shell
`SearchHandlerQueryIconUpdatesAtRuntime` (0.51% screenshot difference)
also matches that build, run 45168556;
`SearchHandlerClearPlaceholderIconUpdatesAtRuntime`, seen during the
interrupted retry, matches [net11.0 build
1626506](https://dev.azure.com/dnceng-public/public/_build/results?buildId=1626506),
run 45112430. Android
`SafeAreaNoWhiteSpaceAfterKeyboardDismissAndEdgeToggle` matches the same
assertion on [net11.0 build
1627873](https://dev.azure.com/dnceng-public/public/_build/results?buildId=1627873).
- **Unmatched UI failures:** MacCatalyst Shell
`SearchHandlerResetAllRestoresDefaultIcons` has a 0.52% screenshot
mismatch (published in run 45176448); it was not among failed results in
the five sampled net11.0 Shell runs. Windows
`VerifyShellSearch_TextTransformUppercase` has a 0.70% screenshot
mismatch; the corresponding Shell runs pass in all five sampled net11.0
UI builds. Neither is established as unrelated or PR-caused. The Shell
cancellation leaves additional coverage incomplete. No screenshot
baselines were updated to hide failures.
- [PowerShell Script Tests
37821050474](https://github.com/dotnet/maui/actions/runs/37821050474) —
**failed**: the unchanged `Review-Tests` contract expects an inline
GPT-5.6 model while the unchanged target-branch workflow imports
GPT-6.1. Both the assertion and its workflow subject are identical to
net11.0; no pipeline-test changes are included in this PR.

Xcode 27 is not installed locally; the Apple 27 compilation evidence
above is from remote CI. All three PR pipelines have finished, but
**full UI validation is not green**, MacCatalyst Shell coverage is
incomplete, and **official/internal signing remains pending**. The
unmatched failures need further investigation before claiming merge
readiness. These results do not justify removing the retained
execution-image safeguards. No XCTest/XCUITest or local UI automation
was run; global Xcode selection was not changed. The CI watch has been
stopped.

### Issues Fixed

<!-- Please make sure that there is a bug logged for the issue being
fixed. The bug should describe the problem and how to reproduce it. -->

No separately filed issue; requested .NET 11 adoption of the
already-established RC2 Xcode 27 configuration.

<!--
Are you targeting main? All PRs should target the main branch unless
otherwise noted.
-->

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
kubaflo added a commit that referenced this pull request Oct 22, 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!

<!--
!!!!!!! MAIN IS THE ONLY ACTIVE BRANCH. MAKE SURE THIS PR IS TARGETING
MAIN. !!!!!!!
-->

### Description of Change

<!-- Enter description of the fix in this section -->

Add setup-only recovery with **at most five total attempts per
operation**, without rerunning a test command or inferring setup failure
from missing results.

[UI-test build
1642459](https://dev.azure.com/dnceng-public/public/_build/results?buildId=1642459)
failed before executing tests while installing Android
emulator/system-image packages (`Error on ZipFile unknown archive`,
E2105/MSB3073). Material3 and several API 30 jobs encountered the same
provisioning failure; manually retried jobs subsequently ran
successfully. These are setup failures, distinct from flaky assertions.

- Use `retryCountOnTaskFailure: 4` for shared setup-only .NET
SDK/tool/workload, JDK, Xcode, Android environment/AVD,
artifact-download, Node and Appium tasks. The shared paths serve
applicable UI, device, unit/Helix and integration jobs, including legacy
handler/template preparation.
- Retry Android common, platform and emulator-image packages
**individually** in Azure Pipelines. Each attempt has fresh Android
user/temp caches; after a failure, discover the SDK and remove the
failed package directory and SDK `.temp` staging before retrying. Stream
attempt/exit-code diagnostics and fail explicitly after attempt five. Do
not add an enclosing task retry that could multiply the package
attempts. Non-CI MSBuild installs retain their original direct CLI
invocation and do not acquire a PowerShell dependency.
- Count the initial simulator-runtime download toward the five-attempt
cap, retain existing CoreSimulator recovery and timeout limits, and fail
explicitly on exhaustion or an unusable runtime.
- Increase the existing separated Cake UI preparation/build helper to
five attempts with backoff. Wire Android APK installation and
test-project build into that helper, alongside existing iOS, MacCatalyst
and Windows preparation. Test runner invocations, executed-test retry
selection/counts, result reconciliation and publication remain
unchanged.

**Coverage limits:** this is not a whole-job retry. Android emulator
boot, independent review-gate preparation, NUnit fixture setup/teardown,
and provisioning inside Helix/XHarness workers retain their existing
policies. Existing task/job timeouts can stop recovery before five
attempts. Exact coverage is documented in
`.github/docs/maui-ci-facts.md` and the UI-testing guide.

**Upstream comparison:** #39421 already introduced category-based test
retries, and open #39509 refines retries of executed tests. This change
addresses the separate pre-test setup boundary, not either test-retry
implementation. Reviewed recent provisioning fixes #38788 and #38806;
they do not implement this bounded package recovery.

**Local validation:** all passed without running native UI automation:

- `dotnet cake eng/devices/android.cake --target=uitest --dryrun
--verbosity=minimal`
- `dotnet cake eng/devices/ios.cake --target=uitest --dryrun
--verbosity=minimal`
- `dotnet cake eng/devices/catalyst.cake --target=uitest --dryrun
--verbosity=minimal`
- `dotnet cake eng/devices/windows.cake --target=uitest --dryrun
--verbosity=minimal`
- PowerShell parser and `Invoke-ScriptAnalyzer -Path
eng/scripts/Install-AndroidSdkPackage.ps1 -Severity Error,Warning
-EnableExit`.
- Modified YAML parsing with duplicate-key rejection, shared
provisioning Bash syntax checks, and provisioning XML/MSBuild
preprocessing for CI and non-CI configuration.
- `dotnet format Microsoft.Maui.sln --no-restore --exclude Templates/src
--exclude-diagnostics CA1822 --include eng/devices/android.cake
eng/devices/uitest-retry.cake eng/devices/uitests-shared.cake
src/Provisioning/Provisioning.csproj --verbosity quiet`
- `git diff --check`.

**Isolated real-installer runtime validation (macOS arm64):**

Used the actual restored MAUI CLI, real Android command-line tools 19.0
and existing SDK licenses copied into a private SDK with no symlinks.
`ANDROID_HOME` and `ANDROID_SDK_ROOT` both pointed to that copy; `dotnet
maui android sdk check --ci --json` confirmed the private path and
status `Ok` before provisioning. Android user/cache and temporary
directories were private as well. The production script was invoked with
this environment (`PRIVATE_ROOT` denotes that private validation
directory):

```bash
env TF_BUILD=True ANDROID_HOME="$PRIVATE_ROOT/sdk" ANDROID_SDK_ROOT="$PRIVATE_ROOT/sdk" \
  ANDROID_USER_HOME="$PRIVATE_ROOT/android-user" TMPDIR="$PRIVATE_ROOT/tmp" \
  pwsh -NoLogo -NoProfile -File eng/scripts/Install-AndroidSdkPackage.ps1 -Package platform-tools
```

- **Partial-install cleanup/recovery observed:** a regular file at the
private SDK's `platform-tools/.installer` blocked the native
install-properties directory. The command above failed on **attempt
1/5** with native exit code 1 and `Failed to read or create install
properties file`. The production wrapper logged removal of the failed
`platform-tools` directory, then the actual installer succeeded on
**attempt 2/5**; wrapper exit code **0**. The installed `adb version`
reported **37.0.1-15733141**.
- **Exact exhaustion observed:** with the same environment,
`/usr/bin/time -p pwsh -NoLogo -NoProfile -File
eng/scripts/Install-AndroidSdkPackage.ps1 -Package
'platforms;android-0'` exercised a nonexistent package. The actual
installer returned **E2105 / exit code 1** on exactly **attempts 1/5
through 5/5**. The wrapper also logged removal of the SDK `.temp` left
by the preceding real install. It stopped with `failed after 5 total
attempts (exit code 1)`, process exit code **1**, and **no sixth
attempt**. Elapsed time was **43.08 seconds**.
- **Successful-package preservation observed:** repeating the valid
`-Package platform-tools` command after exhaustion succeeded on
**attempt 1/5**, exit code **0**, and the previously installed `adb`
remained usable at the same version. Failed-package cleanup did not
remove that successful package.

**Runtime evidence limit:** these were isolated **macOS arm64 CLI**
executions, not literal reproduction of `ZipFile unknown archive` and
not Windows/Linux recovery validation. Native installer failures were
real; no substitute installer or test harness was used. The shared SDK
was not targeted. Private SDK/cache copies were removed after checking
for open files; raw `recovery.log`, `exhaustion.log` and
`post-exhaustion.log` were retained in session artifacts. No code
change, new commit/push or CI dispatch was needed for this validation.

**Final hosted validation (unchanged head
`9c7ca5bd9682cc8bf3c0fea0ec661c360459a477`):**

All three builds are terminal. Overall CI is **not green**: main
succeeded, UI has three post-test failures (two unmatched), and device
tests have one confirmed main-baseline failure. No setup defect has been
identified.

| Pipeline | Final result | Observed completion |
| --- | --- | --- |
| [maui-pr
1645251](https://dev.azure.com/dnceng-public/public/_build/results?buildId=1645251)
| **Succeeded** | 26/26 jobs succeeded; 22 published test runs Completed
|
| [UI tests
1645252](https://dev.azure.com/dnceng-public/public/_build/results?buildId=1645252)
| **Failed** | 161 jobs: 158 succeeded, 3 failed; all 157 published test
runs Completed |
| [Device tests
1645253](https://dev.azure.com/dnceng-public/public/_build/results?buildId=1645253)
| **Failed** | All 7 build-log-correlated Helix jobs completed; only the
Android CoreCLR assertion below failed |

Main published **18,711 passed test executions / 140 skipped / 0
failed**; its final actual failed-result endpoint was empty. UI
published **18,161 passed test executions / 342 skipped / 3 failed** and
finished at **2026-10-22T14:37:38Z**. These are reported execution
counts, not deduplicated unique tests or a count of first-attempt-only
passes.

The three final UI failures were identified from authoritative
failed-run details and raw execution logs:

- **Windows, confirmed pre-existing:**
`Microsoft.Maui.TestCases.Tests.ShellSearchHandlerFeatureTests(Windows).VerifyShellSearch_TextTransformUppercase`
(run **45735806**, result **100196**) failed the screenshot comparison
at **0.70%**. [Main build
1641906](https://dev.azure.com/dnceng-public/public/_build/results?buildId=1641906),
run **45623126**, result **100198**, has the exact same fully qualified
test, screenshot filename, **0.70%** difference and stack. This corrects
the earlier unmatched assessment. [Current execution log
3577](https://dev.azure.com/dnceng-public/public/_apis/build/builds/1645252/logs/3577)
shows exactly the existing two test attempts, no new setup/build retry
warning, and the genuine final test failure; [publisher log
3579](https://dev.azure.com/dnceng-public/public/_apis/build/builds/1645252/logs/3579)
correctly remains red.
- **Android, unmatched / needs investigation:**
`VerifyIsPasswordWhenCursorPositionValueSet` (run **45736456**, result
**100129**) failed with an element timeout. No exact failed-result
baseline match was found in the sampled five completed main UI builds;
this is **not** classified as pre-existing.
- **iOS, unmatched / needs investigation:** `DropEventCoordinates` (run
**45736540**, result **100272**) failed its positive X/Y assertion. No
exact failed-result baseline match was found in the same sample.
Baseline run **45634910**, result **100259**, is a different
`DragStartEventCoordinates` teardown failure, not a match.

The sampled completed main UI builds were **1643718, 1642149, 1641906,
1640343 and 1633638**. Their compact `resultsbybuild` data returned
incorrect test titles for some run/result IDs, including all three
current failures. Classification above uses rechecked failed-run
details, class/platform identity and raw logs, not those compact titles.
Absence from this five-build sample does not establish that the two
unmatched failures are PR-caused or pre-existing.

The sole device-test failure was Android CoreCLR
`ImageWithUndefinedSizeAndWithBackgroundSetRenders`, a red-color
assertion. The same exact test/platform/reason is present on [main build
1641907](https://dev.azure.com/dnceng-public/public/_build/results?buildId=1641907),
run **45621312**, result **100999**. The other correlated Helix jobs
passed. Existing test retries preserved the final UI and device
failures; this PR does not rerun or hide them through the setup loop.

**Setup evidence and completed archive audits:**

- Azure Pipelines server-side preview succeeded for all three
definitions: `maui-pr` (32 expanded jobs), `maui-pr-uitests` (28), and
`maui-pr-devicetests` (8). These are expanded configuration counts,
separate from actual final job/run counts above.
- The new Android common-package installer ran successfully on Windows
in [main build log
48](https://dev.azure.com/dnceng-public/public/_apis/build/builds/1645251/logs/48),
and on macOS in the Material3 sample-build job in [UI build log
24](https://dev.azure.com/dnceng-public/public/_apis/build/builds/1645252/logs/24).
Both show the new script installing `platform-tools`,
`cmdline-tools;13.0` and `emulator` on attempt **1/5**, followed by
`Build succeeded`.
- Full archive audits read **971 individual task logs** for main,
**145** for device validation and **5,522** for UI. They found
respectively **104 + 8 + 308 = 420 actual Android package-install
invocation lines**, all on attempt **1/5**, and **zero native Azure
`RetryHelper` warnings**. All **157 UI test-execution task logs** were
uniquely correlated with the **157 final published result runs**. The UI
archive audit is complete; zero native retry warnings does not mean that
inline simulator recovery or existing test retries did not occur.
- **Real hosted pre-test simulator recovery observed:** scanning **67
simulator-runtime task logs** (25 main, 2 device, 40 UI) found **18
successful recoveries**: **14 main, 2 device, 2 UI**. Each log reports
`Unable to connect to simulator`, `First attempt failed with exit code
70`, CoreSimulator cleanup/restart, then successful create-usable
smoke-device validation `after 2 install attempt(s)` and final setup
success. Examples: [main log
349](https://dev.azure.com/dnceng-public/public/_apis/build/builds/1645251/logs/349)
(lines 16-269), [device log
17](https://dev.azure.com/dnceng-public/public/_apis/build/builds/1645253/logs/17)
(lines 16-262), and [UI log
41](https://dev.azure.com/dnceng-public/public/_apis/build/builds/1645252/logs/41)
(lines 16-231) / [UI log
145](https://dev.azure.com/dnceng-public/public/_apis/build/builds/1645252/logs/145)
(lines 16-265). **The CoreSimulator cleanup/restart mechanism was
pre-existing logic retained by this PR**, not a newly invented recovery
mechanism. These logs demonstrate actual pre-test recovery with the
revised attempt accounting, but not recovery beyond the second attempt
or literal corrupt-ZIP recovery.
- **Existing executed-test retries, audited separately:** **103 UI
test-execution tasks ran once** and **54 ran twice**. Of those 54, **51
test-execution steps/jobs ultimately recovered** and **3 remained
failed**, exactly the final failures above. These are recovered
steps/jobs, **not 51 distinct flaky tests**. The **10** `Setup failed
for test fixture` candidates occur **inside NUnit after runner start**
and recovered through the existing executed-test retry path, not the new
five-attempt pre-test loop. [Windows execution log
3577](https://dev.azure.com/dnceng-public/public/_apis/build/builds/1645252/logs/3577)
is an example of the unchanged two-attempt path preserving a final
failure.
- **Remaining limits:** no hosted Android package operation reached
attempt 2. Successful first-attempt package installs do not certify
corrupt-download recovery or exhaustion on hosted agents. The isolated
macOS arm64 CLI observations above remain the direct Android
cleanup/recovery/exhaustion proof; literal `ZipFile unknown archive` and
Windows/Linux Android recovery remain unexercised.
- Docs spellcheck passed. The existing [Pester scripts
check](https://github.com/dotnet/maui/actions/runs/39766212470) reports
**2,624 passed / 3 failed**. All three failures are stale GPT-5.6
model-policy assertions against the existing GPT-6 reviewer
configuration. The failing tests and both configuration inputs are
unchanged from the base commit; the base already sets `gpt-6-astra` in
`Review-Tests.ps1` and imports `shared/gpt-6.1-sol.md` in
`copilot-review-tests.md`. This PR does not change or suppress those
checks.

No pipeline Pester/regex/snapshot tests were added. No host macOS
XCTest/UI automation was used. This evidence update made no code
changes, push, rerun or CI dispatch.

### Issues Fixed

<!-- Please make sure that there is a bug logged for the issue being
fixed. The bug should describe the problem and how to reproduce it. -->

No linked issue. Addresses the setup/provisioning failures in [build
1642459](https://dev.azure.com/dnceng-public/public/_build/results?buildId=1642459),
including [the Material3 provisioning
log](https://dev.azure.com/dnceng-public/public/_apis/build/builds/1642459/logs/173).

<!--
Are you targeting main? All PRs should target the main branch unless
otherwise noted.
-->
@github-actions github-actions Bot locked and limited conversation to collaborators Oct 24, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants