Repository navigation
[iOS] Restore SoftInput layout after modal dismissal - #37708
Conversation
### Description of Change This pull request makes a minor update to the UI test pipeline configuration - Pipeline configuration simplification: * Removed the **duplicate** code that set the `$deviceType` variable and appended the `--skin` argument to the test command in `eng/pipelines/common/ui-tests-steps.yml`. The same code was already added at [line 133](https://github.com/dotnet/maui/blob/main/eng/pipelines/common/ui-tests-steps.yml#L133) as part of [PR #33409](#33409). The duplicate code was also added at [line 156](https://github.com/dotnet/maui/blob/main/eng/pipelines/common/ui-tests-steps.yml#L156) as part of [PR #31631](#31631).
<!-- Please let the below note in for people that find this PR --> > [!NOTE] > Are you waiting for the changes in this PR to be merged? > It would be very helpful if you could [test the resulting artifacts](https://github.com/dotnet/maui/wiki/Testing-PR-Builds) from this PR and let us know in a comment if this change resolves your issue. Thank you! ### Description of Change This follow-up repairs the skill-evaluation failures exposed by #36799 and hardens the credentialed Vally evaluator so skill regressions, infrastructure failures, incomplete trials, parser differences, and reporting-side failures are classified accurately. ### Root Causes - `try-fix-capabilities` could exceed its numeric threshold while remaining red because Vally independently hard-fails execution errors and incomplete trials. Aggregate score never overrides those vetoes. - `pr-review-gh-auth` routed correctly, but its isolated fixture omitted the phase-specific unauthenticated public-GitHub fallback required by the grader. - Later failures exposed evaluator defects rather than skill regressions: PAT authentication did not prove model entitlement, model discovery did not initially match Vally 0.12's effective execution plan, matrix-only token offsets removed run-level rotation entropy, and parallel legs amplified shared PAT contention. - Run `31518503277` restored the synthetic target correctly, but one agent deleted Vally's pre-existing untracked `try-fix/` input to force an empty `git status`; Vally correctly treated that deletion as workspace drift. - Run `31524806025` completed every evaluation successfully, but a transient GitHub API fetch failure occurred before the comment step exported its already-computed verdict, making reporting red despite green suites. - Review found parser-semantic splits between Psych and Vally's pinned `yaml@2.9.0`: duplicate keys could be first-wins in AST policy checks but last-wins at runtime, while YAML merge keys/tags were interpreted differently and could hide executable evaluator fields from trusted validation. ### Changes - Replaced unreliable operational probes with bounded fixtures while preserving repeated trials, behavioral rubrics, strict thresholds, and hard-veto semantics. - Added the unauthenticated GitHub fallback fixture and deterministic skill-invocation/tool-call graders. - Upgraded to Vally 0.12 and made aggregation fail closed on execution errors, incomplete/skipped stimuli, malformed output, invocation failures, and missing mandatory coverage. - Added trusted fixture preparation plus path, symlink, Git, environment, executable, attachment, hook, settings, MCP, executor, and repository-control isolation. - Serialized matrix legs while retaining three trials per stimulus. - Made model discovery use only executed `eval*.vally.yaml` specs and Vally 0.12's effective executor and prompt-grader fields; implicit prompt-grader fallbacks are rejected. - Added model-aware PAT selection with run/rerun/matrix-distributed rotation and exact sentinel probes through the pinned evaluator runtime; reused it in the advisory soak. - Clarified that `try-fix` must preserve every pre-existing untracked path, including evaluator-loaded skill inputs. Trusted validation enforces both the skill contract and restoration fixture instruction while retaining `diff-empty` as the method-independent veto. - Exported the authoritative evaluation verdict before PR-comment API calls, added bounded API retries, and made comment publication advisory so transient GitHub failures cannot erase or invert the commit status. - Reduced soak workflow permissions to `contents: read` and made `/user` transport failures explicit without exposing PATs. - Made required-stimulus policy fail closed when a configured stimulus is renamed or removed, and bound each fixture marker/ref to the YAML stimulus that owns it so a correctly named decoy cannot satisfy the policy. - Parse each eval spec once and reject duplicate semantic mapping keys, textual YAML merge keys, and normalized explicit merge tags recursively before loading. This prevents Psych/Vally parser disagreement from bypassing prompt, ref, repository-control, or executable-environment validation. - Limited frozen-worktree test detection to full immutable commit IDs; ordinary explicit branch bases continue using authoritative PR file metadata. - Added deterministic regressions for model planning, PAT distribution and transport errors, deleted evaluator controls, host-only XAML invocation, evaluator-owned input preservation, required-stimulus rename/decoy/parser bypasses, branch-versus-immutable test detection, and reporting-side verdict preservation. ### Validation Current head: `fd8f3d543e1a1eb90e8432a0cbae07a18b52dbdd`. - Exact-head [Skill Validation run 31807806898](https://github.com/dotnet/maui/actions/runs/31807806898), [`maui-pr` build 1553690](https://dev.azure.com/dnceng-public/public/_build/results?buildId=1553690), Build Analysis, CLA, static checks, Pester, and the hermeticity gate are green. - All evaluated suites passed. Key suites: `try-fix-restore-protocol` **1.00 / 1.00**, `try-fix-capabilities` **0.93 / 0.80**, `pr-review-gh-auth` **1.00 / 0.80**, and `verify-tests-fail-without-fix-capabilities` **0.94 / 0.87**. - Local trusted evaluator/reporting harness: **70 tests, 306 assertions, 0 failures/errors/skips**. - All **16** Vally specs pass strict lint with pinned `@microsoft/vally-cli@0.12.0`. - All **8** skill test directories pass trusted validation and resolve the effective plan to `gpt-5.6-sol` plus `claude-opus-5`; non-eval soak/hermeticity specs do not contaminate matrix selection. - Ruby syntax, Bash syntax, ShellCheck, workflow YAML parsing, Pester (**8 passed**), and `git diff --check` pass. - Final whole-diff review found no high-confidence correctness or security blockers; all review threads are resolved. - `pull_request_target` executes trusted workflow/helper code from default `main`; candidate selector/reporting helper behavior is therefore covered deterministically here and becomes the credentialed trusted path after merge. ### Issues Fixed Follow-up to #36799. --------- Co-authored-by: PureWeen <223556219+Copilot@users.noreply.github.com> Co-authored-by: Vally Fixture <vally-fixture@example.invalid> Copilot-Session: b9f7de2c-86d7-47cd-8ac8-aeff57d0b0f3 Copilot-Session: 806beb89-5041-4c7b-bcbf-998d6fbab8dc
<!-- Please let the below note in for people that find this PR --> > [!NOTE] > Are you waiting for the changes in this PR to be merged? > It would be very helpful if you could [test the resulting artifacts](https://github.com/dotnet/maui/wiki/Testing-PR-Builds) from this PR and let us know in a comment if this change resolves your issue. Thank you! ### Description of Change Extend the existing `release-readiness` skill with deterministic, copy-ready Preview and servicing-release handoff generation from readiness JSON plus separately verified public evidence. - Keep missing or unverified release facts as explicit `TBD` values and enforce public-safe URLs, structured metadata, NuGet configuration, and Markdown output. - Correct Preview workload installation guidance with package-source mapping and the prior-major public compatibility feed while keeping workload-set packages isolated to `dotnet-workloads`. - Add focused regression coverage and run it in the release-readiness validation workflow. The renderer is a projection of the existing readiness engines rather than a second survey, so Preview and SR semantics remain distinct while sharing one public handoff format. ### Safety and Architecture - Public output requires an explicit JSON boolean `PublicEvidence: true`. - The renderer rebuilds NuGet XML from an allow-list and accepts only public `dnceng/public` Azure Artifacts feeds or the exact NuGet.org service index. - Public evidence URLs, structured build metadata, timestamps, Markdown, local paths, credential-shaped values, and owner/sign-off prose are validated or omitted. - Workload-set packages map only to `dotnet-workloads`; component and compatibility packages resolve through their appropriate public feeds. ### What Not to Do - Do not use the handoff renderer as a second readiness survey or let it select a newer build implicitly. - Do not copy private source-page content, credentials, owners, or sign-offs into public evidence. - Do not map unrelated component packages to `dotnet-workloads`; missing upstream packages can otherwise surface as misleading authorization failures. ### Validation - `pwsh -NoProfile -File .github/skills/release-readiness/tests/Test-ReleaseHandoff.ps1` - `pwsh -NoProfile -File .github/skills/release-readiness/tests/Test-ReleaseReadiness.ps1 -SkipE2E` ### Issues Fixed N/A --------- Co-authored-by: PureWeen <223556219+Copilot@users.noreply.github.com> Copilot-Session: 3db5742d-7e40-4a23-a3ea-de3bc3f0848e
<!-- 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! ### Root Cause MAUI's release flow implemented NuGet.org authentication, retries, conflict handling, quota rotation, and publishing in `eng/scripts/push_nuget_org.ps1`. Gather and push failures could also continue without failing the release. The repository additionally carried a duplicate internal release YAML. ### Description of Change This makes `eng/pipelines/ci-official-release.yml` the canonical release pipeline and moves package publication to the approved 1ES release path: - Resolve the BAR build once and run one fail-fast `darc gather-drop`, limited to BAR NuGet package assets rather than unrelated symbol/blob assets. - Preserve package include/exclude behavior and validate non-empty workload-pack and workload-manifest sets. - Produce separate SBOM-backed `MauiPacksForNuGet` and `MauiManifestsForNuGet` artifacts. - Publish from production `releaseJob` jobs with `1ES.PublishNuget@1`, `useDotNetTask: false`, and the protected `nuget.org (dotnetframework)` service connection. - Require workload packs to publish and become resolvable before manifest approval is available. - Remove `maui-release-internal.yml`, `push_nuget_org.ps1`, raw API-key inputs, and the arbitrary feed URL. - Document the canonical release and recovery procedure. No public API changes are involved. ### Duplicate and Partial-Publish Recovery Internal build [3050066](https://dev.azure.com/dnceng/internal/_build/results?buildId=3050066) proved that the service connection authenticates, but also proved that the external-feed-backed task fails on HTTP 409 even with `allowPackageConflicts: true`. Task-level retries are unsafe after a partial batch because the retry can immediately encounter duplicates created by the first attempt. The final implementation therefore: - Generates an `expected-packages.json` identity manifest for each immutable artifact. - Rejects duplicate package identities, duplicate package file names, and unexpected `.nupkg` files before publication. - Verifies the copied helper's SHA-256 before execution. - Filters packages already visible through NuGet.org's flat-container API before publishing. - Uses separate recovery-only `nugetAlreadyAttemptedPackFilters` and `nugetAlreadyAttemptedManifestFilters` parameters for packages accepted but not yet visible during NuGet.org validation lag. - Runs `1ES.PublishNuget@1` only when packages remain and does not use task-level retries. - Verifies the complete expected package set with transient-query retries and a 30-minute deadline. ### Internal Validation - Internal branch: [`copilot/replace-custom-nuget-publishing`](https://dev.azure.com/dnceng/internal/_git/dotnet-maui?version=GBcopilot%2Freplace-custom-nuget-publishing) - Final internal commit: [`adf2ad774cd3a2092450df153e6b46a09a127552`](https://dev.azure.com/dnceng/internal/_git/dotnet-maui/commit/adf2ad774cd3a2092450df153e6b46a09a127552?refName=refs%2Fheads%2Fcopilot%2Freplace-custom-nuget-publishing) - Build 3050066 confirmed the registered `dotnet-maui-release` definition already executes the canonical YAML, so no pipeline-definition migration is needed. - Build [3050237](https://dev.azure.com/dnceng/internal/_build/results?buildId=3050237) showed that a fail-fast unfiltered gather stops on a missing Foldable symbol blob even though the shipping NuGet package downloads successfully. The gather now uses Darc's slash-free package-asset convention to exclude symbol/blob paths while remaining fail-fast for every publishable package. - Build [3050279](https://dev.azure.com/dnceng/internal/_build/results?buildId=3050279) confirmed the package-only gather succeeds and the `nuget.org (dotnetframework)` connection authenticates: it published `Microsoft.AspNetCore.Components.WebView.Maui.10.0.100`, then NuGet.org rejected `Microsoft.AspNetCore.Components.WebView.Maui.Msi.arm64.10.0.100` with HTTP 403. The first package lists `dotnetframework` as an owner; the MSI package lists only `Microsoft` and `Xamarin`. This is a NuGet.org package-ownership/service-connection blocker, not a pipeline task-wiring failure. - Pester 5.9.0: 1,668 tests passed, including 15 package-filtering/retry tests and 3 release-pipeline regression tests. - PowerShell parsing, YAML parsing, documentation spellcheck, and whitespace validation pass. Before production use, either the service-connection identity must be granted ownership of every MAUI package (including Xamarin-owned MSI packages), or the release pipeline must be given an approved Xamarin-scoped NuGet.org service connection. Once that external credential issue is resolved, rerun the same commit and BAR selection; the recovery logic will omit the package already published by build 3050279 and continue with the remaining set. ### What Not to Do - Do not rely on `allowPackageConflicts` for an external NuGet.org feed; build 3050066 proved it does not make 409 responses successful. - Do not add task-level retries around a multi-package publish; they are not safe after partial publication. - Do not restore broad `--continue-on-error` gather behavior; exclude non-release symbol/blob assets and keep publishable package gathering fail-fast. - Do not gather a different BAR drop while recovering a partial release; rerun the same commit and selection filters. - Do not exclude the Xamarin-owned MSI packages to make the build green; they are shipping assets and require a credential with matching NuGet.org ownership. ### Issues Fixed Fixes #36567 --------- Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com> Co-authored-by: rmarinho <1235097+rmarinho@users.noreply.github.com> Co-authored-by: Rui Marinho <me@ruimarinho.net> Copilot-Session: 150fe76a-707e-48ca-9e9d-38bfccead829
<!-- Please let the below note in for people that find this PR --> > [!NOTE] > Are you waiting for the changes in this PR to be merged? > It would be very helpful if you could [test the resulting artifacts](https://github.com/dotnet/maui/wiki/Testing-PR-Builds) from this PR and let us know in a comment if this change resolves your issue. Thank you! ### Description of Change Enhance local net11 preview release-readiness runs with automatic health checks for the internal official `dotnet-maui` Azure DevOps pipeline (definition 1095, `dnceng/internal`). The local release-readiness skill/agent explicitly requests enriched output, then independently discovers builds for `refs/heads/net11.0` and the evaluated release branch when it exists. It requests a bounded, queue-time-ordered five-build window and prefers the newest exact-HEAD build, then scans in queue order while skipping candidates proven stale and buffering indeterminate evidence. Disagreeing possible outcomes remain UNKNOWN; a later proven-current failure remains RED only when every buffered candidate is also a completed failure/cancellation. A terminal window containing only same-branch failed/canceled indeterminate builds is `failed-or-stale` and BLOCKED because every possible build is either red or stale. The check reports build status, ID/number, source SHA, and URL. Current successful builds are green; failures/cancellations are red; partial success is a WATCH state requiring manual review; running builds are in progress; builds behind the newest trigger-eligible commit are stale; missing or malformed evidence is unknown. When branch HEAD advances, bounded local Git evaluates exact first-parent history and merge-result changes against `eng/pipelines/ci-official.yml`. Successful no-op or excluded-only advances remain current, while add/revert and merge-result-only source changes still require a newer official build. A conclusive Git non-ancestor result is stale; unavailable Git evidence remains unknown unless every possible same-branch result is independently blocking. ### Public/internal boundary Direct script output remains public-safe by default. GitHub Actions skips the internal query before invoking Azure CLI, while the local skill/agent explicitly passes `'-PublicSafe:$false'` for enriched artifacts that remain local. Public-safe output omits internal branch records, build IDs/numbers, SHAs, URLs, and the local-only table. Missing local Azure authentication fails open. Partial failures preserve successful branch evidence, so known red/stale results cannot disappear. Azure, GitHub, and local Git subprocesses have bounded execution; process exit and redirected-output draining share the same deadline. Local Git runs from the explicit repository root, performs a bounded fetch of only the evaluated branch when objects are absent, and maps unavailable currency evidence through the outcome lattice rather than assuming current or stale. Windows `.cmd`/`.bat` Azure CLI launchers run through `ComSpec` with structured arguments. Manual build overrides are accepted only when the build belongs to definition 1095, and Azure-controlled build numbers are constrained to the expected numeric format before entering agent-facing output. ### Tests - `pwsh -NoProfile -File .github/skills/release-readiness/tests/Test-ReleaseReadiness.ps1` — 2,276 passed, 0 failed - PowerShell parser validation for the helper, preview engine, and test harness - Live local smoke successfully queried both requested refs through the enriched local path - First-parent empty-commit, same-tree merge, merge-result source change, add/revert, non-ancestor, missing-object, exact/proven-current candidate selection, old-SHA retry, uncertain-failed/older-green UNKNOWN, uncertain-failed/older-failed RED, blank-source-SHA/canceled certainty, terminal failed-or-stale Details/NextAction, public-safe generic BLOCKED rendering, explicit-CWD, Windows launcher, trigger-exclusion, exact-path, timeout, auth-ordering, malformed-output, and public-redaction fixtures - GitHub Actions/public-safe smoke confirms the internal fetcher is not invoked and internal coordinates remain absent ### Design tradeoffs - Azure CLI remains the local adapter so public automation gains no credentials or SDK dependency. - A five-build, server-ordered window keeps the query bounded; selection skips conclusively stale candidates, buffers uncertainty, and reports only outcomes common to every possible currency result. - Certain terminal blocking uses a distinct `failed-or-stale` classification rather than falsely claiming the selected build is current; local guidance restores currency evidence before choosing failure repair versus a current-HEAD rerun, while public-safe output remains generic. - Local Git inspects exact first-parent commit and merge-result paths rather than an aggregate compare diff, preventing second-parent history and net-zero merges from producing false stale results while preserving add/revert evidence. - Missing local objects trigger one bounded fetch of the evaluated ref; unresolved evidence remains UNKNOWN unless every possible outcome blocks, while a conclusive non-ancestor result is stale. - Total authentication unavailability is skipped; partial access loss retains observed branch evidence. - `-InternalBuildId` remains a diagnostic override, but normal local skill/agent runs use branch-based discovery. ### Issues Fixed N/A --------- Co-authored-by: PureWeen <223556219+Copilot@users.noreply.github.com> Copilot-Session: 0e39d9d4-19e4-45f5-80f1-2bb3035c18c9
Removes the repository-owned VG20 import and synchronizes the relevant Arcade credential-removal changes on `main`. Tracked by https://dev.azure.com/dnceng/internal/_workitems/edit/12131 Copilot-Session: e890b71a-c1aa-416c-a15c-be8da9fdd9b4
### Description of Change Replace MAUI's long-lived `dn-bot-ceapex-package-r` dependency with a short-lived Entra token for OneLocBuild package restores. - Acquire the Azure DevOps token through the existing DevDiv `dnceng-onelocbuild-ceapex` workload-identity service connection. - Reuse Arcade's shared `get-federated-access-token.yml` helper. - Pass the resulting secret `CeapexEntraToken` to OneLocBuild for the ceapex LCL/LocTools feeds. - Keep the existing GitHub PR authentication unchanged. The DevDiv service connection is configured for workload identity federation and MAUI pipeline 13330 is authorized to use it. ### Validation - Parsed the updated pipeline as YAML. - Verified the shared federated-token helper exists on this branch. - Verified the legacy ceapex PAT is no longer referenced by MAUI's repo-owned localization pipeline. ### Issues Fixed Tracks [dnceng work item 10151](https://dev.azure.com/dnceng/internal/_workitems/edit/10151). Copilot-Session: 80f6a0c6-7947-4200-bb78-7f0fc01d671a
…atic event with WeakEventManager (#37645) <!-- 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. !!!!!!! --> ### Issue Details When a page or view model subscribes to BindingDiagnostics.BindingFailed (a helpful event that tells you when a data binding fails) and forgets to unsubscribe, that page never gets cleaned up from memory. Every page it holds — plus its images, view models, and data — stays alive until the app closes. Over time, the app uses more and more memory. ### Root Cause BindingFailed is a static event, which means it lives for the whole life of the app. Normal C# events keep a strong reference to whoever subscribed, so as long as the event is alive, its subscribers stay alive too. Since this event never goes away, any subscriber that doesn't call -= is stuck in memory forever. ### Description of Change Switched BindingFailed from a normal event to one backed by WeakEventManager, which keeps only a weak reference to subscribers — so the garbage collector can clean them up even if someone forgets to unsubscribe. Validated the behavior in the following platforms - [x] Android - [x] Windows - [x] iOS - [x] Mac ### Issues Fixed Fixes #37245 ### Fix reference [maui/src/Controls/src/Core/Application/Application.cs at bf62313 · …](https://github.com/dotnet/maui/blob/bf62313db2cecf3215f10c353720b341aba0a4ee/src/Controls/src/Core/Application/Application.cs#L263) [maui/src/Controls/src/Core/Command.cs at bf62313 · dotnet/maui](https://github.com/dotnet/maui/blob/bf62313db2cecf3215f10c353720b341aba0a4ee/src/Controls/src/Core/Command.cs#L128) [maui/src/Controls/src/Core/ImageSource.cs at bf62313 · dotnet/maui](https://github.com/dotnet/maui/blob/bf62313db2cecf3215f10c353720b341aba0a4ee/src/Controls/src/Core/ImageSource.cs#L175) ### Output ScreenShot |Before|After| |--|--| | <video src="https://github.com/user-attachments/assets/86c6d76d-a051-458b-beb3-6c254545f87a" >| <video src="https://github.com/user-attachments/assets/e3b02ce7-71a7-4e90-94e0-dd6587c8e3cf">|
<!-- 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! ## Summary - regenerate all 14 Copilot-based agentic workflows with gh-aw v0.86.2 - stage the installed Copilot CLI in a portable runner-local path instead of invoking `/usr/local/bin/copilot` - explicitly disable shell access in the automatic issue/PR labeler, as required when `min-integrity: none` - adopt gh-aw v0.86.2's intentional disabled-expiry sentinel for action-failure issues when no maintenance workflow exists ## Root cause The failing runs install Copilot CLI successfully, but gh-aw v0.85.4 then invokes `/usr/local/bin/copilot`. That path no longer exists on the hosted runner, so the engine exits with `ENOENT` before producing output or making a model request. gh-aw v0.86.2 includes the upstream path-portability fix and resolves the installed executable from `PATH`. The same generated path affected every Copilot workflow, including the labeler, whose failure reporting is intentionally disabled. Regeneration also incorporates [github/gh-aw#51425](github/gh-aw#51425). Because this repository does not generate an `agentics-maintenance.yml` consumer for the implicit action-failure expiry, all 14 lockfiles now set `GH_AW_ACTION_FAILURE_ISSUE_EXPIRES_HOURS` to `"0"`. In gh-aw v0.86.2, explicit `0` means expiration is disabled; it prevents unenforceable expiry markers and does not make failure issues expire immediately. ## Validation - `gh aw compile --strict --validate --actionlint --no-emit` - verified all 14 lockfiles use gh-aw v0.86.2 and portable Copilot staging - verified no generated workflow references `/usr/local/bin/copilot` - verified all 14 generated locks use gh-aw's `"0"` disabled-expiry sentinel consistently No existing open MAUI PR addresses this gh-aw/Copilot path failure. Fixes #37430 Fixes #37431 Fixes #37432 Fixes #37435 Fixes #37442 --------- Co-authored-by: Copilot CI <copilot-ci@microsoft.com> Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> Copilot-Session: 74cff858-a5a6-486e-a1d3-1d516fc3bdaa Copilot-Session: d00747b7-96f3-4e7a-8dfb-e3a48db04b2d
<!-- Please let the below note in for people that find this PR --> > [!NOTE] > Are you waiting for the changes in this PR to be merged? > It would be very helpful if you could [test the resulting artifacts](https://github.com/dotnet/maui/wiki/Testing-PR-Builds) from this PR and let us know in a comment if this change resolves your issue. Thank you! ## Description Adds .NET MAUI 10.0.100 and 11.0.0-preview.7 to both version selectors in the bug-report issue form. This lets users report issues against the released SR10 build and the active .NET 11 Preview 7 version. ---------
) <!-- 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! ### Problem The internal `dotnet-maui` official build currently fails to compile the pipeline YAML, before any stage runs: ``` /eng/pipelines/common/variables.yml (Line: 81, Col: 7): Expected at least one key-value pair in the mapping ``` ### Cause #37589 removed `- group: Publish-Build-Assets`, but that group was the only child of the conditional that enclosed it, leaving an empty block behind: ```yaml - group: AzureDevOps-Artifact-Feeds-Pats - ${{ if eq(variables['Build.DefinitionName'], 'dotnet-maui') }}: # <- nothing under it ``` Azure DevOps requires a conditional insertion block to contain at least one entry, so template expansion fails outright. ### Why PR validation stayed green The empty block is nested inside an outer guard: ```yaml - ${{ if or(eq(variables['Build.DefinitionName'], 'dotnet-maui'), eq(variables['Build.DefinitionName'], 'dotnet-maui-build')) }}: - ${{ if notin(variables['Build.Reason'], 'PullRequest') }}: ``` For the public `maui-pr` definition that outer condition is false, so Azure DevOps short-circuits and never expands the inner block. The breakage is therefore invisible to PR CI and only manifests on the internal official build. ### Fix Remove the empty conditional. No file in the repository references the `Publish-Build-Assets` variable group any more, so it is deleted outright rather than repopulated. ### Validation - `eng/pipelines/common/variables.yml` parses as valid YAML. - Swept all 39 YAML files under `eng/pipelines/` for conditional blocks with no body — this was the only one. - `grep` for `Publish-Build-Assets` across `eng/` and `.github/` returns no remaining references. This blocks the internal build entirely, so it is worth merging ahead of larger infra work such as #36257 (which carries the same one-line fix, but cannot be validated on the internal pipeline until this is on `main`). Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Restore keyboard state through the shared cleanup path so detached MauiView instances schedule the layout pass needed to clear stale SoftInput insets. Add an iOS UI regression test that dismisses a keyboard-visible modal repeatedly and verifies the underlying page returns to its original height. Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com> Copilot-Session: 13177bf1-5b66-4f7e-be17-ed14d1d3f6f0
|
🚀 Dogfood this PR with:
curl -fsSL https://raw.githubusercontent.com/dotnet/maui/main/eng/scripts/get-maui-pr.sh | bash -s -- 37708Or
iex "& { $(irm https://raw.githubusercontent.com/dotnet/maui/main/eng/scripts/get-maui-pr.ps1) } 37708" |
|
Azure Pipelines: Successfully started running 1 pipeline(s). There may be pipelines that require an authorized user to comment /azp run to run. |
There was a problem hiding this comment.
Pull request overview
This PR fixes an iOS (and likely MacCatalyst, since it shares the iOS platform view code) regression where a MauiView configured with SafeAreaEdges.SoftInput could keep a stale keyboard-derived safe-area inset after detaching while the keyboard is visible, leaving the underlying page permanently shortened after dismissing a modal.
Changes:
- Route keyboard-detach cleanup through
ClearKeyboardState()so the stale keyboard state is cleared and a layout pass is scheduled (SetNeedsLayout()), restoring pre-regression behavior while keeping the observer-leak fix. - Add a new HostApp repro page for #37691 that opens a modal with an
Entryand dismisses it while the keyboard is visible. - Add an iOS UI regression test that repeats the modal show/dismiss cycle three times and validates the underlying page’s bottom position restores each time.
Note: The PR description is detailed and appears consistent with the implementation, but it does not include the repository-required NOTE block for testing PR artifacts at the top.
Show a summary per file
| File | Description |
|---|---|
| src/Core/src/Platform/iOS/MauiView.cs | Use ClearKeyboardState() during keyboard notification unsubscribe to ensure a layout pass is queued after clearing stale keyboard state. |
| src/Controls/tests/TestCases.Shared.Tests/Tests/Issues/Issue37691.cs | New iOS UI test validating underlying page layout restores after dismissing a keyboard-visible modal (3 cycles). |
| src/Controls/tests/TestCases.HostApp/Issues/Issue37691.cs | New HostApp issue page to reproduce the modal + keyboard scenario and provide automation markers for the UI test. |
Review details
- Files reviewed: 3/3 changed files
- Comments generated: 1
- Review effort level: Lite
Match the five-pixel tolerance used by similar keyboard and safe-area UI tests to avoid device-specific coordinate noise. Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com> Copilot-Session: 13177bf1-5b66-4f7e-be17-ed14d1d3f6f0
This comment has been minimized.
This comment has been minimized.
> [!NOTE] > Are you waiting for the changes in this PR to be merged? > It would be very helpful if you could [test the resulting artifacts](https://github.com/dotnet/maui/wiki/Testing-PR-Builds) from this PR and let us know in a comment if this change resolves your issue. Thank you! ### Description of Change When a `MauiView` using `SafeAreaEdges.SoftInput` detached while the keyboard was visible, `UnsubscribeFromKeyboardNotifications()` cleared the keyboard flags but did not schedule a layout pass. The cached keyboard-sized safe-area inset could therefore remain after the view reattached, leaving the underlying page permanently shortened after dismissing a modal. This change routes detach cleanup through the existing `ClearKeyboardState()` method. That preserves the observer removal added for #35386 while restoring the missing `SetNeedsLayout()` call from the previously working behavior. A new iOS UI regression test dismisses a keyboard-visible modal three times and verifies after every cycle that the underlying page's bottom edge returns to its original position. **Runtime proof** https://github.com/user-attachments/assets/681386e8-fec5-4ed9-946a-a6bd057332c5 - Before the fix on an iOS 26.5 iPhone 17 Pro simulator: bottom edge remained at `522` instead of `874` (a 352-point keyboard-sized gap). - After the fix on iOS 26.5: `874 -> 874` for all three cycles. - After the fix on iOS 18.4: `812 -> 812` for all three cycles. - The existing #35386 detached-platform-view leak test still passes (`0/12` retained platform views). @janne-hmp, please try the PR build artifacts when they become available and let us know whether they resolve the issue in your application. ### Issues Fixed Fixes #37691 ---------
> [!NOTE] > Are you waiting for the changes in this PR to be merged? > It would be very helpful if you could [test the resulting artifacts](https://github.com/dotnet/maui/wiki/Testing-PR-Builds) from this PR and let us know in a comment if this change resolves your issue. Thank you! ### Description of Change When a `MauiView` using `SafeAreaEdges.SoftInput` detached while the keyboard was visible, `UnsubscribeFromKeyboardNotifications()` cleared the keyboard flags but did not schedule a layout pass. The cached keyboard-sized safe-area inset could therefore remain after the view reattached, leaving the underlying page permanently shortened after dismissing a modal. This change routes detach cleanup through the existing `ClearKeyboardState()` method. That preserves the observer removal added for #35386 while restoring the missing `SetNeedsLayout()` call from the previously working behavior. A new iOS UI regression test dismisses a keyboard-visible modal three times and verifies after every cycle that the underlying page's bottom edge returns to its original position. **Runtime proof** https://github.com/user-attachments/assets/681386e8-fec5-4ed9-946a-a6bd057332c5 - Before the fix on an iOS 26.5 iPhone 17 Pro simulator: bottom edge remained at `522` instead of `874` (a 352-point keyboard-sized gap). - After the fix on iOS 26.5: `874 -> 874` for all three cycles. - After the fix on iOS 18.4: `812 -> 812` for all three cycles. - The existing #35386 detached-platform-view leak test still passes (`0/12` retained platform views). @janne-hmp, please try the PR build artifacts when they become available and let us know whether they resolve the issue in your application. ### Issues Fixed Fixes #37691 ---------
> [!NOTE] > Are you waiting for the changes in this PR to be merged? > It would be very helpful if you could [test the resulting artifacts](https://github.com/dotnet/maui/wiki/Testing-PR-Builds) from this PR and let us know in a comment if this change resolves your issue. Thank you! ### Description of Change When a `MauiView` using `SafeAreaEdges.SoftInput` detached while the keyboard was visible, `UnsubscribeFromKeyboardNotifications()` cleared the keyboard flags but did not schedule a layout pass. The cached keyboard-sized safe-area inset could therefore remain after the view reattached, leaving the underlying page permanently shortened after dismissing a modal. This change routes detach cleanup through the existing `ClearKeyboardState()` method. That preserves the observer removal added for #35386 while restoring the missing `SetNeedsLayout()` call from the previously working behavior. A new iOS UI regression test dismisses a keyboard-visible modal three times and verifies after every cycle that the underlying page's bottom edge returns to its original position. **Runtime proof** https://github.com/user-attachments/assets/681386e8-fec5-4ed9-946a-a6bd057332c5 - Before the fix on an iOS 26.5 iPhone 17 Pro simulator: bottom edge remained at `522` instead of `874` (a 352-point keyboard-sized gap). - After the fix on iOS 26.5: `874 -> 874` for all three cycles. - After the fix on iOS 18.4: `812 -> 812` for all three cycles. - The existing #35386 detached-platform-view leak test still passes (`0/12` retained platform views). @janne-hmp, please try the PR build artifacts when they become available and let us know whether they resolve the issue in your application. ### Issues Fixed Fixes #37691 ---------
> [!NOTE] > Are you waiting for the changes in this PR to be merged? > It would be very helpful if you could [test the resulting artifacts](https://github.com/dotnet/maui/wiki/Testing-PR-Builds) from this PR and let us know in a comment if this change resolves your issue. Thank you! ### Description of Change When a `MauiView` using `SafeAreaEdges.SoftInput` detached while the keyboard was visible, `UnsubscribeFromKeyboardNotifications()` cleared the keyboard flags but did not schedule a layout pass. The cached keyboard-sized safe-area inset could therefore remain after the view reattached, leaving the underlying page permanently shortened after dismissing a modal. This change routes detach cleanup through the existing `ClearKeyboardState()` method. That preserves the observer removal added for #35386 while restoring the missing `SetNeedsLayout()` call from the previously working behavior. A new iOS UI regression test dismisses a keyboard-visible modal three times and verifies after every cycle that the underlying page's bottom edge returns to its original position. **Runtime proof** https://github.com/user-attachments/assets/681386e8-fec5-4ed9-946a-a6bd057332c5 - Before the fix on an iOS 26.5 iPhone 17 Pro simulator: bottom edge remained at `522` instead of `874` (a 352-point keyboard-sized gap). - After the fix on iOS 26.5: `874 -> 874` for all three cycles. - After the fix on iOS 18.4: `812 -> 812` for all three cycles. - The existing #35386 detached-platform-view leak test still passes (`0/12` retained platform views). @janne-hmp, please try the PR build artifacts when they become available and let us know whether they resolve the issue in your application. ### Issues Fixed Fixes #37691 ---------
> [!NOTE] > Are you waiting for the changes in this PR to be merged? > It would be very helpful if you could [test the resulting artifacts](https://github.com/dotnet/maui/wiki/Testing-PR-Builds) from this PR and let us know in a comment if this change resolves your issue. Thank you! ### Description of Change When a `MauiView` using `SafeAreaEdges.SoftInput` detached while the keyboard was visible, `UnsubscribeFromKeyboardNotifications()` cleared the keyboard flags but did not schedule a layout pass. The cached keyboard-sized safe-area inset could therefore remain after the view reattached, leaving the underlying page permanently shortened after dismissing a modal. This change routes detach cleanup through the existing `ClearKeyboardState()` method. That preserves the observer removal added for #35386 while restoring the missing `SetNeedsLayout()` call from the previously working behavior. A new iOS UI regression test dismisses a keyboard-visible modal three times and verifies after every cycle that the underlying page's bottom edge returns to its original position. **Runtime proof** https://github.com/user-attachments/assets/681386e8-fec5-4ed9-946a-a6bd057332c5 - Before the fix on an iOS 26.5 iPhone 17 Pro simulator: bottom edge remained at `522` instead of `874` (a 352-point keyboard-sized gap). - After the fix on iOS 26.5: `874 -> 874` for all three cycles. - After the fix on iOS 18.4: `812 -> 812` for all three cycles. - The existing #35386 detached-platform-view leak test still passes (`0/12` retained platform views). @janne-hmp, please try the PR build artifacts when they become available and let us know whether they resolve the issue in your application. ### Issues Fixed Fixes #37691 ---------
> [!NOTE] > Are you waiting for the changes in this PR to be merged? > It would be very helpful if you could [test the resulting artifacts](https://github.com/dotnet/maui/wiki/Testing-PR-Builds) from this PR and let us know in a comment if this change resolves your issue. Thank you! ### Description of Change When a `MauiView` using `SafeAreaEdges.SoftInput` detached while the keyboard was visible, `UnsubscribeFromKeyboardNotifications()` cleared the keyboard flags but did not schedule a layout pass. The cached keyboard-sized safe-area inset could therefore remain after the view reattached, leaving the underlying page permanently shortened after dismissing a modal. This change routes detach cleanup through the existing `ClearKeyboardState()` method. That preserves the observer removal added for #35386 while restoring the missing `SetNeedsLayout()` call from the previously working behavior. A new iOS UI regression test dismisses a keyboard-visible modal three times and verifies after every cycle that the underlying page's bottom edge returns to its original position. **Runtime proof** https://github.com/user-attachments/assets/681386e8-fec5-4ed9-946a-a6bd057332c5 - Before the fix on an iOS 26.5 iPhone 17 Pro simulator: bottom edge remained at `522` instead of `874` (a 352-point keyboard-sized gap). - After the fix on iOS 26.5: `874 -> 874` for all three cycles. - After the fix on iOS 18.4: `812 -> 812` for all three cycles. - The existing #35386 detached-platform-view leak test still passes (`0/12` retained platform views). @janne-hmp, please try the PR build artifacts when they become available and let us know whether they resolve the issue in your application. ### Issues Fixed Fixes #37691 ---------
> [!NOTE] > Are you waiting for the changes in this PR to be merged? > It would be very helpful if you could [test the resulting artifacts](https://github.com/dotnet/maui/wiki/Testing-PR-Builds) from this PR and let us know in a comment if this change resolves your issue. Thank you! ### Description of Change When a `MauiView` using `SafeAreaEdges.SoftInput` detached while the keyboard was visible, `UnsubscribeFromKeyboardNotifications()` cleared the keyboard flags but did not schedule a layout pass. The cached keyboard-sized safe-area inset could therefore remain after the view reattached, leaving the underlying page permanently shortened after dismissing a modal. This change routes detach cleanup through the existing `ClearKeyboardState()` method. That preserves the observer removal added for #35386 while restoring the missing `SetNeedsLayout()` call from the previously working behavior. A new iOS UI regression test dismisses a keyboard-visible modal three times and verifies after every cycle that the underlying page's bottom edge returns to its original position. **Runtime proof** https://github.com/user-attachments/assets/681386e8-fec5-4ed9-946a-a6bd057332c5 - Before the fix on an iOS 26.5 iPhone 17 Pro simulator: bottom edge remained at `522` instead of `874` (a 352-point keyboard-sized gap). - After the fix on iOS 26.5: `874 -> 874` for all three cycles. - After the fix on iOS 18.4: `812 -> 812` for all three cycles. - The existing #35386 detached-platform-view leak test still passes (`0/12` retained platform views). @janne-hmp, please try the PR build artifacts when they become available and let us know whether they resolve the issue in your application. ### Issues Fixed Fixes #37691 ---------
> [!NOTE] > Are you waiting for the changes in this PR to be merged? > It would be very helpful if you could [test the resulting artifacts](https://github.com/dotnet/maui/wiki/Testing-PR-Builds) from this PR and let us know in a comment if this change resolves your issue. Thank you! ### Description of Change When a `MauiView` using `SafeAreaEdges.SoftInput` detached while the keyboard was visible, `UnsubscribeFromKeyboardNotifications()` cleared the keyboard flags but did not schedule a layout pass. The cached keyboard-sized safe-area inset could therefore remain after the view reattached, leaving the underlying page permanently shortened after dismissing a modal. This change routes detach cleanup through the existing `ClearKeyboardState()` method. That preserves the observer removal added for #35386 while restoring the missing `SetNeedsLayout()` call from the previously working behavior. A new iOS UI regression test dismisses a keyboard-visible modal three times and verifies after every cycle that the underlying page's bottom edge returns to its original position. **Runtime proof** https://github.com/user-attachments/assets/681386e8-fec5-4ed9-946a-a6bd057332c5 - Before the fix on an iOS 26.5 iPhone 17 Pro simulator: bottom edge remained at `522` instead of `874` (a 352-point keyboard-sized gap). - After the fix on iOS 26.5: `874 -> 874` for all three cycles. - After the fix on iOS 18.4: `812 -> 812` for all three cycles. - The existing #35386 detached-platform-view leak test still passes (`0/12` retained platform views). @janne-hmp, please try the PR build artifacts when they become available and let us know whether they resolve the issue in your application. ### Issues Fixed Fixes #37691 ---------
|
/backport to release/10.0.1xx-sr11 |
|
Started backporting to |
|
@kubaflo backporting to git am output$ git am --3way --empty=keep --ignore-whitespace --keep-non-patch changes.patch
Applying: [YML] Removed duplicate deviceType code. (#37389)
Using index info to reconstruct a base tree...
M eng/pipelines/common/ui-tests-steps.yml
Falling back to patching base and 3-way merge...
No changes -- Patch already applied.
Applying: Fix skill evaluation fixtures and failure reporting (#36954)
Using index info to reconstruct a base tree...
M .github/skills/agentic-labeler/tests/eval.vally.yaml
M .github/skills/analyze-sessions/SKILL.md
M .github/skills/analyze-sessions/references/design-rationale.md
M .github/skills/analyze-sessions/tests/eval.vally.yaml
M .github/skills/ci-fix/SKILL.md
M .github/skills/ci-fix/tests/eval.ownership.vally.yaml
M .github/skills/code-review/SKILL.md
A .github/skills/code-review/tests/eval.capability.vally.yaml
M .github/skills/code-review/tests/eval.inline-findings.vally.yaml
M .github/skills/code-review/tests/eval.producer-trace.vally.yaml
M .github/skills/code-review/tests/eval.trim-aot.vally.yaml
M .github/skills/code-review/tests/eval.vally.yaml
M .github/skills/code-review/tests/fixtures/producer-trace/change.diff
M .github/skills/code-review/tests/fixtures/producer-trace/src/.github/skills/review-test-failures/scripts/Gather-TestFailureContext.ps1
M .github/skills/code-review/tests/hermeticity.vally.yaml
M .github/skills/evaluate-pr-tests/tests/eval.vally.yaml
M .github/skills/pr-review/tests/eval.gh-auth.vally.yaml
M .github/skills/try-fix/SKILL.md
M .github/skills/try-fix/tests/eval.vally.yaml
M .github/skills/verify-tests-fail-without-fix/SKILL.md
M .github/skills/verify-tests-fail-without-fix/scripts/Verify-TestsFail.Tests.ps1
M .github/skills/verify-tests-fail-without-fix/scripts/verify-tests-fail.ps1
M .github/skills/verify-tests-fail-without-fix/tests/eval.vally.yaml
M .github/workflows/skill-validation.yml
M src/Controls/tests/Core.UnitTests/BrushTypeConverterUnitTests.cs
Falling back to patching base and 3-way merge...
Auto-merging .github/scripts/SetupVallyRuntime.sh
CONFLICT (add/add): Merge conflict in .github/scripts/SetupVallyRuntime.sh
Auto-merging .github/skills/agentic-labeler/tests/eval.vally.yaml
CONFLICT (content): Merge conflict in .github/skills/agentic-labeler/tests/eval.vally.yaml
Auto-merging .github/skills/analyze-sessions/SKILL.md
CONFLICT (content): Merge conflict in .github/skills/analyze-sessions/SKILL.md
Auto-merging .github/skills/analyze-sessions/references/design-rationale.md
CONFLICT (content): Merge conflict in .github/skills/analyze-sessions/references/design-rationale.md
Auto-merging .github/skills/analyze-sessions/tests/eval.vally.yaml
CONFLICT (content): Merge conflict in .github/skills/analyze-sessions/tests/eval.vally.yaml
Auto-merging .github/skills/code-review/tests/eval.inline-findings.vally.yaml
CONFLICT (content): Merge conflict in .github/skills/code-review/tests/eval.inline-findings.vally.yaml
Auto-merging .github/skills/code-review/tests/eval.vally.yaml
CONFLICT (content): Merge conflict in .github/skills/code-review/tests/eval.vally.yaml
Auto-merging .github/skills/code-review/tests/hermeticity.vally.yaml
CONFLICT (content): Merge conflict in .github/skills/code-review/tests/hermeticity.vally.yaml
Auto-merging .github/skills/code-review/tests/soak.capability.vally.yaml
CONFLICT (content): Merge conflict in .github/skills/code-review/tests/soak.capability.vally.yaml
Auto-merging .github/skills/evaluate-pr-tests/tests/eval.vally.yaml
CONFLICT (content): Merge conflict in .github/skills/evaluate-pr-tests/tests/eval.vally.yaml
Auto-merging .github/skills/pr-review/tests/eval.gh-auth.vally.yaml
CONFLICT (content): Merge conflict in .github/skills/pr-review/tests/eval.gh-auth.vally.yaml
Auto-merging .github/skills/try-fix/tests/eval.vally.yaml
CONFLICT (content): Merge conflict in .github/skills/try-fix/tests/eval.vally.yaml
Auto-merging .github/skills/verify-tests-fail-without-fix/tests/eval.vally.yaml
CONFLICT (content): Merge conflict in .github/skills/verify-tests-fail-without-fix/tests/eval.vally.yaml
Auto-merging .github/workflows/skill-evaluation-soak.yml
CONFLICT (add/add): Merge conflict in .github/workflows/skill-evaluation-soak.yml
Auto-merging .github/workflows/skill-validation.yml
CONFLICT (content): Merge conflict in .github/workflows/skill-validation.yml
error: Failed to merge in the changes.
hint: Use 'git am --show-current-patch=diff' to see the failed patch
hint: When you have resolved this problem, run "git am --continue".
hint: If you prefer to skip this patch, run "git am --skip" instead.
hint: To restore the original branch and stop patching, run "git am --abort".
hint: Disable this message with "git config set advice.mergeConflict false"
Patch failed at 0002 Fix skill evaluation fixtures and failure reporting (#36954)
Error: The process '/usr/bin/git' failed with exit code 128 |
|
/backport to main |
|
Started backporting to |
|
@kubaflo backporting to git am output$ git am --3way --empty=keep --ignore-whitespace --keep-non-patch changes.patch
Applying: [YML] Removed duplicate deviceType code. (#37389)
Using index info to reconstruct a base tree...
M eng/pipelines/common/ui-tests-steps.yml
Falling back to patching base and 3-way merge...
Auto-merging eng/pipelines/common/ui-tests-steps.yml
No changes -- Patch already applied.
Applying: Fix skill evaluation fixtures and failure reporting (#36954)
Using index info to reconstruct a base tree...
M .github/skills/agentic-labeler/tests/eval.vally.yaml
M .github/skills/analyze-sessions/SKILL.md
M .github/skills/analyze-sessions/references/design-rationale.md
M .github/skills/analyze-sessions/tests/eval.vally.yaml
M .github/skills/ci-fix/SKILL.md
M .github/skills/ci-fix/tests/eval.ownership.vally.yaml
M .github/skills/code-review/SKILL.md
A .github/skills/code-review/tests/eval.capability.vally.yaml
M .github/skills/code-review/tests/eval.inline-findings.vally.yaml
M .github/skills/code-review/tests/eval.producer-trace.vally.yaml
M .github/skills/code-review/tests/eval.trim-aot.vally.yaml
M .github/skills/code-review/tests/eval.vally.yaml
M .github/skills/code-review/tests/fixtures/producer-trace/change.diff
M .github/skills/code-review/tests/fixtures/producer-trace/src/.github/skills/review-test-failures/scripts/Gather-TestFailureContext.ps1
M .github/skills/code-review/tests/hermeticity.vally.yaml
M .github/skills/evaluate-pr-tests/tests/eval.vally.yaml
M .github/skills/pr-review/tests/eval.gh-auth.vally.yaml
M .github/skills/try-fix/SKILL.md
M .github/skills/try-fix/tests/eval.vally.yaml
M .github/skills/verify-tests-fail-without-fix/SKILL.md
M .github/skills/verify-tests-fail-without-fix/scripts/Verify-TestsFail.Tests.ps1
M .github/skills/verify-tests-fail-without-fix/scripts/verify-tests-fail.ps1
M .github/skills/verify-tests-fail-without-fix/tests/eval.vally.yaml
M .github/workflows/skill-validation.yml
M src/Controls/tests/Core.UnitTests/BrushTypeConverterUnitTests.cs
Falling back to patching base and 3-way merge...
Auto-merging .github/scripts/SetupVallyRuntime.sh
CONFLICT (add/add): Merge conflict in .github/scripts/SetupVallyRuntime.sh
Auto-merging .github/skills/agentic-labeler/tests/eval.vally.yaml
CONFLICT (content): Merge conflict in .github/skills/agentic-labeler/tests/eval.vally.yaml
Auto-merging .github/skills/analyze-sessions/SKILL.md
CONFLICT (content): Merge conflict in .github/skills/analyze-sessions/SKILL.md
Auto-merging .github/skills/analyze-sessions/references/design-rationale.md
CONFLICT (content): Merge conflict in .github/skills/analyze-sessions/references/design-rationale.md
Auto-merging .github/skills/analyze-sessions/tests/eval.vally.yaml
CONFLICT (content): Merge conflict in .github/skills/analyze-sessions/tests/eval.vally.yaml
Auto-merging .github/skills/code-review/tests/eval.inline-findings.vally.yaml
CONFLICT (content): Merge conflict in .github/skills/code-review/tests/eval.inline-findings.vally.yaml
Auto-merging .github/skills/code-review/tests/eval.vally.yaml
CONFLICT (content): Merge conflict in .github/skills/code-review/tests/eval.vally.yaml
Auto-merging .github/skills/code-review/tests/hermeticity.vally.yaml
CONFLICT (content): Merge conflict in .github/skills/code-review/tests/hermeticity.vally.yaml
Auto-merging .github/skills/code-review/tests/soak.capability.vally.yaml
CONFLICT (content): Merge conflict in .github/skills/code-review/tests/soak.capability.vally.yaml
Auto-merging .github/skills/evaluate-pr-tests/tests/eval.vally.yaml
CONFLICT (content): Merge conflict in .github/skills/evaluate-pr-tests/tests/eval.vally.yaml
Auto-merging .github/skills/pr-review/tests/eval.gh-auth.vally.yaml
CONFLICT (content): Merge conflict in .github/skills/pr-review/tests/eval.gh-auth.vally.yaml
Auto-merging .github/skills/try-fix/tests/eval.vally.yaml
CONFLICT (content): Merge conflict in .github/skills/try-fix/tests/eval.vally.yaml
Auto-merging .github/skills/verify-tests-fail-without-fix/tests/eval.vally.yaml
CONFLICT (content): Merge conflict in .github/skills/verify-tests-fail-without-fix/tests/eval.vally.yaml
Auto-merging .github/workflows/skill-evaluation-soak.yml
CONFLICT (add/add): Merge conflict in .github/workflows/skill-evaluation-soak.yml
Auto-merging .github/workflows/skill-validation.yml
CONFLICT (content): Merge conflict in .github/workflows/skill-validation.yml
error: Failed to merge in the changes.
hint: Use 'git am --show-current-patch=diff' to see the failed patch
hint: When you have resolved this problem, run "git am --continue".
hint: If you prefer to skip this patch, run "git am --skip" instead.
hint: To restore the original branch and stop patching, run "git am --abort".
hint: Disable this message with "git config set advice.mergeConflict false"
Patch failed at 0002 Fix skill evaluation fixtures and failure reporting (#36954)
Error: The process '/usr/bin/git' failed with exit code 128 |
<!-- Please let the below note in for people that find this PR --> > [!NOTE] > Are you waiting for the changes in this PR to be merged? > It would be very helpful if you could [test the resulting artifacts](https://github.com/dotnet/maui/wiki/Testing-PR-Builds) from this PR and let us know in a comment if this change resolves your issue. Thank you! ## Description Backport of #37708 to `main`: focused manual conflict fallback, adding only the missing iOS regression coverage. The requested `/backport to main` automation [failed](https://github.com/dotnet/maui/actions/runs/34706173137) because the original PR patch includes unrelated historical commits that conflict in skill/workflow files. This existing focused PR is retained as the fallback rather than opening a duplicate or importing that unrelated history. Both `main` and SR11 already contain the runtime fix behavior through the newer `InvalidateSafeAreaWithDescendants()` implementation. This PR preserves that stronger behavior and adds only the two missing `Issue37691` UI-test files. The test dismisses a keyboard-visible modal three times and verifies after each cycle that the underlying page returns to its original bottom edge. This PR targets `main` only. SR11 coverage is being handled separately after its `/backport` run also failed. Merging into `main` first is not a requirement of the backport automation; the earlier description stating that prerequisite was incorrect. ## Source provenance - Source PR: #37708 - Source squash merge commit: `90c55197d1925f99480482d51be7f53aae0d194c` - Original target: `inflight/current` - Runtime behavior already inherited via `7c523245e64fca92f376a76298ed6cfd263cad3e`. ## Validation - `pwsh .github/scripts/BuildAndRunHostApp.ps1 -Platform ios -TestFilter "FullyQualifiedName~Issue37691" -DeviceUdid "5BA96735-B558-4355-B16A-B41143C6718A"` - Result: 1 passed; all three cycles restored the bottom edge from `874` to `874`. Related: #37691. Co-authored-by: Gerald Versluis <gerald.versluis@microsoft.com> Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
…coverage (#38489) > [!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! Backport of #37708 to `release/10.0.1xx-sr11` using a focused manual fallback after the automated backport failed: https://github.com/dotnet/maui/actions/runs/34705427768 Source squash commit: `90c55197d1925f99480482d51be7f53aae0d194c` (issue #37691). SR11 already inherits the runtime fix through `7c523245e64fca92f376a76298ed6cfd263cad3e`, including `ClearKeyboardState()` and the stronger `InvalidateSafeAreaWithDescendants()` behavior. This fallback intentionally preserves that runtime and adds only the two missing regression test files from the source squash commit. ## Validation - Both added files are byte-identical to their blobs in source commit `90c55197d1925f99480482d51be7f53aae0d194c`. - `src/Core/src/Platform/iOS/MauiView.cs` is unchanged. - `eng/Versions.props` remains at `PatchVersion` 110. - The equivalent targeted test previously passed on iPhone 17 / iOS 26.5 with all three cycles restoring the bottom marker to 874. - A fresh SR11-targeted run was attempted on iPhone 17 / iOS 26.5, but executed 0 tests because this worktree lacked bootstrapped MAUI build tasks. The documented bootstrap was attempted and bounded; it did not complete in time, so no new SR11-local pass result is claimed. --------- Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
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
When a
MauiViewusingSafeAreaEdges.SoftInputdetached while the keyboard was visible,UnsubscribeFromKeyboardNotifications()cleared the keyboard flags but did not schedule a layout pass. The cached keyboard-sized safe-area inset could therefore remain after the view reattached, leaving the underlying page permanently shortened after dismissing a modal.This change routes detach cleanup through the existing
ClearKeyboardState()method. That preserves the observer removal added for #35386 while restoring the missingSetNeedsLayout()call from the previously working behavior.A new iOS UI regression test dismisses a keyboard-visible modal three times and verifies after every cycle that the underlying page's bottom edge returns to its original position.
Runtime proof
issue37691-fixed.mp4
522instead of874(a 352-point keyboard-sized gap).874 -> 874for all three cycles.812 -> 812for all three cycles.0/12retained platform views).@janne-hmp, please try the PR build artifacts when they become available and let us know whether they resolve the issue in your application.
Issues Fixed
Fixes #37691