Repository navigation
Conversation
<!-- 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 --> Remove the unused SDK insertion templates instead of migrating their retired `VSEngSS-MicroBuild2022-1ES` pool: - `eng/pipelines/common/insertion.yml` - `eng/pipelines/common/sdk-insertion.yml` The stage template has no callers, and the job template is referenced only by that stage. The former `maui-release.yml` caller was removed in dotnet#31130. The current official build uses Arcade publishing; its configured YAML entry point and matching `main` revision were checked in Azure DevOps. The legacy DevDiv MAUI pipeline definitions are disabled. No active pipeline, publishing stage, or pool is changed. **Validation:** `git diff --check` passed. PyYAML parsed all 39 remaining pipeline YAML files, and all 113 static local template references resolved. A tracked-file search found no remaining references to the retired pool, either deleted template, or the old `sdk_insertion` stage. No new pipeline tests were added, and no device/UI tests were run for this configuration-only deletion. ### 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 dotnet#39518 <!-- Are you targeting main? All PRs should target the main branch unless otherwise noted. --> Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com> Copilot-Session: 2f892844-9872-4d2f-8799-c45663efc2a3
<!-- 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 --> Explicitly import the installed `Microsoft.PowerShell.Management` and `Microsoft.PowerShell.Utility` manifests from `$PSHOME` before the empty-queue helper uses their cmdlets. This avoids relying on automatic module discovery inside the AWF chroot. The reported run failed at `Get-Content` even though the queue was authoritatively empty, so the workflow emitted `report_incomplete` instead of completing with `noop`. A later scheduled run succeeded with the unchanged helper, showing that the environment failure is intermittent. This five-line change applies to the shared helper used by both `main` and `net11.0`. Strict snapshot validation, metadata persistence before expectation registration, registrar exit-code handling, and success-only `noop` gating are unchanged. No workflow sources, generated locks, permissions, dependencies, or pipeline tests are changed. This supplements the helper introduced in dotnet#39237; no competing open fix was found. **Validation** - Reproduced the original `Get-Content` resolution error in a fresh PowerShell process with `$PSModuleAutoLoadingPreference = 'None'`; the original helper exited 1 without creating completion artifacts. The original helper succeeds with normal automatic loading. - With the change, direct invocations succeed with automatic loading disabled for both `main`/`ci-scan` and `net11.0`/`ci-scan-net11`. Each produces zero-byte coverage, the exact summary header, and exactly one `noop` expectation. - Mismatched branch/label provenance still exits 1 before creating completion artifacts. - `gh aw compile ci-status-fix ci-status-fix-net11 --no-emit --strict --no-check-update` - passed: 2 workflows succeeded, 0 warnings. - PowerShell parser validation and `git diff --check` - passed. - Read-only GPT security review - passed; no confirmed vulnerabilities or changed credential/sandbox controls. - Actual [PowerShell CI run](https://github.com/dotnet/maui/actions/runs/39601588471) on commit `a55a3923b3aaea22ac74a06b1b4d02979d533366`: **all 23 existing empty-queue/bootstrap cases passed**, confirmed from the uploaded NUnit results. The complete suite was **2,624 passed, 3 failed**. All three failures are the same pre-existing reviewer-model policy assertions seen in the [earlier main-targeting PR run](https://github.com/dotnet/maui/actions/runs/39475824752), before this change: two local-reviewer GPT-5.6 pin assertions and the hosted review-tests model assertion. Those unrelated tests and model settings were not changed. **Hosted boundary:** the failing [reported run](https://github.com/dotnet/maui/actions/runs/39350684403) and the later [successful run](https://github.com/dotnet/maui/actions/runs/39524407970) were inspected. This patched revision has not been dispatched in the production AWF chroot; local component reproduction and the passing helper CI cases are not a claim of hosted deployment verification. Azure product validation was filtered out by its trigger conditions; the AzDO build query returned no builds for this PR. ### 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 dotnet#39476 <!-- Are you targeting main? All PRs should target the main branch unless otherwise noted. --> Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com> Copilot-Session: 8f522b9d-4994-414a-a03e-f3d7a9043385
On Android a ContentView or Border kept the full height of its content after we set the content to IsVisible=false. In our app that left a hidden card at 576 dp and the page two thirds empty. On Windows the same layout collapses fine. MeasureContent measures the content no matter if it's visible. WinUI returns 0 for a collapsed element, but Android measures a GONE view at its full size. The layout managers already skip collapsed children, so I did the same in both MeasureContent overloads and added a unit test for it. Right now we hide the wrapper instead of the content.
|
🚀 Dogfood this PR with:
curl -fsSL https://raw.githubusercontent.com/dotnet/maui/main/eng/scripts/get-maui-pr.sh | bash -s -- 39560Or
iex "& { $(irm https://raw.githubusercontent.com/dotnet/maui/main/eng/scripts/get-maui-pr.ps1) } 39560" |
|
Azure Pipelines: There may be pipelines that require an authorized user to comment /azp run to run. |
|
Hey there @@FullDevStudio! Thank you so much for your PR! Someone from the team will get assigned to your PR shortly and we'll get it reviewed. |
|
Hey there @FullDevStudio! Thank you so much for your PR! Someone from the team will get assigned to your PR shortly and we'll get it reviewed. |
|
@dotnet-policy-service agree |
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
Tests Failure Analysis
🧪 CI Analysis — click to expand📊 maui-prNo failures found. 🧪 maui-pr-devicetests
🧪 maui-pr-uitests
🧭 Follow-up — actions and refreshNext action: Compare unresolved failures with identical runtime/simulator setups; restore complete timeout diagnostics and results.
|
PR Test Gate
🧪 Gate analysis — click to expand✅ Passed. The selected verification satisfied the gate's passing conditions. Unmatched, skipped, or inconclusive groups are not passing evidence. 🧪 Unit tests
Execution log excerptsWithout fix With fix PR head: 91e7650f. Without-fix baseline: 74cf8e3c. |
|
I compared this with MAUI's other layout paths and the native platform contracts at Conclusion: this fixes a real MAUI layout inconsistency, rather than removing intentionally supported behavior. A collapsed child should stop contributing its desired size to a content-sized parent. That does not mean its still-visible parent must disappear. MAUI contract and comparable componentsThe layout design explicitly distinguishes
Checking specifically Native platform behavior
Important limitsThe wrapper retains its own layout requirements. Padding, Border stroke, explicit/minimum dimensions, and space allocated by a parent layout can remain. Consequently, There is some reach beyond the title: the internal overload is used by Android ScrollView. Conversely, iOS/MacCatalyst ScrollView has a separate private The existing test gate reports the new regression test failing without the fix and all 23 ContentViewUnitTests passing with it. Useful additional coverage would be |
On Android a ContentView or Border kept the full height of its content after we set the content to IsVisible=false. In our app that left a hidden card at 576 dp and the page two thirds empty. On Windows the same layout collapses fine.
MeasureContent measures the content no matter if it's visible. WinUI returns 0 for a collapsed element, but Android measures a GONE view at its full size. The layout managers already skip collapsed children, so I did the same in both MeasureContent overloads and added a unit test for it.
Right now we hide the wrapper instead of the content.
Description of Change
Issues Fixed
Fixes #