Skip to content

[release/11.0.1xx] Shard Layout UI tests to reduce full-retry timeout risk - #39786

Closed
kubaflo wants to merge 1 commit into
release/11.0.1xxfrom
kubaflo-layout-ci-execution-servicing
Closed

kubaflo wants to merge 1 commit into
release/11.0.1xxfrom
kubaflo-layout-ci-execution-servicing

Conversation

@kubaflo

@kubaflo kubaflo commented Oct 31, 2026

Copy link
Copy Markdown
Contributor

Note

Are you waiting for the changes in this PR to be merged?
It would be very helpful if you could test the resulting artifacts from this PR and let us know in a comment if this change resolves your issue. Thank you!

Description of Change

Narrow, execution-only servicing follow-up to #39742. The branch is directly based on merged servicing commit df9c5fd8109abf9411146d2fe041a2d8967e64ed, with no promotion changes or history rewriting. The servicing target is intentional.

Replace the ordinary Layout matrix leg with three additive method-level Layout1, Layout2, and Layout3 legs using the existing ShardedTestCategory/rebalancing mechanism. Every selected case remains addressable through the Layout umbrella and exactly one shard. Test bodies, assertions, Order attributes, platform guards, existing ignores, full-suite retries, and the 180-minute job cap are unchanged. CollectionView1–7 and Shell1–2 are unchanged.

The existing planner needed tightly coupled source-contract repairs before Layout could be applied safely: one logical method/weight retains all proven mutually exclusive platform declarations, potentially overlapping declarations remain errors, and the existing analyzer's restored Roslyn dependency provides a comment/literal-aware lexical view with preserved source offsets. Explicit fixture cohesion uses the existing ordered-fixture scheduling path for the two state-dependent Issue6932 EmptyView fixtures. No new scheduling algorithm or pipeline tests were added.

Why this is timeout-risk mitigation, not an unconditional timeout claim

  • Build 1657906: unsharded Catalyst Layout completed its first 193 cases (188 passed, 1 failed, 4 existing skips), then its stock full retry was genuinely canceled at the unchanged 180-minute cap while executing VerticalStackLayout_RTLFlowDirection_With_Height.
  • The newer unsharded comparison in build 1658120 completed both 193-case passes: first 188/1/4 in 1.2720 hours and retry 188/1/4 in 1.1658 hours. That Layout job did not hit the cap. Both passes retained the same Issue17389 first-RedGrid failure.

Sharding mitigates demonstrated variable-duration execution risk; it does not mean every unsharded retry truncates, and it does not repair Issue17389.

Local qualification

The corrected inventory has 213 logical methods, 220 declarations, and 53 files, including all seven mutually exclusive TwoPaneView alternatives. Five commented-out pseudo-methods were removed only from inventory; their source comments are unchanged. Re-gathering completed builds 1657626, 1656297, and 1654475 recovered 126 formerly unmatched rows, yielding 3,461 timing samples, zero unmatched rows, five conservative imputations, and three existing globally disabled methods. The deterministic three-shard plan projects at most 48.591 minutes, with the existing two-minute safety margin against a 60-minute planning target. These are estimates, not native duration guarantees.

The real NUnit 4 CategoryFilter discovery of all four compiled clients exactly preserves each measured pre-change umbrella, with pairwise-disjoint shard selections:

Client Layout1 / Layout2 / Layout3 Union = baseline
Android 76 / 49 / 73 198
iOS 78 / 49 / 75 202
Catalyst 75 / 46 / 72 193
Windows 73 / 48 / 70 191

Each of the seven platform-alternative methods is discovered exactly once per client. A concrete overlapping-iOS declaration probe is rejected.

Native qualification on the exact source

Unchanged full/default pipeline 313 branch run 1658126 runs source dbc484eb938e6318926d9060d944e926718deecc. It was queued without category, configuration, matrix, parameter, or budget overrides. All 15 ordinary Layout jobs completed: Android, Windows, Catalyst, and the two iOS matrix variants, each across all three shards. Twelve actual final TRX files match the exact managed shard selectors; their disjoint unions match the baselines. Authoritative per-run results also verify the separate iOS 18.5 catalogs because existing artifact names collide between iOS matrix versions.

Matrix labels are not used as runtime evidence: each leg's XHarness OS version/runtime identifier and the UDID passed to tests were checked. All three 18.5 legs actually ran iPhone 11 Pro simulators on iOS 18.5; all three latest legs actually ran iOS 26.5. The misleading legacy PLATFORM_VERSION=18.5 environment value on the latest legs is not treated as a measurement.

