Skip to content

ci(ios): Run one iOS test group on PRs without UIKit changes - #26067

Draft
Jen-Uno wants to merge 8 commits into
masterfrom
dev/jen/mac-ci-paid-minutes
Draft

Jen-Uno wants to merge 8 commits into
masterfrom
dev/jen/mac-ci-paid-minutes

Conversation

@Jen-Uno

@Jen-Uno Jen-Uno commented Nov 4, 2026 •

Copy link
Copy Markdown
Contributor

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-ios label, 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 Agents pool, 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:

  1. No full skip. The first version skipped Tests - iOS on most PRs and relied on master to catch iOS breaks. That doesn't work today: the master-health stage never runs on GitHub PRs (it compares System.PullRequest.TargetBranch with refs/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.
  2. One group on every PR. .azure-devops-tests-ios.yml takes a new extraGroupsCondition. When it's set, it replaces condition for every group but group 0. The Skia lane sets it to the UIKitTestsRequired gate; the build job and group 0 keep their default condition. The WebGPU lane keeps its own WebGpuTestsRequired gate, as on master.
  3. No rerun limit. On PR builds, third-or-later attempts on the per-minute pool were 4 outside chore: Update to .NET 11 rc.2 #25492 from 19 Oct to 4 Nov, and 4 from 3 to 16 Nov. A blocked job could only go on with a new run, which repeats every Mac job. The six job templates are back to their master versions and mac-rerun-limit.yml is removed.
  4. Label wording. Setup's result is reused when failed jobs are rerun, so the skip message now says to add ci/run-ios and 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 UIKitTestsRequired detection in determine-test-scope.ps1, which now decides groups 1–3 instead of the whole stage. It's set by:

  • iOS/tvOS paths, including either side of a rename;
  • the Apple toolchain files;
  • changed lines that hold iOS/tvOS code (__IOS__, OperatingSystem.IsIOS(), IsUIKit(), iOS runtime-test platforms, MSBuild $(IsIOS), -ios target frameworks, XAML ios:);
  • any PR into a branch other than master;
  • the ci/run-ios label.

If the diff can't be read, it's set, so the PR runs everything.

Open questions.

  • Who watches groups 1–3 on master? A PR without iOS changes that breaks a test outside group 0 now shows up only on master, which is rarely green. That's a smaller version of the gap the review raised. Until master health has an owner, this is accepted risk.
  • How this relates to ci: Move iOS and macOS test lanes to GitHub Actions #26090. If iOS moves to GitHub's free macOS runners, the minutes this saves stop costing money, and PRs could go back to running every group. Until then it saves per-minute Mac time and shortens the shared pool's queue.

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.ps1 parses 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 ✅

🤖 Generated with Claude Code

Jen-Uno and others added 2 commits November 4, 2026 17:03
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]>
@github-actions github-actions Bot added the area/build Categorizes an issue or PR as relevant to build infrastructure label Nov 4, 2026
@Jen-Uno

Jen-Uno commented Nov 4, 2026

