Repository navigation
[ci] Use matching Xcode for previous-framework Apple integration tests - #39832
Conversation
|
🚀 Dogfood this PR with:
curl -fsSL https://raw.githubusercontent.com/dotnet/maui/main/eng/scripts/get-maui-pr.sh | bash -s -- 39832Or
iex "& { $(irm https://raw.githubusercontent.com/dotnet/maui/main/eng/scripts/get-maui-pr.ps1) } 39832" |
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
|
Rebased-head configuration validation completed: Azure definition302 expanded-YAML preview passed at |
This comment has been minimized.
This comment has been minimized.
|
/rebase |
…aces Keep every macOS Build-category test while routing .NET 9 cases to hosted Xcode 26.5. Prevent Windows full-solution CI from rewriting Core imports already staged by the preceding BuildTasks pass, adapting the established staging guard. Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com> Copilot-Session: 9537c719-3873-4e41-bdd3-d3dcb1ce4dae
Use a single-quoted native argument so the shared command log does not terminate its double-quoted string at the filter and parse ampersand as a background operator. Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com> Copilot-Session: 9537c719-3873-4e41-bdd3-d3dcb1ce4dae
Retain upstream Xcode 27 adoption and staging fixes. Route the remaining .NET 10 compatibility cases to Xcode 26.5 without replaying obsolete .NET 10 product pins. Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com> Copilot-Session: 9537c719-3873-4e41-bdd3-d3dcb1ce4dae
6c7565d to
f3091ea
Compare
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
|
@dalexsoto stamp |
There was a problem hiding this comment.
🔵 Needs a closer look
The relationship between two unmatched current-head UI/device failures and the CI configuration change remains unresolved, requiring human review.
No open issues 🎉
What changed in this PR
Preserves the previous-framework Apple integration-test coverage after .NET 11’s promotion to main by running .NET 10 cases with their matching Xcode toolchain.
Changes:
- Splits macOS
Buildtests into complementary filters: .NET 10 cases use hosted macOS-26/Xcode 26.5; remaining cases retain GoldenGate/Xcode 27. - Adds per-job test-filter and Xcode overrides, with single-quoted filters for safe PowerShell handling.
- Documents the public CI toolchain split.
| File | Description |
|---|---|
| eng/pipelines/ci.yml | Separates previous-framework macOS tests onto the matching Xcode pool. |
| eng/pipelines/arcade/stage-integration-tests.yml | Supports job-specific filters and Xcode versions; adjusts filter quoting. |
| docs/DevelopmentTips.md | Explains the Apple toolchain split and filter quoting. |
Review effort: Balanced
…wipeView analyzer fix (#39854) <!-- 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 --> Intentional, focused backport to **`release/11.0.1xx`**, in two separate commits retaining the original authors and source-commit attribution: - Backport #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 #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](https://dev.azure.com/dnceng-public/public/_build/results?buildId=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 <!-- 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. --> Backports #39832 and #39375 (original analyzer issue: #39376) to `release/11.0.1xx`. <!-- Are you targeting main? All PRs should target the main branch unless otherwise noted. --> ---------
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
Replacement for #39652, closed at the user's request. Rebased onto main
3bfd980b2f2f8284e05970dfa992a6d4362f826bafter #39688 promoted .NET 11 to main.Main already contains Xcode27 compilation, the updated Apple toolchain configuration, native minimums, and the upstream build-task staging fix. Preserve those implementations rather than replay obsolete .NET10 product pins, library baselines, support-policy changes, or duplicate staging guards from the old PR.
Remaining delta:
Buildcategory: previous-framework (.NET10) cases run on standard hostedmacOS-26/Xcode26.5, matching retained Apple compatibility SDK26.5.10322; complementary cases retain main's GoldenGate/Xcode27 pool.DisplayName~net10.0andDisplayName!~net10.0filters. No previous-framework tests or Xcode validation disabled.&as a background operator.Current head
6c7565d5be2627483a04c8fee927a7d46aa658f2: main CI passedmaui-pr1660504 completed succeeded at this exact PR head. Actual completed test-run summaries verify the new .NET11/.NET10 coverage:
The macOS partition covers142 cases, matching the complete suite. Both skips remain explicit—not reported as passes. NativeAOT simulator1/1, macOS AOT18/18, macOS Samples10/10, and Blazor36/36 on each platform also passed. Old-PR registrar/toolchain failures are not current failures on this new main.
UI/device attribution completed; no whole-PR green claim
UI1660505 and device1660506 finished failed. All79 failed/canceled jobs were inventoried and their task logs inspected. Own dispatch logs correlated nine Helix jobs; all current-head result XMLs were parsed, including green-exit work items. Available XMLs contain zero failing tests/fixture errors. The failed-install Windows Core and canceled-before-running Catalyst Core work items have no XML and are not passes.
Compared latest five completed main UI runs1660611/1660269/1659947/1659602/1655780 and device runs1660605/1660476/1660098/1659955/1659776. Most runtime failures reproduce there:
-1784 distinct test/OS failures have same-test/platform/root-family matches. Another210 Android fixture results match the narrow
Could not find a connected Android device in 20000mssetup family, not exact same-test matches.Magick.Native-Q8-x64.dllfamily reproduce on main. Artifact-upload TF205023 path-length errors also reproduce on main; they were not omitted from the inventory.Two unmatched runtime failures remain; neither proven PR-caused nor dismissed:
AcceptedOperationNoneDisablesDropOperation: element timeout on initial/retry, no same-test failure in five main samples. UI log4595, lines1103–1109 and1868–1874.No demonstrated causal link from these runtime failures to the integration-only configuration delta, and no safe product/baseline fix established. Keep draft for human review of the unmatched failures, rather than claim all failures unrelated or blindly rerun.
Other checks: agentic labeler failed with provider HTTP401 before inference, not a product assertion. All seven full-repository spellcheck findings exactly match main41426563697 in unchanged WebAuthenticator/WorkloadMsi/Passkeys documents; none occurs in the changed DevelopmentTips section. No unrelated policy, spelling dictionary, screenshots, or product assertions changed to hide checks.
Validation:
git diff --check— passed.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./azp runaccepted all three pipelines at the exact head; main succeeded and runtime failures attributed above. No canceled/pending execution counted as a pass.Issues Fixed
Replaces #39652 and carries forward its compatibility-toolchain fix after upstream adoption of Xcode27 and promotion of .NET11 to main. Main validation is green; the two unmatched runtime failures above are not claimed fixed.