Skip to content

[ci] Select the latest installed iOS runtime for latest UI-test lanes - #40766

Merged
kubaflo merged 1 commit into
mainfrom
kubaflo-fix-ios-uitest-runtime
Nov 28, 2026
Merged

kubaflo merged 1 commit into
mainfrom
kubaflo-fix-ios-uitest-runtime

Conversation

@kubaflo

@kubaflo kubaflo commented Nov 28, 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!

Target Branch

This PR is for Initial base
New features, API changes, or .NET 12 work (including .NET 12 fixes) main
.NET 11 servicing fixes net11, for review
Older servicing, release integration, infrastructure, or documentation The branch designated for that work

For .NET 11 fixes, only a maintainer retargets the approved PR to the active
inflight lane and merges it after CI validates that final base. Do not merge
individual fixes directly into net11; agents must not retarget or merge.

Description of Change

Fix the iOS UI-test vlatest lane without changing the pinned v18.5 lane.

In main build 1703706, three CoreCLR vlatest groups (CollectionView3, Cells/CheckBox, Lifecycle/ManualReview/Maps) failed setup five times before executing tests: No installed iOS simulator runtime matches ios-simulator-64. Their command lines requested --apiversion=18.5, while those agents only had iOS 26.x installed.

The CoreCLR matrix hard-coded 18.5 for latest (eng/pipelines/common/ui-tests.yml, formerly line 462), and NativeAOT similarly substituted defaultiOSVersion. After #40661, GetUDID uses this API-version argument for an unsuffixed simulator selector, making that substitution an actual runtime requirement rather than merely Appium metadata.

  • Pass the matrix's literal version through in both runtime variants. The existing Cake resolver already selects the highest available installed iOS runtime for latest.
  • Set Appium's PLATFORM_VERSION from the selected simulator's actual runtime. Do not pass the symbolic selector to Appium or misreport the installed OS.
  • Preserve pinned simulator selectors and runtime installation behavior; do not install a runtime for the latest lane merely to satisfy an obsolete pin.
  • Document the selector semantics in the canonical CI facts.

Searched open and recently merged upstream PRs before implementing. #40407 concerns exact runtime provisioning; it does not fix this matrix substitution. No existing fix found.

Validation

  • python3 with yaml.safe_load on eng/pipelines/common/ui-tests.yml, eng/pipelines/common/ui-tests-steps.yml, and eng/pipelines/ci-uitests.yml: passed.
  • DOTNET_ROLL_FORWARD=Major dotnet exec /Users/kubaflo/.nuget/packages/cake.tool/7.0.0/tools/net10.0/any/Cake.dll eng/devices/ios.cake --target=uitest-prepare --apiversion=latest --dryrun --verbosity=quiet: passed.
  • Read-only Cake diagnostic target using the actual FindSimulatorRuntime method and changed Appium-version block, against xcrun simctl list runtimes --json / xcrun simctl list --json, with --boot=false: passed. Installed iOS versions: 18.5, 26.0, 26.5, 27.1. latest → iOS 27.1; pinned 18.5 → iOS 18.5; min → iOS 18.5; Appium platform version → 27.1. No simulator was created or booted by the passing diagnostic. Removed the diagnostic script afterwards.
  • An initial diagnostic without --boot=false resolved the same runtimes but failed in pre-existing Cake.AppleSimulator teardown (Could not locate executable); rerunning with device boot/cleanup disabled passed.
  • git diff --check: passed.
  • No pipeline tests added, per policy. Full UI suite not run locally; requesting actual maui-pr-uitests validation via /azp run maui-pr-uitests on this PR. CI outcome pending.

Issues Fixed

No linked issue; fixes the setup failures in main UI-test build 1703706 (logs 4317, 4745, 4332).

Let AI finish this PR

  • Let the MAUI agent address review feedback and fix remaining issues on this PR. Maintainers still decide whether it is merged. For PRs from forks, the agent opens a follow-up PR that keeps your commits.

Preserve the latest selector in CoreCLR and NativeAOT jobs and pass the selected simulator's actual OS version to Appium.

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

kubaflo commented Nov 28, 2026

Copy link
Copy Markdown
Contributor Author

@dalexsoto stamp

Copilot AI balanced review requested due to automatic review settings November 28, 2026 17:13
@kubaflo

This comment has been minimized.

@kubaflo
kubaflo temporarily deployed to copilot-pat-pool November 28, 2026 17:13 — with GitHub Actions Inactive
@github-actions

This comment has been minimized.

@azure-pipelines

This comment has been minimized.

@kubaflo
kubaflo temporarily deployed to copilot-pat-pool November 28, 2026 17:14 — with GitHub Actions Inactive
@azure-pipelines

This comment has been minimized.

@kubaflo

kubaflo commented Nov 28, 2026

Copy link
Copy Markdown
Contributor Author

Local validation passed: YAML parses; Cake compiles; the real runtime resolver selected iOS 27.1 for latest and 18.5 for the pinned lane, and Appium received 27.1. The first requested UI-test run (1703819) was canceled before starting (zero duration), so no CI result is available yet. I did not cancel it. Requesting one replacement run.

@kubaflo

This comment has been minimized.

@azure-pipelines

This comment has been minimized.

@kubaflo

kubaflo commented Nov 28, 2026

Copy link
Copy Markdown
Contributor Author

Reviewer note: this changes what the iOS vlatest lanes run on. They previously used iOS 18.5 (CoreCLR) or defaultiOSVersion, and now use the newest installed runtime, 27.1 on current agents. Those lanes' screenshot baselines may have been captured on 18.5, so the uitests run (1703821) must be checked for new snapshot diffs before merging. If it shows many new snapshot diffs, the safer fix is to keep the pin and make the pool or runtime install guarantee iOS 18.5.

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.

🟡 Changes recommended

The runtime resolver can select an iOS runtime incompatible with the required iPhone 11 Pro profile, causing both UI-test and NativeAOT lanes to fail during device creation before tests run.

1 open issue
What changed in this PR

Updates MAUI’s iOS UI-test setup so vlatest selects the newest available installed runtime instead of using an implicit version pin, while preserving explicit v18.5 selection.

Changes:

  • Pass the matrix version unchanged to both CoreCLR and NativeAOT lanes.
  • Set PLATFORM_VERSION from the selected simulator’s actual runtime.
  • Document latest and pinned selector behavior.
File Description
eng/​pipelines/​common/​ui-tests.yml Removes version substitutions for latest in both runtime variants.
eng/​devices/​ios.cake Reads the selected simulator’s OS version for PLATFORM_VERSION.
.github/​docs/​maui-ci-facts.md Documents runtime selector and platform-version semantics.

Review effort: Balanced

version: 18.5
${{ if ne(version, 'latest') }}:
version: ${{ version }}
version: ${{ version }}

@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 1367287 into main Nov 28, 2026
171 of 179 checks passed
@kubaflo
kubaflo deleted the kubaflo-fix-ios-uitest-runtime branch November 28, 2026 20:26
kubaflo added a commit that referenced this pull request Nov 29, 2026
<!-- copilot-assessment:v1 -->
### Agent assessment

Self-reported assessment, not an independent review.

Assessed revision: `4b5901591c54bd76752e588ac5582a05707a3207`