First-run outcomes below are passed / failed / existing skips, not job-status inference:

Native lane Layout1 Layout2 Layout3
Android 76 / 0 / 0 47 / 1 / 1 71 / 0 / 2
iOS 18.5 78 / 0 / 0 47 / 0 / 2 72 / 0 / 3
iOS 26.5 (latest) 78 / 0 / 0 47 / 0 / 2 72 / 0 / 3
Windows 28 / 45 / 0 30 / 17 / 1 67 / 0 / 3
Catalyst 75 / 0 / 0 45 / 0 / 1 68 / 1 / 3

The stock full retries retained the identical complete case catalogs, not failed-test-only subsets:

Lane / shard First total (P/F/S) Full retry total (P/F/S)
Android Layout2 49 (47/1/1) 49 (48/0/1)
Windows Layout1 73 (28/45/0) 73 (73/0/0)
Windows Layout2 48 (30/17/1) 48 (47/0/1)
Catalyst Layout3 72 (68/1/3) 72 (68/1/3)

Other Layout legs did not need a stock retry. Android's first failure was the app-not-running assertion in VerifyAbsoluteLayout_WidthProportional; Windows first failures included FlexLayout/AbsoluteLayout fixture-navigation timeouts. Their passing full retries establish execution completeness, not an infrastructure or causal verdict.

Catalyst Layout3's first NUnit run completed in 41.9923 minutes, its identical full retry in 31.4602 minutes, and the entire job in 95.5035 minutes, below the unchanged 180-minute cap. The first-pass wall time including setup was approximately 62.5 minutes, so this is explicitly not certification that native jobs always meet the 60-minute planning target.

Residual red result preserved: Issue17389.ValidateBackgroundColorDoesNotAffectInputTransparent fails the first RedGrid tap-count assertion in both complete Catalyst Layout3 passes. Published run 46160826 contains all 72 final cases, including that failure; the test task and publisher remain red. This is not a post-completion false failure and is not repaired by this PR. The rest of pipeline 313 was still in progress at qualification; no whole-source-green or overall-task-complete verdict is implied.

Commands and results

  • pwsh .github/skills/rebalance-ui-test-categories/scripts/Rebalance-UITestCategories.ps1 -Mode Apply -Category Layout -PlanPath <retained-final-plan.json> -Apply — passed mandatory pre/post source validation.
  • .dotnet/dotnet build src/Controls/tests/TestCases.<client>.Tests/Controls.TestCases.<client>.Tests.csproj --no-restore --nologo -v:q -p:IncludeAndroidTargetFrameworks=false -p:IncludeIosTargetFrameworks=false -p:IncludeMacCatalystTargetFrameworks=false -p:IncludeMacOSTargetFrameworks=false -p:IncludeWindowsTargetFrameworks=false -p:IncludeTizenTargetFrameworks=false for Android, iOS, Mac, and WinUI — all passed with the pinned 11.0.100 SDK; actual NUnit CategoryFilter union/disjointness checks passed for each resulting assembly.
  • .dotnet/dotnet format Microsoft.Maui.sln --no-restore --exclude Templates/src --exclude-diagnostics CA1822 --include src/TestUtils/src/UITest.Analyzers/NUnit/NUnitTestMissingCategoryAnalyzer.cs — passed; workspace-load warnings were reported, not suppressed.
  • PowerShell Parser.ParseFile on both edited scripts, mandatory application revalidation, ruby -rpsych -e 'Psych.parse_file("eng/pipelines/common/ui-tests.yml")', and git diff --check — passed.
  • az pipelines run --id 313 --branch refs/heads/kubaflo-layout-ci-execution-servicing --org https://dev.azure.com/dnceng-public --project public --only-show-errors -o json — run 1658126; all Layout first/full-retry catalogs and final TRX identities qualified as above; residual Issue17389 remains failed.

Issues Fixed

No issue closure: execution-capacity follow-up to #39742, addressing the Layout full-retry timeout risk demonstrated in build 1657906. Does not fix #17389 and does not change either #39783 or #39784.

Keep the Layout umbrella and every test body, order, platform guard, assertion, retry, and deadline unchanged. Use three ordinary method-level matrix shards, retaining stateful fixtures together.

Repair the existing rebalancing skill to preserve mutually exclusive declaration locations and use its restored Roslyn lexer for comment-aware inventory, edits, and validation. All four managed NUnit clients retain exactly their baseline umbrella discovery with disjoint shard selections.

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Copilot-Session: e597e889-0fab-489d-890b-7db82183fb69
@kubaflo
kubaflo temporarily deployed to copilot-pat-pool October 31, 2026 23:31 — with GitHub Actions Inactive
@github-actions