Copy link
Copy Markdown
Contributor Author

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

  • A blocked attempt still paid for its always() publish steps retrying on missing logs, about 6.5 minutes per job (operability, skeptic). The guard now sets UNO_MAC_RERUN_BLOCKED and the 13 always() steps in the guarded jobs check it. 296d2c3
  • "Queue a new run" pointed people at the costliest recovery (performance, quality, contract, skeptic, jerome). The message now says to push a fix, or flag the failure on the PR if it's unrelated. 296d2c3
  • The limit applied to every build reason, including the native macOS build every stage waits on (architect, performance, jerome). It's PR-only now and the native build is exempt. On non-PR builds third attempts passed 4 times out of 13; on PRs, 2 out of 145. 296d2c3
  • Desktop macOS's implicit checkout ran before the guard (operability, quality, architect, skeptic, jerome). It has an explicit checkout after the guard now. 296d2c3
  • No warning before the last allowed rerun (operability). 296d2c3
  • The path-only gate missed iOS code in shared files and iOS-only runtime tests (contract, skeptic, jerome, security hand-off). git diff -G now checks changed lines for iOS/tvOS conditionals, OperatingSystem.IsIOS()/IsTvOS() and iOS test platforms. a4f0083
  • Xcode image, SDK and Mac install changes no longer ran the iOS tests (architect, skeptic). Added to the path pattern. a4f0083
  • The iOS app build still ran on every PR (quality, architect, performance). The whole iOS stage is gated now. a4f0083
  • The iOS WebGPU lane followed a different rule (quality, jerome). It needs both flags now. a4f0083
  • The new wait on the desktop build slowed iOS and could hide its results on master (performance, architect, contract, skeptic, jerome). Dropped. a4f0083
  • "Apple" in the flag name also suggests macOS (architect). Renamed UIKitTestsRequired. a4f0083
  • The commented-out tvOS stage used stageDependencies in a stage-level condition (quality, existing before this PR). Fixed to dependencies. a4f0083
  • The second commit's subject read as adding coverage (contract). Reworded.

Open questions

  • Who owns the rerun policy and maxAttempts, and do release or servicing builds ever need a bypass? Non-PR builds are unaffected for now. (jerome)
  • When a shared change turns master red on iOS, who is told? check-master-status.ps1 blocks every PR after 24 hours. (contract, jerome)
  • When the iOS build job is rerun, its test groups run for the first time as attempt 2, so they get no rerun of their own. Build timelines confirm this; the PR body lists it as a known limit. (skeptic, operability)
  • publish/.azure-devops-publish-ios-testflight.yml uses the xcode-27 image with no pool name and has no limit. Which pool does it land on? (quality, architect, skeptic, jerome)
  • The guard relies on each job template including it; a Validations check could enforce that for every job on the pool. Not done. (architect)
  • Changes to job-deadline.yml or ci-job-budget.sh don't set the flag. Not done. (skeptic)
  • The rerun figures count attempts, not jobs, over a window that includes fix(ci): Stop iOS runtime-test false greens #25648 and chore: Update to .NET 11 rc.2 #25492. Replaying the gate over PRs that broke iOS on master would show what it misses. (skeptic, jerome)

Confirmed

  • job-deadline is still the first step.
  • Nothing anywhere still reads TvOSTestsRequired.
  • The job conditions use the same form as the existing WebGPU gates, and Setup is still a direct dependency.
  • A skipped job can't turn a failed build green.
  • Nothing attacker-controlled reaches the guard's script, and a fork PR gets nothing new from the scope gate (security).

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]>
@Jen-Uno

Jen-Uno commented Nov 4, 2026

Copy link
Copy Markdown
Contributor Author

Review panel, second pass. All eight lenses reviewed the committed version (296d2c3, a4f0083). The fixes are in ba795ff.

Verdicts:

  • architect, quality, operability, contract, performance: approve-with-changes
  • skeptic: fix-first
  • jerome: resolve-questions-first
  • security: no-findings

