Skip to content

[inflight] Wait for Shell TitleView geometry after rotation - #39162

Closed
kubaflo wants to merge 1 commit into
inflight/currentfrom
kubaflo-rotation-geometry-flake
Closed

kubaflo wants to merge 1 commit into
inflight/currentfrom
kubaflo-rotation-geometry-flake

Conversation

@kubaflo

@kubaflo kubaflo commented Oct 6, 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

Test-only synchronization correction for Issue35844.ShellTitleViewResizesOnRotation, intentionally targeting inflight/current under maintainer direction. Only the existing shared test file changes; no production code, shared helpers, pipeline configuration, category, or platform guards change.

WaitForElement("TitleViewGrid") checks presence, not completed rotation layout. The title view remains present during rotation. Replace the post-rotation presence waits with the existing predicate overload, reacquiring the element and sampling its width on each observation. Use its unchanged default 15-second deadline and polling policy. Landscape readiness requires growth greater than 50; portrait readiness requires return within 5 of the initial width. Retain all three original assertions and their exact tolerances. Restore portrait in finally even if landscape synchronization or an assertion fails. No whole-test retry, added sleep, larger timeout, skip, or quarantine.

Evidence: original maui-pr-uitests build 1624171, source 4303c1707e5609faef3a769ab4434f3d48018cd5, iOS Mono 18.5 Shell leg. Original runner log 6520 reports return-to-portrait failures in both runner attempts: expected 343 +/- 5, observed 131 then 134. Published run 45016700, result 100192, matches the second attempt's exact 134 error. Publication log 6528 binds that leg to run 45016700. The same result's teardown page-source attachment 7 subsequently shows portrait 375x812 and TitleViewGrid width 343. The attachment's ingestion time is not asserted to be its capture time. This establishes later correct geometry for the failed case, not a claim that the correction has already cured every historical failure.

Validation (managed/static only; no local native/device/UI/Appium/XCTest execution or provisioning):

  • dotnet format Microsoft.Maui.sln --no-restore --include src/Controls/tests/TestCases.Shared.Tests/Tests/Issues/Issue35844.cs --exclude Templates/src --exclude-diagnostics CA1822 --verbosity quiet — passed.
  • dotnet format whitespace Microsoft.Maui.sln --no-restore --include src/Controls/tests/TestCases.Shared.Tests/Tests/Issues/Issue35844.cs --verify-no-changes --verbosity quiet — passed.
  • git diff --check — passed.
  • dotnet build src/Controls/tests/TestCases.iOS.Tests/Controls.TestCases.iOS.Tests.csproj -p:IncludeAndroidTargetFrameworks=false -p:IncludeIosTargetFrameworks=false -p:IncludeMacCatalystTargetFrameworks=false -p:IncludeWindowsTargetFrameworks=false -p:IncludeTizenTargetFrameworks=false -p:IncludeMacOSTargetFrameworks=false -v:q — passed, zero warnings/errors.
  • dotnet build src/Controls/tests/TestCases.Android.Tests/Controls.TestCases.Android.Tests.csproj -p:IncludeAndroidTargetFrameworks=false -p:IncludeIosTargetFrameworks=false -p:IncludeMacCatalystTargetFrameworks=false -p:IncludeWindowsTargetFrameworks=false -p:IncludeTizenTargetFrameworks=false -p:IncludeMacOSTargetFrameworks=false -v:q — passed, zero warnings/errors.

Initial managed build attempts encountered missing assets (NETSDK1004) and an overly broad TFM override (NETSDK1005 for netstandard dependencies); the successful commands above restore the proper managed dependency graph with all native targets disabled.

CI efficacy remains pending; keep draft. Required evidence is original runner attempts plus actual published results showing this exact test executed on iOS 18.5, iOS latest, and applicable Android modes. Original definition 313's root parameters expose BuildEverything, native-AOT toggles, and pools, but no case/category/platform execution filter. categoryGroupsToTest is only a nested template parameter. PR defaults cover iOS latest, not 18.5; enabling BuildEverything expands the whole matrix. No broad run, blind retry, or pipeline change is included. No automatic merge or branch ports.

Issues Fixed

Related to #35844 and #38333. No automatic issue closure: #38333 tracks historical net11 failures (including observed width 48), not the exact current inflight width-134/teardown evidence. No main/net11/release port has been validated.

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
@kubaflo
kubaflo temporarily deployed to copilot-pat-pool October 6, 2026 03:21 — with GitHub Actions Inactive
@kubaflo
kubaflo temporarily deployed to copilot-pat-pool October 6, 2026 03:21 — with GitHub Actions Inactive
@azure-pipelines

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

@kubaflo
kubaflo temporarily deployed to copilot-pat-pool October 6, 2026 03:22 — with GitHub Actions Inactive
@kubaflo
kubaflo temporarily deployed to copilot-pat-pool October 6, 2026 03:23 — with GitHub Actions Inactive
@kubaflo
kubaflo temporarily deployed to copilot-pat-pool October 6, 2026 03:25 — with GitHub Actions Inactive
@kubaflo
kubaflo temporarily deployed to copilot-pat-pool October 6, 2026 03:25 — with GitHub Actions Inactive
@kubaflo kubaflo closed this Oct 6, 2026
kubaflo added a commit that referenced this pull request Oct 29, 2026
Reuse the predicate-based readiness correction from closed PR #39162, adapting it to the release branch's existing Shell shard. The element remains present while rotation layout changes, and NUnit 4 records transient assertion failures even when RetryAssert later succeeds.

Keep the default readiness deadline, all three original width assertions/tolerances, category, and platform guards. Reacquire geometry during both transitions and restore portrait in finally. Current failed-case teardown already shows the correct 343-point width; matching NUnit 4.0.1 controls confirm caught transient assertions fail while predicate readiness passes.

Validation: official Android HostApp runner executed the exact ShellTitleViewResizesOnRotation contract successfully with valid passing TRX; targeted format and diff checks pass. iOS CI efficacy remains pending, not inferred from Android.

Backport-of: e33edd4
Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Copilot-Session: 8095f925-4a70-4d95-9e63-cd33cd5e4cd0
@github-actions github-actions Bot locked and limited conversation to collaborators Nov 6, 2026

This branch was previously deployed

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

1 participant