Repository navigation
Conversation
The iOS and macOS jobs run on the "GitHub-hosted Agents" pool since Xcode 27 needs Apple Silicon, and that pool bills per minute. On pull requests, failed Mac jobs were rerun up to eight times; from 19 Oct to 4 Nov, third and later attempts there passed 2 times out of 145. A step template now fails attempt 3 and later straight away on PR builds, with a warning on the last allowed rerun. It sets UNO_MAC_RERUN_BLOCKED so the jobs' always() publish steps don't retry on logs a blocked attempt never wrote. Master and release builds keep their reruns, and the native macOS build is exempt because every stage waits on it. Desktop macOS gets an explicit checkout so it runs after the guard. Refs unoplatform/uno-private#2564 Co-Authored-By: Claude Opus 5.5 <[email protected]>
Pull requests ran the iOS app build and four runtime-test groups on per-minute Mac agents whatever they changed. The Apple flag in determine-test-scope.ps1 (TvOSTestsRequired, read only by the disabled tvOS stage) becomes UIKitTestsRequired and now gates the whole iOS stage on PRs. The iOS WebGPU lane needs it as well as WebGpuTestsRequired. Master and manual runs still run everything. Besides file paths, the flag now matches the Apple toolchain files (.vsts-ci.yml, global.json, the Mac install and Xcode templates) and, through git diff -G, changed lines with iOS/tvOS conditionals, OperatingSystem.IsIOS()/IsTvOS() checks or iOS-only runtime-test platforms in shared files. Also fixes the commented-out tvOS stage condition to use the stage-level dependencies syntax. Refs unoplatform/uno-private#2564 Co-Authored-By: Claude Opus 5.5 <[email protected]>
|
Review panel. Eight lenses ran on the first draft, before anything was committed. The fixes are in the two commits. Verdicts on that draft: architect approve-with-changes, skeptic fix-first, quality approve-with-changes, operability approve-with-changes, contract approve-with-changes, performance approve-with-changes, security no-findings, jerome resolve-questions-first. Fixed
Open questions
Confirmed
|
From the second review pass: - One stage condition on Tests - iOS replaces the three job conditions and the iOS build template's condition parameter. It uses the same stageDependencies form as the live Templates and Screenshots gates, which do run on PRs. The iOS WebGPU lane is back to its WebGPU-only job condition, and the commented-out tvOS stage goes back to that form too: the earlier switch to dependencies. wasn't a fix. - The changed-lines check also catches IsUIKit(), IsMobile(), Is(IOS|TvOS)VersionAtLeast, SkiaMobile, MSBuild $(IsIOS)/$(IsTvOS)/ $(IsAppleUIKit) conditions, -ios/-tvos target frameworks and XAML ios:/tvos: attributes. - Both diffs use --no-renames, so a file moved out of an iOS folder still counts. If listing the changed files fails, every scope is enabled instead of none. - PRs into any branch other than master keep the iOS stage. - The log says why iOS was skipped and how to run it, and git failures surface as build warnings with their exit code. - "Download previous test runs failed tests" no longer runs after the rerun guard fails. The disabled macOS template-test job gets an explicit checkout and a gated publish, like the other jobs. Refs unoplatform/uno-private#2564 Co-Authored-By: Claude Opus 5.5 <[email protected]>
|
Review panel, second pass. All eight lenses reviewed the committed version (296d2c3, a4f0083). The fixes are in ba795ff. Verdicts:
Fixed in ba795ff
Escape rate (jerome). I replayed the rule over the 13 PRs whose iOS runtime tests failed for real between 19 Oct and 4 Nov (failed on the first attempt and never passed on rerun):
That points to inherited failures, but it isn't proof. Still open
Confirmed
|
A PR with no iOS/tvOS paths or changed lines skips Tests - iOS. The ci/run-ios label now turns UIKitTestsRequired on, so a maintainer can run the stage on any PR, including one from a fork. Setup has no GitHub token, so the labels are read anonymously. If that fails, for example under GitHub's rate limit, the script warns and ignores the label rather than running iOS on every PR. Adding the label doesn't restart a running build: rerun the pipeline afterwards. The label itself still has to be created in the repository. Refs unoplatform/uno-private#2564 Co-Authored-By: Claude Opus 5.5 <[email protected]>
|
🤖 Your WebAssembly Sample App stage site is ready! Visit it here: |
There was a problem hiding this comment.
@Jen-Uno, I checked a few things against the per-minute pool's job history, the docs and this PR's build.
Concerns, most important first, that need to be reviewed carefully by @MartinZikmund as well:
1. Skipping iOS on PRs moves the work to master, and we can't absorb that
- The PR relies on master to catch iOS regressions from PRs that skip Tests - iOS (the body says master is what
check-master-status.ps1watches). - That check doesn't run on GitHub PRs. The
master_healthstage comparesSystem.PullRequest.TargetBranchwithrefs/heads/master, but for GitHub repos Azure DevOps sets it tomaster(docs). It was skipped on this PR's build (243783). - Turning it back on isn't the answer. When it was active, a master that stayed red for a day blocked every PR, delayed everyone, and left a lot of PRs to re-run afterwards.
- Master hasn't had a succeeded or partially succeeded build since 7.0-dev.1513 on Oct 6 (the TestFlight job alone fails on every master build: https://github.com/unoplatform/uno/issues/26061), so a new iOS failure wouldn't stand out.
- So someone would have to check every master build's iOS results and find which merge broke them. That's daily extra work.
2. Suggestion of a cheaper option that keeps the iOS checks on the PR
- Keep the iOS app build and one test group on every PR, and the full stage for UIKit PRs. Replaying your rule over the 91 PRs that ran Tests - iOS from Oct 28 to Nov 3, the full skip saves about 6,400 per-minute minutes a week. This would save about 4,900 of them.
- Move the macOS desktop runtime tests back to the free Intel agents. They don't need Xcode 27, ran there until Oct 27, and use about 3,200 per-minute minutes a week (PRs and master). Trade-off: they'd test macOS on Intel instead of Apple silicon.
- Together that's about 8,100 minutes a week, more than the full skip. iOS build and startup breaks still show up on the PR, along with a quarter of the iOS runtime tests.
3. The rerun limit saves almost nothing outside #25492
- Counting attempts in the pool's job history (reruns show up as
.__default.2,.__default.3), PR builds had 270 third-or-later attempts on the per-minute pool from Oct 19 to Nov 4. 266 were from #25492 itself. All other PRs had 4, about 15 minutes in total. - Once a job is blocked, the only way forward is a new run, which repeats every Mac job in the build.
- It touches six job templates and 13 publish conditions. I'd move it to its own PR, or drop it.
4. The ci/run-ios label
- It still has to be created.
- It's read without a token, and GitHub allows 60 unauthenticated calls per hour per IP (docs). On a shared agent IP the call can fail, and the label is then ignored with only a warning.
- A rerun reuses the Setup result, so a label added later needs a new run. The skip message could say "comment
/azp run" instead of "rerun the pipeline".
Checked and fine
- Setup ran the new script and set
UIKitTestsRequired, because this PR edits the gate. - No later stage depends on Tests - iOS, and the only required checks are
Uno.UI - CIandUno.UI - docs, so a skipped iOS stage can't block a merge. - The two red jobs so far (Android+NativeAOT build, Android runtime tests) run on Linux agents, which this PR doesn't change. The Android+NativeAOT build fails the same way on master (243536).
- The panel's TestFlight question: that job can't get an agent because it has no pool name, tracked in https://github.com/unoplatform/uno/issues/26061.
On pull request builds, third-or-later attempts of jobs on the per-minute Mac pool were almost all from one PR: 4 elsewhere from 19 Oct to 4 Nov, and 4 from 3 to 16 Nov. A blocked job could only move on with a new run, which repeats every Mac job, so the limit cost more than it saved. This restores the six job templates to their state before the limit and removes the guard template. Co-Authored-By: Claude Opus 5.5 <[email protected]>
Skipping Tests - iOS on PRs without UIKit changes left master to catch iOS breaks, but master health doesn't run on GitHub PRs and master is rarely green, so a new iOS failure wouldn't stand out. Every PR now builds the iOS app and runs Skia runtime-test group 0, so build and startup breaks still show on the PR. Groups 1-3 run on PRs only when UIKitTestsRequired is set (iOS/tvOS code, the Apple toolchain, a non-master target or the ci/run-ios label). The WebGPU lane keeps its own gate. Other builds run everything, as before. The skip message now says to comment /azp run after adding the label, since rerunning failed jobs reuses Setup's result. Co-Authored-By: Claude Opus 5.5 <[email protected]>
Review panel follow-ups on the partial iOS run: - Tag builds that skip iOS groups 1-3 with ios-group0-only, since skipped groups look like any other skipped job and GitHub shows the same green check. - When the PR's labels can't be read, say so instead of claiming the ci/run-ios label is missing. - Read up to 100 labels (the default page is 30) and log only the first line of a failed read. - Comments: describe UIKitTestsRequired as "run the full Apple lanes", drop wording left from the stage-level skip, and note that extraGroupsCondition replaces the lane's condition. Co-Authored-By: Claude Opus 5.5 <[email protected]>
|
Review panel on the rework (head Verdicts: skeptic ship; contract and performance approve; security no-findings; architect, quality and operability approve-with-changes; jerome resolve-questions-first. Overall: fix-first, no blockers. Fixed in
Answered
Left open
Security found nothing sensitive. |
|
🤖 Your WebAssembly Sample App stage site is ready! Visit it here: |
Keeps both scopes in determine-test-scope.ps1: master's WasmMTTestsRequired and this branch's UIKitTestsRequired (the former TvOSTestsRequired). The description and the scope comments name both. Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
|
Thanks for the review, agneszitte. TL;DR: I took your cheaper option. Every PR now builds the iOS app and runs Skia group 0, the full stage runs for UIKit PRs, the rerun limit is gone and the label messages are fixed. Moving the macOS desktop tests to Intel isn't in this PR. I also merged master ( 1. Skipping iOS moves the work to master. You're right. Builds that skip groups 1–3 now get the build tag 2. The cheaper option. Done as you described: the iOS app build and Skia group 0 on every PR, the other groups for UIKit PRs. Group 0 isn't hand-picked. The runtime-test engine assigns each test to a group by a SHA1 hash of its class and method name, so it's a stable, spread-out quarter of the tests. I get about 28 Mac minutes saved per PR without iOS changes, 4,000–5,500 a week, close to your 4,900. The macOS desktop move to the free Intel agents is not in this PR. It changes which architecture those tests cover, so I'd rather it be its own PR. From 3 to 16 Nov I count about 5,600 per-minute minutes a week for those tests (PRs and master), against your 3,200 for the earlier window. 3. The rerun limit. Dropped. 4. The An eight-lens review panel ran on the rework, and its findings and what I did with them are in this comment. Could you take another look when you have time? |
|
🤖 Your WebAssembly Sample App stage site is ready! Visit it here: |
GitHub Issue: refs unoplatform/uno-private#2564
PR Type:
🏗️ Build or CI related changes
What changed? 🚀
TL;DR — On pull requests that don't touch iOS code, Tests - iOS now builds the app and runs Skia runtime-test group 0 instead of all four groups, so iOS build and startup breaks still show up on the PR. PRs with iOS changes, PRs into other branches, PRs with the
ci/run-ioslabel, and every non-PR build run everything as before. The rerun limit from the first version is gone. Reworked on 16 Nov after agneszitte's review.Why. Since the .NET 11 update the iOS jobs run on the per-minute
GitHub-hosted Agentspool, because Xcode 27 needs Apple silicon. From 3 to 16 Nov, iOS jobs on PR builds used roughly 10,000 per-minute Mac minutes a week. On clean runs of three 16 Nov PR builds, the iOS app build took 8–18 minutes and each Skia group 8–11, so a PR without iOS changes saves about 28 Mac minutes, roughly 55% of the stage (less when it also runs the WebGPU lane). That's an estimated 4,000–5,500 minutes a week, a little under the review's 4,900 because the build still runs on every PR.Group 0 isn't hand-picked: the runtime-test engine assigns each test to a group by a SHA1 hash of its class and method name, modulo 4 (
UnitTestsControl.cs). So group 0 is a stable, spread-out quarter of all tests, the same quarter on every PR.Builds that skip groups 1–3 get the build tag
ios-group0-only, since the skipped groups otherwise look like any other skipped job and GitHub shows the same green check.What changed since the first version, following the review:
System.PullRequest.TargetBranchwithrefs/heads/master, and it was skipped on every PR build checked on 16 Nov), and master passed 1 of 13 builds from 12 to 16 Nov, so a new iOS failure wouldn't stand out there..azure-devops-tests-ios.ymltakes a newextraGroupsCondition. When it's set, it replacesconditionfor every group but group 0. The Skia lane sets it to theUIKitTestsRequiredgate; the build job and group 0 keep their default condition. The WebGPU lane keeps its ownWebGpuTestsRequiredgate, as on master.mac-rerun-limit.ymlis removed.ci/run-iosand comment/azp run. The label is still read anonymously, so on a busy agent IP it can be ignored with a warning; the message then says the labels couldn't be read rather than that the label is missing. Up to 100 labels are read. The label still has to be created in the repo.Kept from the first version: the
UIKitTestsRequireddetection indetermine-test-scope.ps1, which now decides groups 1–3 instead of the whole stage. It's set by:__IOS__,OperatingSystem.IsIOS(),IsUIKit(), iOS runtime-test platforms, MSBuild$(IsIOS),-iostarget frameworks, XAMLios:);ci/run-ioslabel.If the diff can't be read, it's set, so the PR runs everything.
Open questions.
Not in this PR. The review's other suggestion, moving the macOS desktop runtime tests back to the free Intel agents (roughly 5,600 per-minute minutes a week from 3 to 16 Nov, PRs and master), changes which Mac architecture those tests cover, so it's better as its own PR.
Checked. Both YAML files parse and
determine-test-scope.ps1parses with PowerShell. The branch merges cleanly with current master. An eight-lens review panel ran on the rework; its findings and what was done with them are in a comment below. This PR changes the gate, so its own build runs every iOS group; the first PR without iOS changes after it merges is the real test of the group-0-only path.PR Checklist ✅
Screenshots Compare Test Runresults.: not applicable🤖 Generated with Claude Code