Fixed in ba795ff

  • The changed-lines check missed common forms of iOS code (skeptic, jerome, architect). Now also caught:

    • IsUIKit(), IsMobile(), Is(IOS|TvOS)VersionAtLeast and SkiaMobile;
    • MSBuild $(IsIOS)/$(IsTvOS)/$(IsAppleUIKit) conditions and -ios/-tvos target frameworks;
    • XAML ios:/tvos: attributes.

    IsMacCatalyst() is dropped, since no lane runs it.

  • A file moved out of an iOS folder only listed its new path (skeptic). Both diffs use --no-renames now.

  • If listing the changed files failed, every scope stayed off (architect, skeptic). An older bug, but iOS now depends on it. The script enables every scope instead.

  • The iOS gate was copied into three job conditions plus a new build-template parameter (architect, quality). It's one stage condition now. The parameter is gone and the iOS WebGPU lane is back to its original condition.

  • The commented tvOS line's switch to dependencies. wasn't a fix (contract, quality). The live stageDependencies stage gates do run: on 25 recent PR builds, Templates ran 9 times and was skipped 16 times. Reverted, and noted in the commit message, since the first two commits are already pushed.

  • Release and servicing PRs would have lost iOS (jerome). PRs into any branch other than master keep the stage.

  • Nothing in the log said why iOS was skipped (operability). There's a line now, and git failures show as build warnings with their exit code.

  • "Download previous test runs failed tests" still ran on a blocked attempt (operability, contract, skeptic, jerome). It needs succeeded() now.

  • The disabled macOS template-test job lacked the explicit checkout and the publish gate (performance, quality, contract, skeptic, architect). Both added.

  • The PR body overclaimed iOS compile coverage (contract). It now says "the iOS library targets"; the SamplesApp and runtime-test iOS heads build only on master or UIKit PRs.

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):

  • It would still have run iOS on 8.
  • The other 5 touch no iOS code.
  • 3 of those 5 failed on 3 and 4 Nov, the same days master's own iOS groups failed for real.

That points to inherited failures, but it isn't proof.

Still open

  • Shared dotnet-install.yml steps without a status function still run on a blocked attempt (operability). This adds a few red errors and seconds. Fixing it changes behaviour on every pool, so it belongs in its own PR.
  • The guard is an opt-in include per job (architect). A Validations check could enforce it.
  • The changed-lines check is a second mechanism next to the path table (architect). A content-pattern table per scope would keep one shape if another scope needs it.
  • A fix for an iOS regression on master that has no iOS markers can't show iOS green on its own PR without a manual run (jerome). A label or queue variable to force the flag is not done.
  • The script prints PR file names to the log (security, info). This is pre-existing and gives a fork nothing new.
  • Items from the first pass:
    • the rerun-policy owner and bypass;
    • who is told when master goes red on iOS;
    • runners starting at attempt 2;
    • the TestFlight job's pool.

Confirmed

  • Nothing can skip iOS on master or turn a failed build green.
  • UNO_MAC_RERUN_BLOCKED is job-scoped and set before the guard exits.
  • git diff A..B compares trees, so --depth=200 doesn't affect it.
  • The Setup check takes about a second, on Linux.
  • Only Uno.UI - CI and Uno.UI - docs are required checks, so skipped iOS jobs don't block a merge.
  • Azure DevOps expands the final pipeline without errors.

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]>
@Jen-Uno
Jen-Uno marked this pull request as ready for review November 4, 2026 22:34
@unodevops

Copy link
Copy Markdown
Contributor

🤖 Your WebAssembly Sample App stage site is ready! Visit it here:

@agneszitte agneszitte 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.

@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.ps1 watches).
  • That check doesn't run on GitHub PRs. The master_health stage compares System.PullRequest.TargetBranch with refs/heads/master, but for GitHub repos Azure DevOps sets it to master (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 - CI and Uno.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.

Jen-Uno and others added 2 commits November 16, 2026 16:04
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]>
@Jen-Uno Jen-Uno changed the title ci: Limit per-minute Mac jobs on pull requests ci(ios): Run one iOS test group on PRs without UIKit changes Nov 16, 2026
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]>
@Jen-Uno

Jen-Uno commented Nov 16, 2026

Copy link
Copy Markdown
Contributor Author