| Dimension | Assessment | Rationale |
|---|---|---|
| Change confidence | 7.5/10 | ↑ PR devicetests
[1704250](https://dev.azure.com/dnceng-public/public/_build/results?buildId=1704250):
iOS controls General 1493 total, 0 failed; log 303 shows iPhone 11 Pro /
iOS 27.2 selected.<br>↑ Local simulator runs: 14 scoped tests red → fix
green → reverted red → restored green.<br>↓ One green CI run of an
intermittent failure; other device-test suites not run locally. |
| Diagnosis confidence | 6/10 | ↑ Locally, the iPhone Duo profile
reproduces the failures without any predecessor test.<br>↓ main's device
step does not log the selected profile, so no CI log shows that failing
builds 1704212/1704247 used iPhone Duo. |
| Evidence fit | 6/10 | ↑ The same 17-test cluster fails intermittently
on unrelated PRs with the main tree, consistent with nondeterministic
device selection.<br>↓ Local Duo runs used iOS 27.1 and standard-phone
runs iOS 26.0; CI uses iOS 27.2, so this isn't a same-runtime
comparison. |
<!-- /copilot-assessment -->

<!-- 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!

<!--
Open .NET 11 fix PRs against net11 for review; target main for
next-major features.
After approval, a maintainer manually retargets the fix PR to the active
inflight
branch and merges it directly there. Do not merge individual fixes into
net11.
Bots must not retarget or merge. Candidate integration into net11 and
release/*
changes are separate, explicitly coordinated release work.
-->

### Target Branch

| This PR is for | Initial base |
| --- | --- |
| New features, API changes, or .NET 12 work (including .NET 12 fixes) |
`main` |
| .NET 11 servicing fixes | `net11`, for review |
| Older servicing, release integration, infrastructure, or documentation
| The branch designated for that work |

- [x] I selected the applicable base branch using the [contribution
guide](https://github.com/dotnet/maui/blob/main/.github/CONTRIBUTING.md#choose-your-pr-base-before-starting).

For .NET 11 fixes, only a maintainer retargets the approved PR to the
active
inflight lane and merges it after CI validates that final base. Do not
merge
individual fixes directly into `net11`; agents must not retarget or
merge.

### Description of Change

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

The apparent intermittent iOS General cascade is **simulator-profile
drift, not a demonstrated TabbedPage state leak**.

The native device-test migration prefers iPhone 11 Pro / iPhone 16 but
falls back to any compatible phone on the newest installed runtime. A
device-specific runtime supporting only **iPhone Duo** therefore
silently changes this standard-phone lane to an unfolded, regular-width
navigation environment. The More-tab and native back-button assumptions
no longer hold; the tab-bar layer-removal assertion and ScrollView
geometry assertion also fail.

Select the newest installed runtime **together with a supported
standard-phone profile**, retaining the existing iPhone 11 Pro / iPhone
16 preferences. Do not fall back to an arbitrary device profile.
Explicit version/major requests remain within their requested version
range; when no supported standard-phone profile exists, report a
provisioning error instead of substituting another OS.

Log and persist the runtime identifier, version, build, and device type
in `device.json`. No product code, test assertion, skip, or category
exclusion changes.

**Coverage boundary:** a device-specific Duo runtime is not a
replacement for standard-phone coverage. This does not add foldable
coverage; that needs a separately configured lane. For `latest`, the
selected standard-phone runtime can be older than an installed Duo-only
runtime.

#### CI evidence

Actual simulator logs in the General job's published `DeviceTests`
artifact show:

| Build | General job | Device | Runtime |
| --- | --- | --- | --- |
|
[1704247](https://dev.azure.com/dnceng-public/public/_build/results?buildId=1704247)
| Failed, 17 victims | iPhone Duo / iPhone19,4 | iOS 27.2 / 24B91016s |
|
[1704240](https://dev.azure.com/dnceng-public/public/_build/results?buildId=1704240)
| Passed | iPhone 11 Pro / iPhone12,3 | iOS 27.2 / 24B8117 |
|
[1704155](https://dev.azure.com/dnceng-public/public/_build/results?buildId=1704155)
| Passed on main | iPhone 11 Pro / iPhone12,3 | iOS 27.2 / 24B8117 |

Each has 1,493 `TEST_START` events with different randomized order. In
1704247, the first failure starts at 14:32:39 UTC:
`BarBackgroundTransitionRemovesGradientAndRestoresEffect(True)`, with
`ArgumentNullException: collection`. The root-replacement tests do not
begin until 14:40:12 UTC, so they cannot explain that first failure. The
raw test-step log is 749 for 1704247, 736 for 1704240, and 781 for
1704155. The previously reported build 1704212/log 727 was no longer
readable; no claims are made about its ordering.

Before implementation, searched open and recently merged PRs across all
bases for the test names, More-navigation mechanisms,
`Start-TestDevice`, device-specific runtime selection, and iPhone Duo.
Inspected #40656, #40755, and #40766. The open siblings
#40799/#40800/#40801/#40802/#40805/#40796 do not implement this native
standard-phone runtime/profile selection correction.

#### Local causal validation

All results below come from **fresh native MTP TRX**, verified by the
existing runner for exact class/method isolation. Only owned iOS
simulators were used.

| Phase | Profile / runtime | Passed | Failed |
| --- | --- | --- | --- |
| Original | Duo / iOS 27.1, 24A94232 | 0 | 14 |
| Fixed | iPhone 11 Pro / iOS 26.0, 23A343 | 14 | 0 |
| Fix reverted exactly to main | Duo / iOS 27.1, 24A94232 | 0 | 14 |
| Fix restored | iPhone 11 Pro / iOS 26.0, 23A343 | 14 | 0 |

The 14 scoped victims cover all six tab-gradient variants, all six
failing More-transition variants, ScrollView, and the base
NavigationPage back-button variant. They reproduce **without running any
potential leaking predecessor**. Local exception messages match the CI
cluster, including `collection`, missing native back button, absent
shared-element flight, premature push completion, and navigation
timeout.

Commands, all from an isolated worktree off `origin/main` at
`1344d16421`:

```bash
export DOTNET_ROOT=/Users/kubaflo/Projects/copilot-worktrees/maui/kubaflo-catalyst-cascade/.dotnet
export PATH="$DOTNET_ROOT:$PATH"
# This installed preview SDK packages mlaunch under tools/lib, while its default property points at tools/bin.
export MlaunchPath="$DOTNET_ROOT/packs/Microsoft.iOS.Sdk.net12.0_27.1/27.1.12089-net12-p1/tools/lib/mlaunch/mlaunch.app/Contents/MacOS/mlaunch"
export RelativeMlaunchPath=packs/Microsoft.iOS.Sdk.net12.0_27.1/27.1.12089-net12-p1/tools/lib/mlaunch/mlaunch.app/Contents/MacOS/mlaunch
```

Preparation — **passed**, zero warnings/errors:

```bash
dotnet build Microsoft.Maui.BuildTasks.slnf --disable-build-servers -v:q
```

Causal run command — original used `-iOSVersion 27.1`;
fixed/reverted/restored used `-iOSVersion latest`, which selects that
same Duo runtime with the original selector. Results are listed in the
table above:

```bash
pwsh .github/skills/run-device-tests/scripts/Run-DeviceTests.ps1 \
  -Project Controls -Platform ios -iOSVersion latest \
  -IncludeClasses 'Microsoft.Maui.DeviceTests.TabbedPageTests,Microsoft.Maui.DeviceTests.TabbedPageTests_TabbedViewHandler,Microsoft.Maui.DeviceTests.TabbedPageNavigationHandlerTests,Microsoft.Maui.DeviceTests.NavigationPageTests,Microsoft.Maui.DeviceTests.PageTransitionsTests,Microsoft.Maui.DeviceTests.ScrollViewTests' \
  -IncludeMethods 'BarBackgroundTransitionRemovesGradientAndRestoresEffect,NavigatingBackViaBackButtonFiresNavigatedEvent,MoreTabNavigationsCompleteAfterTheTransition,MoreTabUnanimatedPushIsRecordedForThePop,MoreTabSharedElementFliesFromTheOverflowRoot,TestContentHorizontalOptionsChanged' \
  -SkipXcodeVersionCheck -Timeout 00:10:00 -DotnetPath "$DOTNET_ROOT/dotnet" \
  -OutputDirectory artifacts/ios-cascade/cluster-restored
```

Final expanded verification includes the three remaining NavigationPage
handler variants — **17 passed / 0 failed / 0 skipped**, covering every
reported victim:

```bash
pwsh .github/skills/run-device-tests/scripts/Run-DeviceTests.ps1 \
  -Project Controls -Platform ios -iOSVersion latest \
  -IncludeClasses 'Microsoft.Maui.DeviceTests.TabbedPageTests,Microsoft.Maui.DeviceTests.TabbedPageTests_TabbedViewHandler,Microsoft.Maui.DeviceTests.TabbedPageNavigationHandlerTests,Microsoft.Maui.DeviceTests.NavigationPageTests,Microsoft.Maui.DeviceTests.NavigationPageNavigationHandlerTests,Microsoft.Maui.DeviceTests.NavigationPageTests_TabbedViewHandler,Microsoft.Maui.DeviceTests.NavigationPageTests_FlyoutViewHandler,Microsoft.Maui.DeviceTests.PageTransitionsTests,Microsoft.Maui.DeviceTests.ScrollViewTests' \
  -IncludeMethods 'BarBackgroundTransitionRemovesGradientAndRestoresEffect,NavigatingBackViaBackButtonFiresNavigatedEvent,MoreTabNavigationsCompleteAfterTheTransition,MoreTabUnanimatedPushIsRecordedForThePop,MoreTabSharedElementFliesFromTheOverflowRoot,TestContentHorizontalOptionsChanged' \
  -SkipXcodeVersionCheck -Timeout 00:10:00 -DotnetPath "$DOTNET_ROOT/dotnet" \
  -OutputDirectory artifacts/ios-cascade/full-cluster-final
```

Exact-version guard — **passed**: this real invocation rejects the
installed Duo-only 27.1 runtime with the expected provisioning error,
exit 1, without creating a simulator:

```bash
pwsh -NoProfile .github/skills/run-device-tests/scripts/Start-TestDevice.ps1 \
  -Platform ios -ApiVersion 27.1 \
  -ResultsDirectory artifacts/ios-cascade/exact-runtime-rejection \
  -DeviceDirectory artifacts/ios-cascade/exact-runtime-device
```

PowerShell parser validation and `git diff --check` — **passed**. No
pipeline unit/snapshot tests were added. The initial local launch
attempt did not run tests because of the preview SDK's missing
`tools/bin/mlaunch`; only subsequent runs using the explicit valid
launch path are counted. Full repository tests and PR CI have not been
run as validation evidence.

### 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. -->

The recurrent iOS Controls General cluster in the linked builds; no
unrelated issue-closing reference.

### Let AI finish this PR

- [ ] **Let the MAUI agent address review feedback and fix remaining
issues on this PR.** Maintainers still decide whether it is merged. For
PRs from forks, the agent opens a follow-up PR that keeps your commits.

<!--
Verify the target branch follows the release workflow in
docs/ReleaseBranchWorkflow.md.
Infrastructure and documentation changes should target the branch where
they apply.
-->

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
kubaflo added a commit that referenced this pull request Nov 29, 2026
…ss tint (#40799)

<!-- copilot-assessment:v1 -->
### Agent assessment

Self-reported assessment, not an independent review.

Assessed revision: `6b844227882efafd2abc4495387b1d087ca1c477`

| Dimension | Assessment | Rationale |
|---|---|---|
| Change confidence | 8/10 | ↑ The existing comparer accepts every
captured attempt after cropping; a clipped-background negative control
still fails.<br>↓ Live iOS validation is pending CI; the screenshot now
checks a narrow content strip rather than the whole page. |
| Diagnosis confidence | 8/10 | ↑ The scored difference is confined to
the native glass tab bar and shadow, not clipped content; all four
captures in build 1703972 are pixel-identical.<br>↓ The trigger for the
glass tint variation is not established. |
| Evidence fit | 7/10 | ↑ Actual CI PNGs, diff PNGs, retry captures,
passing TRX and runtime-selection logs were inspected.<br>↓ The local
machine lacks CI's iOS 26.5 runtime; screenshot replay is not a
simulator test run. |
<!-- /copilot-assessment -->

<!-- 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!

<!--
Open .NET 11 fix PRs against net11 for review; target main for
next-major features.
After approval, a maintainer manually retargets the fix PR to the active
inflight
branch and merges it directly there. Do not merge individual fixes into
net11.
Bots must not retarget or merge. Candidate integration into net11 and
release/*
changes are separate, explicitly coordinated release work.
-->

### Target Branch

| This PR is for | Initial base |
| --- | --- |
| New features, API changes, or .NET 12 work (including .NET 12 fixes) |
`main` |
| .NET 11 servicing fixes | `net11`, for review |
| Older servicing, release integration, infrastructure, or documentation
| The branch designated for that work |

- [x] I selected the applicable base branch using the [contribution
guide](https://github.com/dotnet/maui/blob/main/.github/CONTRIBUTING.md#choose-your-pr-base-before-starting).

This is the explicitly requested UI-test reliability change for `main`,
not a servicing product fix.

For .NET 11 fixes, only a maintainer retargets the approved PR to the
active
inflight lane and merges it after CI validates that final base. Do not
merge
individual fixes directly into `net11`; agents must not retarget or
merge.

### Description of Change

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

Stop `Issue35490.NavigationPageChildContentExtendsUnderFloatingTabBar`
comparing UIKit's variable glass tint on iOS. Wait for the native tab
bar, then compare the leftmost 150 physical pixels of the existing
iPhone 11 Pro screenshot. That strip remains outside the glass bar **and
its shadow**, while still covering the purple content beside and below
the floating bar. The original clipping regression produces a non-purple
band there.

Only the two iOS baselines are cropped, retaining their original pixels.
Mac Catalyst keeps its existing full screenshot. No tolerance, retry
delay, product behavior or test categories change; the test remains
enabled.

#### Diff analysis

Downloaded the actual PNG and `-diff.png` from build **1703972**,
artifact
`uitest-snapshot-results-ios-ios_ui_tests_coreclr-controls-latest-Job28-1`,
plus all original/retry captures and the accessibility hierarchy from
`drop-ios_ui_tests_coreclr-Job28-1`.

- Actual and baseline are both **1124 × 2286** after the standard
status-bar/home-indicator crop.
- The comparer uses the **red channel**. Its changed-pixel bounds are
**x=178…949, y=1997…2285** in that cropped image: the floating glass
capsule and its shadow. At a red-channel delta of at least 10, the
bounds narrow to **x=282…845, y=2077…2273**.
- The capsule's dominant color changes from baseline **(251,225,255)**
to actual **(215,198,251)**. Purple content, navigation layout and label
placement remain intact. The background blue channel also differs
slightly, but that channel is not scored by the existing comparer.
- Both captures in the original test invocation and both in the in-job
retry are pixel-identical. Replaying the repository's
`MagickNetVisualComparer` reproduces **1.66%** before cropping and a
match after cropping. The retained strip's red-channel pixels are
identical.
- This is **not** a resolution/status-bar/home-indicator mismatch. Logs
show the same **iPhone 11 Pro / iOS 26.5** in both failing and passing
runs, including after #40766. A runtime-specific replacement baseline
therefore would not resolve the observed variation.
- The precise trigger for UIKit's glass tint change is still unproven.
In particular, build 1703428 failed initially but passed its isolated
retry, so the evidence does **not** justify calling every occurrence
permanently agent-deterministic. Cropping avoids the variable native
material rather than speculating about a delay.

#### CI history

All listed iOS lanes selected **iPhone 11 Pro, iOS 26.5**:

| Build | Original | In-job retry | Evidence |
|---|---|---|---|
|
[1702823](https://dev.azure.com/dnceng-public/public/_build/results?buildId=1702823)
| Failed, 1.66% | Failed, 1.66% | Log 5093 |
|
[1703063](https://dev.azure.com/dnceng-public/public/_build/results?buildId=1703063)
| Failed, 1.66% | Failed, 1.66% | Log 5206 |
|
[1703252](https://dev.azure.com/dnceng-public/public/_build/results?buildId=1703252)
| Passed, 403 ms | Not needed | Log 5283 |
|
[1703372](https://dev.azure.com/dnceng-public/public/_build/results?buildId=1703372)
| Passed, 426 ms | Not needed | Log 5292 |
|
[1703428](https://dev.azure.com/dnceng-public/public/_build/results?buildId=1703428)
| Failed, 1.66% | Passed, 455 ms | Log 5506 |
|
[1703936](https://dev.azure.com/dnceng-public/public/_build/results?buildId=1703936)
| Passed, 432 ms | Not needed | Log 6361 and actual TRX |
|
[1703972](https://dev.azure.com/dnceng-public/public/_build/results?buildId=1703972)
| Failed, 1.66% | Failed, 1.66% | Log 6289 and actual PNGs |

The passing build 1703936 artifact was downloaded too: the actual TRX
confirms this test passed, but no successful test PNG is retained. No
passing image is being inferred or fabricated.

#### Existing fixes checked

Searched open and recently merged PRs for the test, issue and
screenshot/glass mechanism. The open search hits #40290 and #29952 do
not modify this test or its baselines. No duplicate open fix was found.

- #37405 fixed the product handler's bottom extended-layout behavior;
this PR does not replace it.
- #39912 updated the Mac baseline and Retina/window masking; this PR
leaves that path unchanged.
- #40750 adds automation for importing failed screenshot artifacts; it
does not fix this test.
- #40766 changes latest-runtime selection; failing and passing lanes
here still select the same runtime/device.

#### Validation

**Screenshot replay, not live UI execution:** an uncommitted standalone
harness links the repository's actual comparer and image snapshot types,
using Magick.NET 14.17.2 and the downloaded CI images.

| Replay stage | Result | Expected | Meaning |
|---|---|---|---|
| Original capture | 1.66% difference | Red | Reproduces CI comparison |
| Apply crop | Match | Green | Excludes native material variance |
| Revert crop | 1.66% difference | Red | Original comparison still fails
|
| Restore crop | Match | Green | Crop result is repeatable |
| Paint clipped bottom band white | 6.78% difference | Red | Still
detects clipped page content |

Every retained original/retry PNG also matches after cropping.

Exact commands and results:

- `/Users/kubaflo/dotnet-net11-ga/dotnet build
.issue35490-evidence/replay/replay.csproj --no-restore
-p:ImportDirectoryBuildProps=false -p:ImportDirectoryBuildTargets=false
-v minimal` — **passed**, 0 warnings/errors.
- `/Users/kubaflo/dotnet-net11-ga/dotnet
.issue35490-evidence/replay/bin/Debug/net11.0/replay.dll` — **passed**
all expected comparisons above, using the installed .NET 11 runtime.
- `.dotnet/dotnet build
src/Controls/tests/TestCases.iOS.Tests/Controls.TestCases.iOS.Tests.csproj
-c Release -f net12.0 -p:TargetFrameworks=net12.0 --no-restore -v
minimal` — **passed**, 0 warnings/errors, after restoring the fixed
`netstandard2.0` source-generator/visual-helper targets. This compiles
the actual iOS NUnit test project and its managed dependencies, not the
native HostApp or a simulator run.
- `HEADLESS=true pwsh ./build.ps1 -Script eng/devices/ios.cake
--target=uitest-build --apiversion=26.0 --configuration=Release
--runtimevariant=CoreCLR` — **failed** before simulator execution with
`NETSDK1147` for the repository's `net12.0-ios27.1` workload. Installing
the SDK-bundled iOS workload and retrying did not provide that pinned
net12 pack.
- `.dotnet/dotnet format Microsoft.Maui.sln --no-restore --exclude
Templates/src --exclude-diagnostics CA1822 --include
src/Controls/tests/TestCases.Shared.Tests/Tests/Issues/Issue35490.cs` —
completed with **exit 0**, with missing-reference warnings from the
unrestored multi-platform projects.
- `git diff --check` — **passed**.

Local Xcode is **27.2**; installed simulator runtimes are **26.0** and
**27.1**, not CI's **26.5**. No physical device was used. The requested
live simulator red/green/revert/restore sequence was **not run**, and
the CI rendering was **not reproduced locally**. PR UI-test CI is the
remaining validation gate; `/azp run maui-pr-uitests` is requested.

### 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. -->

Relates to #35490 (test-only reliability fix; preserves the existing
product regression coverage).

### Let AI finish this PR

- [ ] **Let the MAUI agent address review feedback and fix remaining
issues on this PR.** Maintainers still decide whether it is merged. For
PRs from forks, the agent opens a follow-up PR that keeps your commits.

<!--
Verify the target branch follows the release workflow in
docs/ReleaseBranchWorkflow.md.
Infrastructure and documentation changes should target the branch where
they apply.
-->

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

This branch was previously deployed

1 inactive deployment
copilot-pat-pool — e671c5de Deployed Nov 28, 2026 by kubaflo via conclusion #3443
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