Copy link
Copy Markdown
Contributor

🚀 Dogfood this PR with:

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

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

Or

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

@kubaflo
kubaflo temporarily deployed to copilot-pat-pool October 31, 2026 23:31 — with GitHub Actions Inactive
@azure-pipelines

This comment has been minimized.

@kubaflo
kubaflo temporarily deployed to copilot-pat-pool October 31, 2026 23:32 — with GitHub Actions Inactive
@github-actions

Copy link
Copy Markdown
Contributor

Skill Validation Results

@kubaflo — new skill validation results are available based on this last commit: dbc484e.
To request a fresh validation after new comments or commits, comment /evaluate-skills.

Overall Passed Static Passed LLM Skipped Skills 28 Agents 6

✅ Skill Validation Results — dbc484e · [release/11.0.1xx] Shard Layout UI tests to reduce full-retry timeout risk · 2026-10-31T23:33:08Z

✅ Static Checks Passed

Skills: 28 | Eval specs linted: 17

Full lint output
── .github/skills/agentic-labeler/tests/eval.vally.yaml
npm warn deprecated @opentelemetry/sdk-trace-node@2.12.0: Use @opentelemetry/sdk-trace package
npm warn deprecated @opentelemetry/sdk-trace-base@2.12.0: Use @opentelemetry/sdk-trace package
Vally collects pseudonymous usage telemetry (command name, version, outcome, duration, persistent device identifier (when available), and coarse OS/runtime info) to improve the product. No prompts, datasets, file paths, or arguments are collected.
Opt out any time by setting VALLY_TELEMETRY_OPTOUT=1 or DO_NOT_TRACK=1.
Learn more: https://aka.ms/vally/telemetry
✔ .github/skills/agentic-labeler/tests/eval.vally.yaml is valid
── .github/skills/analyze-sessions/tests/eval.vally.yaml
✔ .github/skills/analyze-sessions/tests/eval.vally.yaml is valid
── .github/skills/ci-fix/tests/eval.ownership.vally.yaml
✔ .github/skills/ci-fix/tests/eval.ownership.vally.yaml is valid
── .github/skills/ci-fix/tests/eval.vally.yaml
✔ .github/skills/ci-fix/tests/eval.vally.yaml is valid
── .github/skills/code-review/tests/eval.inline-findings.vally.yaml
✔ .github/skills/code-review/tests/eval.inline-findings.vally.yaml is valid
── .github/skills/code-review/tests/eval.producer-trace.vally.yaml
✔ .github/skills/code-review/tests/eval.producer-trace.vally.yaml is valid
── .github/skills/code-review/tests/eval.trim-aot.vally.yaml
✔ .github/skills/code-review/tests/eval.trim-aot.vally.yaml is valid
── .github/skills/code-review/tests/eval.vally.yaml
✔ .github/skills/code-review/tests/eval.vally.yaml is valid
── .github/skills/code-review/tests/hermeticity.vally.yaml
✔ .github/skills/code-review/tests/hermeticity.vally.yaml is valid
── .github/skills/code-review/tests/soak.capability.vally.yaml
✔ .github/skills/code-review/tests/soak.capability.vally.yaml is valid
── .github/skills/evaluate-pr-tests/tests/eval.vally.yaml
✔ .github/skills/evaluate-pr-tests/tests/eval.vally.yaml is valid
── .github/skills/pr-review/tests/eval.gh-auth.vally.yaml
✔ .github/skills/pr-review/tests/eval.gh-auth.vally.yaml is valid
── .github/skills/review-test-failures/tests/eval.vally.yaml
✔ .github/skills/review-test-failures/tests/eval.vally.yaml is valid
── .github/skills/try-fix/tests/eval.restore.vally.yaml
✔ .github/skills/try-fix/tests/eval.restore.vally.yaml is valid
── .github/skills/try-fix/tests/eval.vally.yaml
✔ .github/skills/try-fix/tests/eval.vally.yaml is valid
── .github/skills/verify-tests-fail-without-fix/tests/eval.protocol.vally.yaml
✔ .github/skills/verify-tests-fail-without-fix/tests/eval.protocol.vally.yaml is valid
── .github/skills/verify-tests-fail-without-fix/tests/eval.vally.yaml
✔ .github/skills/verify-tests-fail-without-fix/tests/eval.vally.yaml is valid

⏭️ LLM Evaluation: Skipped

No changed skills with eval specs found.

🔍 Full results and investigation steps

