Skip to content

[release/11.0.1xx][tests] Backport Apple integration toolchains and SwipeView analyzer fix - #39854

Merged
kubaflo merged 2 commits into
release/11.0.1xxfrom
kubaflo-backport-release11-test-ci-fixes
Nov 3, 2026
Merged

kubaflo merged 2 commits into
release/11.0.1xxfrom
kubaflo-backport-release11-test-ci-fixes

Conversation

@kubaflo

@kubaflo kubaflo commented Nov 3, 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

Intentional, focused backport to release/11.0.1xx, in two separate commits retaining the original authors and source-commit attribution:

  • Backport [ci] Use matching Xcode for previous-framework Apple integration tests #39832 (464839d863668cd2be600f0bed8a2a2eff38d303): run previous-framework (.NET 10) Apple integration Build cases on hosted macOS-26 / Xcode 26.5, while the complementary cases retain GoldenGate / Xcode 27. Preserve coverage with disjoint DisplayName~net10.0 and DisplayName!~net10.0 filters, support per-job filter/Xcode overrides, and single-quote filters in the shared PowerShell runner. The documentation wording is adjusted to describe the release branch rather than main.
  • Backport [Android] Fix xUnit2031 warning in Android SwipeView device test #39375 (510d60147a49be8447276b40137e25b6729c8b9b): use Assert.Single(collection, predicate) in the Android SwipeView device test, resolving xUnit2031 without changing its assertion.

Fresh checks of release/main/inflight history and open/recently merged PRs found no existing release backport of these two fixes. No product code, snapshots, baselines, quarantines, dependency pins, or pipeline tests are changed.

Deliberately excluded after checking the actual release sources: #39692 references reentrant Flyout fixture types that are absent on this branch (introduced by #38214); the Catalyst annotation from #39665 targets a grouped EmptyView helper that is also absent (introduced by #37959). Importing those unrelated product prerequisites is outside this PR. The MediaPicker portion is already backported by #39670. #39549 and #39509 are not included.

Validation at head 135cf0fbe740608ceab17aeece755ebbe098e4da

  • Android Controls.DeviceTests compilation passed with the repository-provisioned .NET 11 SDK: ./.dotnet/dotnet build src/Controls/tests/DeviceTests/Controls.DeviceTests.csproj -f net11.0-android -p:IncludeIosTargetFrameworks=false -p:IncludeMacCatalystTargetFrameworks=false -p:IncludeMacOSTargetFrameworks=false -v:minimal (binary logging enabled). Result: 0 errors, two existing MAUI1001 runtime-XAML deprecation warnings. Initial attempts exposed missing build tasks; the bootstrap produced the tasks, but its aggregate build reported Java 21 obsolete-option diagnostics. The subsequent affected-project build above succeeded without disabling analyzers or suppressing warnings.
  • ruby -ryaml -rdate -e 'ARGV.each {|p| YAML.safe_load(File.read(p), permitted_classes: [Date,Time], aliases: true); puts "parsed #{p}"}' eng/pipelines/ci.yml eng/pipelines/arcade/stage-integration-tests.yml — passed.
  • Azure definition 302 expanded-YAML preview via az devops invoke --area pipelines --resource runs --route-parameters project=public pipelineId=302 --api-version 7.1 --http-method POST --in-file azure-preview-request.json --organization https://dev.azure.com/dnceng-public --output json — passed. The preview-only request pinned the branch and exact head above. Server expansion confirms hosted macOS-26, XCODE=26.5, REQUIRED_XCODE=26.5 and the previous-framework filter; the complementary lane retains AcesShared / $(AcesMacImageOverride) and excludes those cases. The expanded YAML also parsed successfully.
  • Parsed both actual Azure-expanded PowerShell runner scripts, after substituting their job filters, with System.Management.Automation.Language.Parser.ParseInput — passed, zero syntax errors and zero background pipelines for each lane. The local template expansion was checked separately with the same result.
  • dotnet format whitespace --folder --include src/Controls/tests/DeviceTests/Elements/SwipeView/SwipeViewTests.Android.cs --verify-no-changes — passed.
  • git diff origin/release/11.0.1xx...HEAD --check — passed.