Review panel on the rework (head 1e1adce24e; fixes in 4745017e7d). Eight lenses, read-only.

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 4745017e7d

  • A partial iOS run is invisible (operability). Skipped groups 1–3 look like any skipped job, and the GitHub check is the same green. Builds that run only group 0 now get the build tag ios-group0-only.
  • A failed label read said the label was missing (operability). The message now says the labels couldn't be read and to comment /azp run again.
  • Only 30 labels were read (operability, via skeptic). Now ?per_page=100.
  • A multi-line error could cut the warning short (operability, security). Only the first line is logged.
  • Comments left from the stage-level skip (architect, quality). The script header, the "keep the iOS stage" comment and the tvOS comment now describe groups 1–3. UIKitTestsRequired is described as "run the full Apple lanes". The duplicate stage comment is gone.
  • extraGroupsCondition replaces the lane's condition rather than adding to it (architect, contract). Kept as is, and the parameter comment now says to include the lane's own gate if both are set.
  • The PR body overstated the saving as "three of four groups" (skeptic, quality, performance). It now gives about 28 Mac minutes per PR without iOS changes, about 55% of the stage, an estimated 4,000–5,500 minutes a week.

Answered

  • Is group 0 a fair sample? (jerome, architect). UnitTestsControl.cs assigns each test to a group by a SHA1 hash of its class and method name, modulo 4. Group 0 is a stable, spread-out quarter of all tests, the same one on every PR.
  • Does the job-level stageDependencies.Setup.DetermineScope.outputs[...] form work? (skeptic, architect, jerome). Yes. It matches the existing WebGPU job conditions, and the stage depends on Setup.
  • Does the compile-time if/else inside the template's parameters expand correctly? (skeptic). Yes. It has the same shape as the JobName if/else in the same file, and group 0's empty condition leaves the runner's default succeeded().

Left open

  • Who watches groups 1–3 on master (jerome, high). The PR body states it as accepted risk until master health has an owner.
  • Sequencing with ci: Move iOS and macOS test lanes to GitHub Actions #26090 (jerome). Noted in the PR body: if iOS moves to free runners, PRs could run every group again.
  • Replaying the iOS-code check over recent PRs for misses and false triggers (jerome). Not done. IsMobile( also matches Android-only code (quality).
  • History (quality). Merged as is, all six commits would land, including the reversed "Allow one rerun" and stage-level gate. Squash-merging avoids that.
  • The ci/run-ios label still has to be created (jerome, operability).
  • The group-0-only path is first exercised after merge, since this PR changes the gate and runs every group (skeptic, jerome). A throwaway PR without iOS changes would exercise it first.
  • Renaming the Setup step "Evaluate template/screenshot-impacting changes" (operability, low). Not in this PR.

Security found nothing sensitive.

@unodevops

Copy link
Copy Markdown
Contributor

🤖 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]>
@Jen-Uno

Jen-Uno commented Nov 23, 2026

Copy link
Copy Markdown
Contributor Author

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 (ef87bbd638), which cleared a conflict with today's determine-test-scope.ps1 change.

1. Skipping iOS moves the work to master. You're right. master_health never runs on GitHub PRs, and a new iOS failure wouldn't stand out on a master that's red anyway. 1e1adce24e removes the stage-level skip, so iOS build and startup breaks show up on the PR again. Groups 1–3 can still be skipped on a PR with no iOS changes, so a smaller version of your concern is left: nobody watches those groups on master. Is that acceptable until master health has an owner, or do you want something for it before this merges?

Builds that skip groups 1–3 now get the build tag ios-group0-only (4745017e7d), so a partial run isn't just a skipped job.

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. 6250e01a39 puts the six job templates back to master's version and deletes mac-rerun-limit.yml. My count matches yours: on PR builds, third-or-later attempts outside #25492 were 4 from 19 Oct to 4 Nov, and 4 from 3 to 16 Nov.

4. The ci/run-ios label. The skip message now says to add the label and comment /azp run, since a rerun reuses Setup's result. If the labels can't be read, the message says so instead of saying the label is missing, and up to 100 labels are read (4745017e7d). The call is still anonymous, so on a busy agent IP it can still be ignored with a warning. The label still has to be created in the repo; I'll create it before this merges.

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?

@unodevops

Copy link
Copy Markdown
Contributor

🤖 Your WebAssembly Sample App stage site is ready! Visit it here:

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area/build Categorizes an issue or PR as relevant to build infrastructure

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants