Skip to content

[CI-Improvement]Retry only failed individual UI tests across all platforms - #39509

Merged
kubaflo merged 4 commits into
dotnet:mainfrom
Ahamed-Ali:ahamed-ali-individual-test-retries
Oct 26, 2026
Merged

kubaflo merged 4 commits into
dotnet:mainfrom
Ahamed-Ali:ahamed-ali-individual-test-retries

Conversation

@Ahamed-Ali

Copy link
Copy Markdown
Contributor

Description of Change

This pull request significantly improves the reliability and precision of UI test retries in CI by switching from category-based retries to fine-grained, test-level retries using NUnit's fullname selectors and a generated retry.runsettings file. The changes ensure only failed tests (and affected fixtures) are retried, handle ambiguous or incomplete results robustly, and improve the merging of retry results. The documentation is also updated to reflect these improvements.

Test retry precision and infrastructure:

  • Retries now run only the individual failed tests (using NUnit fullname selectors), rather than all tests in failed categories; for fixture errors, the containing category is retried. A retry.runsettings file is generated to use NUnit.Where filtering, avoiding command-line length and quoting issues. [1] [2] [3]
  • The retry logic now robustly handles ambiguous, incomplete, or unmappable test results by falling back to the original filter and issuing warnings, and supports additional exception types for fallback. [1] [2]

Build and test runner integration:

  • The RunTestWithLocalDotNet method is updated to accept a settingsFile parameter, which, if provided, disables the old filter and applies the settings file for retries. Logging is improved to indicate which filter or settings are used. [1] [2] [3]

Test result reconciliation and merging:

  • The merging logic for TRX and NUnit XML is improved to ensure that only tests confirmed as passed by the retry are marked as such; unresolved or ambiguous outcomes are handled more strictly, and fixture-level errors are only cleared if all their test cases pass in the retry. [1] [2] [3] [4]

Documentation:

  • The docs/UITesting-Guide.md is updated to clarify the new retry behavior, including the use of retry.runsettings, test-level retries, and improved error handling.

Code robustness and maintainability:

  • Helper methods are added or improved for quoting filter values, creating runsettings files, and handling edge cases in result processing. [1] [2] [3]

These changes make UI test retries more targeted, reliable, and maintainable, reducing unnecessary test reruns and improving CI feedback quality.

Use exact NUnit fullname selectors through generated runsettings while retaining category recovery for fixture errors and conservative metadata fallbacks. Preserve unresolved NUnit failures and prevent skipped retry results from clearing earlier failures.

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
@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 -- 39509

Or

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

@azure-pipelines

This comment has been minimized.

@dotnet-policy-service dotnet-policy-service Bot added the partner/syncfusion Issues / PR's with Syncfusion collaboration label Oct 21, 2026
@kubaflo

This comment has been minimized.

@kubaflo

This comment has been minimized.

@kubaflo

This comment has been minimized.

@azure-pipelines

This comment has been minimized.

@github-actions github-actions Bot added the s/agent-review-in-progress AI review is currently running for this PR label Oct 21, 2026
@github-actions

Copy link
Copy Markdown
Contributor

/review gate was not started: another review or Gate is already running for this PR.

This command is not queued. Submit it again after the current run finishes.

3 similar comments
@github-actions

Copy link
Copy Markdown
Contributor

/review gate was not started: another review or Gate is already running for this PR.

This command is not queued. Submit it again after the current run finishes.

@github-actions

Copy link
Copy Markdown
Contributor

/review gate was not started: another review or Gate is already running for this PR.

This command is not queued. Submit it again after the current run finishes.

@github-actions

Copy link
Copy Markdown
Contributor

/review gate was not started: another review or Gate is already running for this PR.

This command is not queued. Submit it again after the current run finishes.

@kubaflo

This comment has been minimized.

@github-actions

This comment has been minimized.

@github-actions

Copy link
Copy Markdown
Contributor

/review gate was not started: another review or Gate is already running for this PR.

This command is not queued. Submit it again after the current run finishes.

@kubaflo

This comment has been minimized.

@github-actions

This comment has been minimized.

Preserve ordered navigation and shared application state when retrying feature-matrix fixtures. Keep individual-test retries for ordinary UI tests and retain the original category/shard boundary and failure-safe result reconciliation.

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

Copy link
Copy Markdown
Contributor

/review gate was not started: another review or Gate is already running for this PR.

This command is not queued. Submit it again after the current run finishes.

@kubaflo

This comment has been minimized.

@azure-pipelines

This comment has been minimized.

@github-actions

Copy link
Copy Markdown
Contributor

/review gate was not started: another review or Gate is already running for this PR.

This command is not queued. Submit it again after the current run finishes.

1 similar comment
@github-actions

Copy link
Copy Markdown
Contributor

/review gate was not started: another review or Gate is already running for this PR.

This command is not queued. Submit it again after the current run finishes.

@github-actions

Copy link
Copy Markdown
Contributor

/review gate was not started: another review or Gate is already running for this PR.

This command is not queued. Submit it again after the current run finishes.

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 added s/agent-review-in-progress AI review is currently running for this PR and removed s/agent-review-in-progress AI review is currently running for this PR labels Oct 23, 2026
Replay the failing feature-matrix fixture within its original category/shard so ordered navigation and shared workflow state are recreated. Keep individual failed-test retries for other UI tests and preserve existing failure reconciliation and retry limits.

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

This comment has been minimized.

@azure-pipelines

This comment has been minimized.

@kubaflo

This comment has been minimized.

@azure-pipelines

This comment has been minimized.

@kubaflo

This comment has been minimized.

@github-actions

This comment has been minimized.

@sheiksyedm
sheiksyedm marked this pull request as ready for review October 26, 2026 07:32
Copilot AI balanced review requested due to automatic review settings October 26, 2026 07:33

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

Individual retries omit prerequisites in existing stateful issue fixtures, turning recoverable failures into deterministic retry failures.

1 open issue
What changed in this PR

This PR narrows .NET MAUI CI UI-test retries to failed tests while preserving whole-fixture retries for feature matrices and category recovery for other fixture errors.

Changes:

  • Generates NUnit retry settings and integrates them into the shared test runner.
  • Tightens result merging so unresolved failures remain failures.
  • Moves feature-matrix subpage navigation into fixture setup and documents retry behavior.
File Description
src/​Controls/​tests/​TestCases.Shared.Tests/​Tests/​FeatureMatrix/​VisualStateManager_SwitchFeatureTests.cs Moves switch subpage navigation into setup.
src/​Controls/​tests/​TestCases.Shared.Tests/​Tests/​FeatureMatrix/​VisualStateManager_SliderFeatureTests.cs Moves slider subpage navigation into setup.
src/​Controls/​tests/​TestCases.Shared.Tests/​Tests/​FeatureMatrix/​VisualStateManager_LabelFeatureTests.cs Moves label subpage navigation into setup.
src/​Controls/​tests/​TestCases.Shared.Tests/​Tests/​FeatureMatrix/​VisualStateManager_EntryFeatureTests.cs Moves entry subpage navigation into setup.
src/​Controls/​tests/​TestCases.Shared.Tests/​Tests/​FeatureMatrix/​VisualStateManager_CollectionViewFeatureTests.cs Moves CollectionView subpage navigation into setup.
src/​Controls/​tests/​TestCases.Shared.Tests/​Tests/​FeatureMatrix/​VisualStateManager_CheckBoxFeatureTests.cs Moves checkbox subpage navigation into setup.
src/​Controls/​tests/​TestCases.Shared.Tests/​Tests/​FeatureMatrix/​VisualStateManager_ButtonFeatureTests.cs Moves button subpage navigation into setup.
src/​Controls/​tests/​TestCases.Shared.Tests/​Tests/​FeatureMatrix/​ShellTabbedPageFeatureTests.cs Moves tabbed Shell navigation into setup.
src/​Controls/​tests/​TestCases.Shared.Tests/​Tests/​FeatureMatrix/​ShellSearchHandlerFeatureTests.cs Moves search navigation into setup; updates explanatory comments.
src/​Controls/​tests/​TestCases.Shared.Tests/​Tests/​FeatureMatrix/​ShellPagesFeatureTests.cs Moves Shell pages navigation into setup.
src/​Controls/​tests/​TestCases.Shared.Tests/​Tests/​FeatureMatrix/​ShellNavigationFeatureTests.cs Moves Shell navigation subpage entry into setup.
src/​Controls/​tests/​TestCases.Shared.Tests/​Tests/​FeatureMatrix/​ShellFeatureMatrixTests.cs Moves Shell flyout navigation into setup.
src/​Controls/​tests/​TestCases.Shared.Tests/​Tests/​FeatureMatrix/​ScrollViewWithLayoutOptionsFeatureTests.cs Moves layout-options navigation into setup.
src/​Controls/​tests/​TestCases.Shared.Tests/​Tests/​FeatureMatrix/​ScrollView_DynamicStackWithChildrenFeatureTests.cs Moves dynamic stack navigation into setup.
src/​Controls/​tests/​TestCases.Shared.Tests/​Tests/​FeatureMatrix/​ScrollView_DynamicGridWithChildrenFeatureTests.cs Moves dynamic grid navigation into setup.
src/​Controls/​tests/​TestCases.Shared.Tests/​Tests/​FeatureMatrix/​ScrollView_DynamicFlexWithChildrenFeatureTests.cs Moves dynamic flex navigation into setup.
src/​Controls/​tests/​TestCases.Shared.Tests/​Tests/​FeatureMatrix/​CarouselViewFeatureTests.cs Moves CarouselView navigation into setup.
eng/​devices/​uitests-shared.cake Writes retry settings and handles fallback to the original filter.
eng/​devices/​uitest-retry.cake Selects retry targets and strengthens result reconciliation.
eng/​cake/​dotnet.cake Accepts settings files instead of command-line filters for retries.
docs/​UITesting-Guide.md Documents targeted retries, fixture exceptions, and result merging.

Review effort: Balanced

var fixtureClass = (string)fixture?.Attribute("classname");
if (fixture != null && string.IsNullOrWhiteSpace(fixtureClass))
throw new InvalidOperationException("A failed fixture is missing its NUnit classname.");
var featureMatrix = fixtureClass?.EndsWith("FeatureTests", StringComparison.Ordinal) == true;
@kubaflo

This comment has been minimized.

@github-actions

Copy link
Copy Markdown
Contributor

Tests Failure Analysis

@Ahamed-Ali — test-failure analysis for commit d62fbab.

Scope CI failures Commit d62fbab


🧪 CI Analysis — click to expand
📊 maui-pr

No failures found.


🧪 maui-pr-devicetests

🧪 maui-pr-uitests

🧭 Follow-up — actions and refresh

Next action: Verify Android CoreCLR console/TRX completeness and compare Entry's raw first/retry NUnit reports before attributing remaining failures.

Maintainers: comment /review tests to refresh this report.