@kubaflo
kubaflo temporarily deployed to copilot-pat-pool October 31, 2026 23:34 — with GitHub Actions Inactive
@kubaflo
kubaflo temporarily deployed to copilot-pat-pool October 31, 2026 23:36 — with GitHub Actions Inactive
@kubaflo
kubaflo temporarily deployed to copilot-pat-pool October 31, 2026 23:36 — with GitHub Actions Inactive
@kubaflo

This comment has been minimized.

@azure-pipelines

This comment has been minimized.

@kubaflo kubaflo closed this Nov 3, 2026
kubaflo added a commit that referenced this pull request Nov 3, 2026
…39791)

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

This is an explicitly requested **servicing backport**, targeting
`release/11.0.1xx`, not a new alternative fix or a promotion merge.
Commit `36bfdc9cc4dcdd4bbc3cac35110595a93b7634ba` has the exact
servicing parent `df9c5fd8109abf9411146d2fe041a2d8967e64ed` from #39742.

Retain the existing owned fixture correction from #39779:
- Only `TestCases.HostApp/Issues/Issue30381.cs`,
`TestCases.HostApp/Resources/Raw/issue30381.html`, and
`TestCases.Shared.Tests/Tests/Issues/Issue30381.cs` from source commit
`7d49f3b58650e187f06ce29f80d2a1744c6aef23`; **do not import that
commit's unrelated `eng/devices/uitests-shared.cake` edit**.
- Retain the isolated HostApp-only Catalyst bundle correction from
`a5ac3382e878da00bec8ac59bc56cd196122f5d2`. The resulting three files
are byte-identical to those retained owner blobs; original authorship
and source/session provenance are recorded in the commit.

Replace the external GitHub destination with a five-line bundled
document, match the completed destination URL, and strictly assert all
five existing boolean wait results. Catalyst changes only the anchor
href to `Contents/Resources/issue30381.html`, matching its actual
bundled raw-asset location.

**Preserved:** the initial `HtmlWebViewSource` and null `BaseUrl`,
JavaScript link click, original 1-second sleep, every navigation/status
action and final assertion, existing Android/Windows compile guards,
categories, case definitions, goldens, waits, and budgets. No
dependency, promotion, runner, pipeline, project, or other follow-up
changes. Exactly **3 files, +22/−11**.

#### Supported-target qualification

The unchanged full/default `maui-pr-uitests` definition 313 branch run
[1658190](https://dev.azure.com/dnceng-public/public/_build/results?buildId=1658190)
used the exact pushed source, without parameter, variable, category,
matrix, configuration, or budget overrides. Each native lane's own
checkout log confirms `36bfdc9cc4dcdd4bbc3cac35110595a93b7634ba`.

`Issue30381.WebViewCanGoForwardShouldHaveValueAfterNavigation` passed on
the **first execution** in all three applicable default native lanes. No
test/task retry was executed in these WebView lanes.

| Actual target | Full WebView catalog | Issue30381 | Own receipt |
|---|---|---|---|
| MacCatalyst, CoreCLR on macOS **14.8.7** (`macos-14` image
`20260629.0276.1`) | **47/47 Passed** | Passed **32.420s** | [Native run
46161964](https://dev.azure.com/dnceng-public/public/_TestManagement/Runs?runId=46161964&_a=runCharts),
result 100039; raw log 4745, publication 4752 |
| iPhone 11 Pro CoreSimulator, actual **iOS 26.5** (`latest` lane),
CoreCLR | **53: 52 Passed, 1 existing NotExecuted** | Passed **6.453s**
| [Native run
46162166](https://dev.azure.com/dnceng-public/public/_TestManagement/Runs?runId=46162166&_a=runCharts),
result 100003; raw log 5067, publication 5081 |
| iPhone 11 Pro CoreSimulator, actual **iOS 18.5**, CoreCLR | **53: 52
Passed, 1 existing NotExecuted** | Passed **6.360s** | [Native run
46162092](https://dev.azure.com/dnceng-public/public/_TestManagement/Runs?runId=46162092&_a=runCharts),
result 100041; raw log 4956, publication 4991 |

The complete native catalogs and raw first-run case names match the
servicing baselines exactly: **Mac 47, iOS 53**, not both 47 and not the
owner's separate 49-case promotion catalog. The existing iOS
`Issue1583_1_WebviewTest` NotExecuted result remains explicit; this PR
adds no skips and does not claim every unrelated existing test executed.

The current servicing failure evidence was build 1658120/source
`19f886dbca0dadd7bd70141fe5859a04b48ff7b8`: Catalyst raw log 4626 showed
the same 47-case catalog failing **46 Passed/1 Failed** on both first
execution and the stock retry, at `App.Tap("UpdateStatusButton")`, test
line 28, after external navigation, with a **45s Appium RPC timeout**.
Publication 4628/native run 46160090 agreed. Those fixture/runner paths
are unchanged between that source and this backport's servicing parent.
The separately bounded 15s diagnostic timeout is not an increased test
budget. Earlier passing runs and the owner's receipts are not
substituted for this backport's own native acceptance; no Catalyst
ablation certification is claimed.

Both actual compiled app members in this build's
`ui-tests-samples-coreclr` artifact 50872337 were downloaded and
verified against the tracked asset: iOS `.app/issue30381.html` and
Catalyst `.app/Contents/Resources/issue30381.html`, each **130 bytes**,
SHA-256
`140056173bca657a3b6ccde00de0b4a1fb0b07ea419856ad7be61352784d728d`.
Existing `MauiAsset` wildcard packaging is unchanged.

#### Commands and local limits

Exact branch qualification command — successfully queued run 1658190;
native WebView results are above, **overall run failed** for the
residuals below:

```sh
az pipelines run --id 313 --branch refs/heads/kubaflo-webview-history-fixture-servicing --commit-id 36bfdc9 --org https://dev.azure.com/dnceng-public --project public --only-show-errors -o json
```

Exact managed-only compile commands — both **passed, 0 warnings/0
errors**, using the already verified SDK 11.0.100/a586537b38:

```sh
env -u DOTNET_ROOT /Users/kubaflo/Projects/copilot-worktrees/maui/kubaflo-potential-tribble/.dotnet/dotnet build src/Controls/tests/TestCases.Mac.Tests/Controls.TestCases.Mac.Tests.csproj -c Release -f net11.0 -p:MauiPlatforms=net11.0 -v minimal
env -u DOTNET_ROOT /Users/kubaflo/Projects/copilot-worktrees/maui/kubaflo-potential-tribble/.dotnet/dotnet build src/Controls/tests/TestCases.iOS.Tests/Controls.TestCases.iOS.Tests.csproj -c Release -f net11.0 -p:MauiPlatforms=net11.0 -v minimal
```

The exact HostApp fixture also compiled against real managed MAUI
assemblies with and without `MACCATALYST`, each 0 warnings/0 errors.
These local checks are **not native HostApp certification**. The SDK has
no installed workloads; the required Apple SDK 27 toolchain is
unavailable locally. No toolchain downgrade/bypass, physical Apple
device, or local host-macOS XCTest execution was used. Native acceptance
comes only from the actual CI receipts above.

#### Remaining CI failures — not fixed or hidden here

Run 1658190 completed **Failed** at `2026-11-01T05:04:35Z`; this is
**not an overall green-CI or merge-ready claim**. All final
non-successful jobs were inspected separately:
- **Windows Shell2:** raw 6040/native run 46166972; first and stock
retry each **197: 181 Passed, 3 Failed, 13 NotExecuted**.
`VerifyShellSearch_CancelButtonColor` and
`VerifyShellSearch_CharacterSpacing` retain 0.76% visual differences;
`VerifyShellSearch_TextTransformUppercase` retains 0.70%. Those separate
oracles/snapshots are the subject of owned follow-up #39783 and are
untouched here.
- **MacCatalyst Layout:** raw 6061/native run 46170266; the complete
first run was **193: 188 Passed, 1 Failed, 4 NotExecuted**, failing
`Issue17389.ValidateBackgroundColorDoesNotAffectInputTransparent`
because RedGrid tap count remained false. The unchanged full 193-case
stock retry was canceled at the existing **180-minute job limit**, with
no completed retry summary. Publication 6063 retained the actual
first-run failure; missing retry completion is not treated as a pass.
Layout execution is a separate follow-up (#39786); neither that runner
nor Issue17389 is changed here.

Open/recent merged upstream and servicing fixture history were rechecked
before publication; there is no servicing duplicate of this three-file
correction. No fresh CI retry was queued to force green, no unrelated
follow-up was imported, and no merge is requested by this qualification
report.

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

Fixes the supported-target **Issue30381 UI fixture timeout/ignored
readiness assertions** observed in servicing CI. Related to #30381; its
original product history fix is already present from #33183. This is a
fixture backport, not a new product fix or a reproduction-only PR.

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

This branch was previously deployed

1 inactive deployment
copilot-pat-pool — dbc484eb Deployed Oct 31, 2026 by kubaflo via conclusion #2600
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.

1 participant