Skip to content

[automated] Merge branch 'main' => 'net11.0' - #38515

Merged
kubaflo merged 4 commits into
net11.0from
merge/main-to-net11.0
Sep 13, 2026
Merged

kubaflo merged 4 commits into
net11.0from
merge/main-to-net11.0

Conversation

@github-actions

Copy link
Copy Markdown
Contributor

I detected changes in the main branch which have not been merged yet to net11.0. I'm a robot and am configured to help you automatically keep net11.0 up to date, so I've opened this PR.

This PR merges commits made on main by the following committers:

  • kubaflo

Instructions for merging from UI

This PR will not be auto-merged. When pull request checks pass, complete this PR by creating a merge commit, not a squash or rebase commit.

merge button instructions

If this repo does not allow creating merge commits from the GitHub UI, use command line instructions.

Instructions for merging via command line

Run these commands to merge this pull request from the command line.

git fetch
git checkout main
git pull --ff-only
git checkout net11.0
git pull --ff-only
git merge --no-ff main

# If there are merge conflicts, resolve them and then run git merge --continue to complete the merge
# Pushing the changes to the PR branch will re-trigger PR validation.
git push https://github.com/dotnet/maui HEAD:merge/main-to-net11.0
or if you are using SSH
git push git@github.com:dotnet/maui HEAD:merge/main-to-net11.0

After PR checks are complete push the branch

git push

Instructions for resolving conflicts

⚠️ If there are merge conflicts, you will need to resolve them manually before merging. You can do this using GitHub or using the command line.

Instructions for updating this pull request

Contributors to this repo have permission update this pull request by pushing to the branch 'merge/main-to-net11.0'. This can be done to resolve conflicts or make other changes to this pull request before it is merged.
The provided examples assume that the remote is named 'origin'. If you have a different remote name, please replace 'origin' with the name of your remote.

git fetch
git checkout -b merge/main-to-net11.0 origin/net11.0
git pull https://github.com/dotnet/maui merge/main-to-net11.0
(make changes)
git commit -m "Updated PR with my changes"
git push https://github.com/dotnet/maui HEAD:merge/main-to-net11.0
or if you are using SSH
git fetch
git checkout -b merge/main-to-net11.0 origin/net11.0
git pull git@github.com:dotnet/maui merge/main-to-net11.0
(make changes)
git commit -m "Updated PR with my changes"
git push git@github.com:dotnet/maui HEAD:merge/main-to-net11.0

Contact .NET Core Engineering (dotnet/dnceng) if you have questions or issues.
Also, if this PR was generated incorrectly, help us fix it. See https://github.com/dotnet/arcade/blob/main/.github/workflows/scripts/inter-branch-merge.ps1.

kubaflo and others added 3 commits September 13, 2026 17:36
<!-- 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

Replace the remaining `[Category(UITestCategories.CollectionView)]`
annotations in `Issue34271`, `Issue35889`, and `Issue38321` with
`[ShardedTestCategory(UITestCategories.CollectionView, shard: 1)]`.

Each test remains discoverable through the `CollectionView` umbrella and
exactly one CI shard, `CollectionView1`. Test bodies, platform coverage,
pipeline configuration, and analyzer enforcement are unchanged.

### Root Cause

#37732 introduced the `MAUI0003` error for direct use of sharded
categories, but its migration missed `Issue34271` and `Issue35889`
already present on the final main base. #38486 subsequently added
`Issue38321` with the old annotation. Every UI-test job compiles the
shared test suite before applying its category filter, so these errors
also block unrelated categories.

The first build of the exact #37732 merge,
[1594198](https://dev.azure.com/dnceng-public/public/_build/results?buildId=1594198),
failed all 189 UI jobs with the first two diagnostics. The subsequent
main build,
[1594249](https://dev.azure.com/dnceng-public/public/_build/results?buildId=1594249),
reports all three; one job separately stopped earlier on an emulator
boot timeout.

Keep the additive attribute and the analyzer safeguard: suppressing
`MAUI0003` would leave these tests outside the numbered CI filters,
while reverting sharding is unnecessary.

### Validation

- Before the fix, compiling `Controls.TestCases.WinUI.Tests` reproduced
exactly the three `MAUI0003` errors.
- After the fix, the same project compiled with zero warnings and
errors, with analyzers enabled.
- NUnit discovery confirmed each repaired method has both
`CollectionView` and exactly one numbered category, `CollectionView1`.
- Local validation covered compilation and discovery only, not UI
execution. CI must confirm runtime results; unrelated pre-existing UI
failures may remain.

### Issues Fixed

Fixes the UI-test compilation regression introduced by #37732, including
the additional affected test from #38486. No separate issue was filed.

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Copilot-Session: 03d50275-af5e-4ed0-8c79-59d8bb122451
<!-- 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>
Reset patterns:
- global.json
- NuGet.config
- eng/Version.Details.xml
- eng/Versions.props
- eng/common/*

@dotnet-policy-service dotnet-policy-service Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Auto-approved automated inter-branch merge.

@github-actions

Copy link
Copy Markdown
Contributor Author

🚀 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 -- 38515

Or

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

@kubaflo
kubaflo disabled auto-merge September 13, 2026 15:51
@kubaflo
kubaflo merged commit 21e176f into net11.0 Sep 13, 2026
4 of 15 checks passed
@kubaflo
kubaflo deleted the merge/main-to-net11.0 branch September 13, 2026 15:51
@github-actions github-actions Bot added this to the .NET 11.0-preview7 milestone Sep 13, 2026
@github-actions github-actions Bot locked and limited conversation to collaborators Oct 14, 2026
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