Repository navigation
ci: Move iOS and macOS test lanes to GitHub Actions - #26090
MartinZikmund wants to merge 5 commits into
Conversation
Mirrors the per-minute Azure Pipelines Mac lanes to measure them on free GitHub-hosted runners. Not intended for merge. Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01TXMNtzuHnsAaQvehBu4gYL
Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01TXMNtzuHnsAaQvehBu4gYL
Keeps every change under .github so the PR does not start Uno.UI - CI. Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01TXMNtzuHnsAaQvehBu4gYL
Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01TXMNtzuHnsAaQvehBu4gYL
Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01TXMNtzuHnsAaQvehBu4gYL
|
Claude finished @MartinZikmund's task in 33s —— View job Review summaryVerdict: fix-first (minor). The migration is well structured. It reuses the existing scripts, keeps Azure-only dependencies (native build for packages, TestFlight, DevServer CLI) where they are, and the fork-run evidence matches ADO test counts. I found no blocking defects in the workflow logic. Findings: 0 high, 1 medium, 3 low (all inline). Cross-cutting concerns
|
| - '!build/.markdownlint.json' | ||
| pull_request: | ||
| branches: *branches | ||
| paths: *paths |
There was a problem hiding this comment.
Required check vs. path filters (medium). The workflow is path-filtered, so macOS CI result is never created for PRs that only touch docs, markdown or .github/**. If an admin makes it a required check, those PRs will wait forever on "Expected". The same applies to PRs targeting branches outside the list. Either drop paths here and gate inside the scope job (skipped legs would then need to count as success in result), or only require the check through a ruleset that has the same path conditions. The PR description's "Known gaps" doesn't mention this.
| $output = & build/ci/scripts/determine-test-scope.ps1 6>&1 | Out-String | ||
| Write-Host $output | ||
| $required = $output -match 'WebGpuTestsRequired requires tests: true' | ||
| "webgpu=$($required.ToString().ToLowerInvariant())" >> $env:GITHUB_OUTPUT |
There was a problem hiding this comment.
Fragile scope detection (low). WebGPU gating depends on matching the log line WebGpuTestsRequired requires tests: true in the script's host output. If the wording changes, or the script prints nothing, webgpu silently becomes false and WebGPU coverage disappears with every job still green. Consider having the script emit an explicit output (or fail this step when the expected marker is absent), so a mismatch fails loudly instead of skipping tests.
| # One stable name for a ruleset to require, whichever matrix legs ran. | ||
| result: | ||
| name: macOS CI result | ||
| if: always() | ||
| needs: [ scope, native, desktop-build, desktop-tests, ios-build, ios-tests ] | ||
| runs-on: ubuntu-24.04 | ||
| timeout-minutes: 5 | ||
| steps: | ||
| - name: Fail unless every job succeeded | ||
| env: | ||
| RESULTS: ${{ join(needs.*.result, ' ') }} | ||
| run: | | ||
| echo "$RESULTS" | ||
| for r in $RESULTS; do | ||
| [ "$r" = "success" ] || exit 1 | ||
| done |
There was a problem hiding this comment.
Aggregator (low). [ "$r" = "success" ] treats skipped as a failure. That's right today because every leg always runs, but it will break as soon as someone adds a conditional job (for example the PR scoping in #26067). Prefer failing only on failure or cancelled, and keep skipped as acceptable where intended. Also note that fail-fast: false plus cancel-in-progress produces cancelled results on superseded pushes, which is the desired outcome here.
| run: | | ||
| dotnet tool update --global uno.check --version "$GlobalUnoCheckVersion" --add-source https://api.nuget.org/v3/index.json | ||
| # The skipped checks can report failure; a missing workload fails the build that follows. | ||
| uno-check -v --ci --non-interactive --fix --skip androidemulator --skip xcode --skip gtk3 --skip vswin --skip maui --skip vsmac --skip unosdk --skip dotnetnewunotemplates --pre-major --preview-major --tfm "${{ inputs.uno-check-tfm }}" || true |
There was a problem hiding this comment.
Swallowed failure (low). || true hides every uno-check failure, including a failed workload install. The build that follows will fail with a less obvious error, and the cache step may save a half-installed .dotnet. Consider verifying the result with dotnet workload list and failing there with a clear message. Also, the .dotnet cache is keyed without the runner image or Xcode version, so a stale iOS workload pack could be reused after a runner image bump.
There was a problem hiding this comment.
🟡 Changes recommended
The migration leaves gaps in WebGPU and master-health validation, risks blocking excluded-path PRs once the result check is required, and introduces redundant native compilation.
4 open issues
What changed in this PR
Moves iOS and macOS runtime testing from Azure’s per-minute pool to GitHub Actions, reusing existing test scripts while retaining Azure’s native build for package consumers.
Changes:
- Adds iOS and macOS Skia/WebGPU build-and-test jobs with scope detection and an aggregate result check.
- Adds shared macOS setup, caching, artifact handling, and test-result summaries.
- Removes the replaced Azure test lanes and moves Azure’s native macOS build to the flat-rate pool.
| File | Description |
|---|---|
build/ci/tests/.azure-devops-tests-runtime-stages.yml |
Removes iOS and macOS runtime-test stages. |
build/ci/tests/.azure-devops-tests-ios.yml |
Deletes the Azure iOS test-group template. |
build/ci/tests/.azure-devops-tests-ios-runner.yml |
Deletes the Azure iOS runner template. |
build/ci/tests/.azure-devops-tests-ios-build.yml |
Deletes the Azure iOS app-build template. |
build/ci/tests/.azure-devops-tests-desktop-macos.yml |
Deletes the Azure macOS test template. |
build/ci/build/.azure-devops-build-native.yml |
Removes the per-minute pool selection. |
build/ci/.azure-devops-stages.yml |
Selects macOS-26 for Azure’s native build. |
.github/workflows/ci-macos.yml |
Adds replacement build/test jobs and aggregate check. |
.github/actions/macos-ci-setup/summary.py |
Summarizes results and fails on failed tests or missing files. |
.github/actions/macos-ci-setup/action.yml |
Centralizes .NET, Xcode, workload setup, and caching. |
Review effort: Balanced
| - '!build/.markdownlint.json' | ||
| pull_request: | ||
| branches: *branches | ||
| paths: *paths |
| run: | | ||
| $output = & build/ci/scripts/determine-test-scope.ps1 6>&1 | Out-String | ||
| Write-Host $output | ||
| $required = $output -match 'WebGpuTestsRequired requires tests: true' |
| - uses: actions/download-artifact@v4 | ||
| with: | ||
| name: native-assets-macos | ||
| path: src/Uno.UI.Runtime.MacOS/UnoNativeMac/build/Release |
| appEnvironment: 'UNO_WEBGPU=1 UNO_WEBGPU_LOG=warn' | ||
| # On pull requests only when they touch WebGPU or the test infrastructure (determine-test-scope.ps1). | ||
| condition: "and(succeeded(), or(ne(variables['Build.Reason'], 'PullRequest'), eq(stageDependencies.Setup.DetermineScope.outputs['SetScope.WebGpuTestsRequired'], 'true')))" | ||
| # The iOS and macOS desktop runtime tests run on GitHub Actions: .github/workflows/ci-macos.yml |
|
🤖 Your WebAssembly Sample App stage site is ready! Visit it here: |
|
On cost: I checked this PR's macOS CI run, and GitHub's billable time lists no macOS minutes, so the runners are free here, as you expected. So the blocker is the one you named: 5 concurrent macOS jobs. #26067 has a piece that would help with that:
If this PR is the way forward, I'll cut #26067 down to the scope-script changes so the two don't conflict. |
|
Tick the box to add this pull request to the merge queue (same as
|

GitHub Issue: related to unoplatform/uno-private#2564
Important
Do not merge yet.
macOS CI resultis not a required check, so iOS and macOS failures could merge unnoticed, and macOS runner capacity is not enough today: this PR's own macOS run took 3 h 58 min end to end for about 3 h 4 min of job time, competing withuno.templates(see Known gaps).Results on this PR: the
macOS CIrun passed withfailed=0on all 10 lanes and the same test counts as ADO. ADO build 243930 used no per-minute agents. It failed on Android and WebAssembly: most of the Android failures also occur on master at the same commit, and the WebAssembly one is a singleGiven_ScrollViewtest on the WebGPU lane. Neither lane uses anything this PR changes.PR Type:
🏗️ Build or CI related changes
What changed? 🚀
The iOS and macOS desktop runtime test lanes move from the per-minute
GitHub-hosted Agentspool on Azure Pipelines to GitHub Actions, where the samexcode-27runners are free for public repositories. They reuse the existing test scripts.macOS-26Why some macOS work stays on Azure:
xcode-27.ci-macos.ymlmirrors the Azure branch and path filters, and gates WebGPU on PRs by running the samedetermine-test-scope.ps1. New pushes cancel a PR's running jobs.Evidence so far (fork run on
79f70a81e42, before this PR's changes)All jobs passed, and test counts match ADO build 243847 of the same commit on all 10 lanes, comparing
total + skippedwith the results ADO published:Build steps: iOS 22.2 min against 6.3 on ADO, desktop 8.6 min on macOS against 13.3 on Windows.
Known gaps before this can merge
Uno.UI - CIis required today.macOS CI resultneeds adding to the rulesets, which takes an admin.unoplatform/uno.templatesCI already fills them: on 5 Nov it had 5 jobs running and more queued since 01:40, while this PR's macOS jobs waited with no runner. Replaying the 2-4 Nov job mix from this repo alone through a simulated queue gives a median wait of about 66 min per job at 5 slots and almost none at 10, before countinguno.templates. That simulation models arrivals only and predates PR scoping such as ci(ios): Run one iOS test group on PRs without UIKit changes #26067. This needs a limit increase from GitHub Support, a plan change, or less macOS use inuno.templates.macOS-26with 26.5. Both containx86_64andarm64and target macOS 12.0.PR Checklist ✅
Screenshots Compare Test Runresults.🤖 Generated with Claude Code
https://claude.ai/code/session_01TXMNtzuHnsAaQvehBu4gYL