CI remains pending, not green: maui-pr 1662034 was queued and has now entered inProgress, with triggerInfo.pr.sourceSha matching this exact head. No completed CI outcome is claimed. Device/UI pipelines have not been queued. Device runtime tests and full integration execution have not been run locally. Catalyst source was not changed. The configuration preview is not a test execution or a whole-PR success claim.

Issues Fixed

Backports #39832 and #39375 (original analyzer issue: #39376) to release/11.0.1xx.

kubaflo and others added 2 commits November 3, 2026 16:17
…lchains

Backport #39832.

(cherry picked from commit 464839d)

Keep the complementary Xcode 27 lane and run previous-framework .NET 10 Build cases on hosted macOS-26/Xcode 26.5. Adjust only the documentation wording to describe the release branch pool.

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Copilot-Session: 7a2cc763-b7cb-4206-8fa2-89e6ff74b742
Backport #39375.

(cherry picked from commit 510d601)

Use the predicate overload of Assert.Single without changing the SwipeView assertion.

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Copilot-Session: 7a2cc763-b7cb-4206-8fa2-89e6ff74b742
Copilot AI balanced review requested due to automatic review settings November 3, 2026 15:22
@kubaflo
kubaflo temporarily deployed to copilot-pat-pool November 3, 2026 15:22 — with GitHub Actions Inactive
@github-actions

github-actions Bot commented Nov 3, 2026

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

Or

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

@kubaflo
kubaflo temporarily deployed to copilot-pat-pool November 3, 2026 15:22 — with GitHub Actions Inactive
@azure-pipelines

This comment has been minimized.

@kubaflo

kubaflo commented Nov 3, 2026

Copy link
Copy Markdown
Contributor Author

@dalexsoto stamp

@kubaflo
kubaflo temporarily deployed to copilot-pat-pool November 3, 2026 15:25 — with GitHub Actions Inactive
@kubaflo
kubaflo temporarily deployed to copilot-pat-pool November 3, 2026 15:27 — with GitHub Actions Inactive
@kubaflo
kubaflo temporarily deployed to copilot-pat-pool November 3, 2026 15:28 — with GitHub Actions Inactive

Copilot AI 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.

🔵 Needs a closer look

Completed release-branch integration runs are needed to validate provisioning, Xcode compatibility, and both test partitions for the hosted macOS lane and shared runner changes; configuration-preview and syntax checks alone are insufficient.

No open issues 🎉

What changed in this PR

Backports #39832 and #39375 to release/11.0.1xx, aligning Apple integration tests with compatible toolchains and resolving the Android SwipeView test’s xUnit2031 analyzer error. No product code changes are included.

Changes:

  • Split macOS Build tests into complementary .NET 10 and other-framework lanes, using Xcode 26.5 and Xcode 27 respectively.
  • Add per-job filter and Xcode overrides, safely quote compound filters, and document the toolchain split.
  • Replace filtered Assert.Single usage with its predicate overload, preserving the assertion.
File Description
src/​Controls/​tests/​DeviceTests/​Elements/​SwipeView/​SwipeViewTests.Android.cs Uses the analyzer-compliant Assert.Single predicate overload.
eng/​pipelines/​ci.yml Separates previous-framework macOS tests onto the compatible hosted toolchain.
eng/​pipelines/​arcade/​stage-integration-tests.yml Supports job-specific toolchains and filters with single-quoted filter arguments.
docs/​DevelopmentTips.md Documents the public CI Apple toolchain split.

Review effort: Balanced

@dalexsoto dalexsoto left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Stamping as requested by @kubaflo; no code review performed.

@kubaflo
kubaflo merged commit 4645bd1 into release/11.0.1xx Nov 3, 2026
14 of 22 checks passed
@kubaflo
kubaflo deleted the kubaflo-backport-release11-test-ci-fixes branch November 3, 2026 15:45
@github-actions github-actions Bot added this to the .NET 11.0 GA milestone Nov 3, 2026

This branch was previously deployed

1 inactive deployment
copilot-pat-pool — 135cf0fb Deployed Nov 3, 2026 by kubaflo via conclusion #2658
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.

4 participants