@kubaflo
kubaflo merged commit 4781afb into dotnet:main Oct 26, 2026
199 of 204 checks passed
@github-actions github-actions Bot added this to the .NET 10 SR13 milestone Oct 26, 2026
kubaflo added a commit that referenced this pull request Nov 3, 2026
…wipeView analyzer fix (#39854)

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

Intentional, focused backport to **`release/11.0.1xx`**, in two separate
commits retaining the original authors and source-commit attribution:

- Backport #39832 (`464839d863668cd2be600f0bed8a2a2eff38d303`): run
previous-framework (.NET 10) Apple integration `Build` cases on hosted
`macOS-26` / Xcode 26.5, while the complementary cases retain GoldenGate
/ Xcode 27. Preserve coverage with disjoint `DisplayName~net10.0` and
`DisplayName!~net10.0` filters, support per-job filter/Xcode overrides,
and single-quote filters in the shared PowerShell runner. The
documentation wording is adjusted to describe the release branch rather
than main.
- Backport #39375 (`510d60147a49be8447276b40137e25b6729c8b9b`): use
`Assert.Single(collection, predicate)` in the Android SwipeView device
test, resolving xUnit2031 without changing its assertion.

Fresh checks of release/main/inflight history and open/recently merged
PRs found no existing release backport of these two fixes. No product
code, snapshots, baselines, quarantines, dependency pins, or pipeline
tests are changed.

**Deliberately excluded after checking the actual release sources:**
#39692 references reentrant Flyout fixture types that are absent on this
branch (introduced by #38214); the Catalyst annotation from #39665
targets a grouped EmptyView helper that is also absent (introduced by
#37959). Importing those unrelated product prerequisites is outside this
PR. The MediaPicker portion is already backported by #39670. #39549 and
#39509 are not included.

**Validation at head `135cf0fbe740608ceab17aeece755ebbe098e4da`**

- Android Controls.DeviceTests compilation passed with the
repository-provisioned .NET 11 SDK: `./.dotnet/dotnet build
src/Controls/tests/DeviceTests/Controls.DeviceTests.csproj -f
net11.0-android -p:IncludeIosTargetFrameworks=false
-p:IncludeMacCatalystTargetFrameworks=false
-p:IncludeMacOSTargetFrameworks=false -v:minimal` (binary logging
enabled). Result: **0 errors**, two existing MAUI1001 runtime-XAML
deprecation warnings. Initial attempts exposed missing build tasks; the
bootstrap produced the tasks, but its aggregate build reported Java 21
obsolete-option diagnostics. The subsequent affected-project build above
succeeded without disabling analyzers or suppressing warnings.
- `ruby -ryaml -rdate -e 'ARGV.each {|p| YAML.safe_load(File.read(p),
permitted_classes: [Date,Time], aliases: true); puts "parsed #{p}"}'
eng/pipelines/ci.yml eng/pipelines/arcade/stage-integration-tests.yml` —
**passed**.
- Azure definition **302** expanded-YAML preview via `az devops invoke
--area pipelines --resource runs --route-parameters project=public
pipelineId=302 --api-version 7.1 --http-method POST --in-file
azure-preview-request.json --organization
https://dev.azure.com/dnceng-public --output json` — **passed**. The
preview-only request pinned the branch and exact head above. Server
expansion confirms hosted `macOS-26`, `XCODE=26.5`,
`REQUIRED_XCODE=26.5` and the previous-framework filter; the
complementary lane retains `AcesShared` / `$(AcesMacImageOverride)` and
excludes those cases. The expanded YAML also parsed successfully.
- Parsed both actual **Azure-expanded** PowerShell runner scripts, after
substituting their job filters, with
`System.Management.Automation.Language.Parser.ParseInput` — **passed**,
zero syntax errors and zero background pipelines for each lane. The
local template expansion was checked separately with the same result.
- `dotnet format whitespace --folder --include
src/Controls/tests/DeviceTests/Elements/SwipeView/SwipeViewTests.Android.cs
--verify-no-changes` — **passed**.
- `git diff origin/release/11.0.1xx...HEAD --check` — **passed**.

**CI remains pending, not green:** [maui-pr
1662034](https://dev.azure.com/dnceng-public/public/_build/results?buildId=1662034)
was queued and has now entered `inProgress`, with
`triggerInfo.pr.sourceSha` matching this exact head. No completed CI
outcome is claimed. Device/UI pipelines have not been queued. Device
runtime tests and full integration execution have **not** been run
locally. Catalyst source was not changed. The configuration preview is
not a test execution or a whole-PR success claim.

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

Backports #39832 and #39375 (original analyzer issue: #39376) to
`release/11.0.1xx`.

<!--
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 Nov 26, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

partner/syncfusion Issues / PR's with Syncfusion collaboration 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.

4 participants