Repository navigation
iPhone CI: build for any simulator while a fresh one boots - #415
Merged
Merged
Conversation
A probe of the CI simulator's boot (six runners) found every first boot migrates data for 1.5–2 minutes, whatever the simulator, and that xcodebuild resolving the named device stalls while it boots: on #405's runs package resolution took 3.3 minutes beside a boot against ~1 alone, so the build waited on the boot it was meant to overlap. - The tests are built for generic/platform=iOS Simulator with ARCHS=arm64 (IOS_SIM_BUILD in ios-lib.sh) and run on the named device by test-without-building, in ios-test.sh and ios-uitest.sh. The probe build in ios-check.sh uses the same, so it still reuses that build and no longer needs a simulator picked. - BLURT_SIM_FRESH=1, set by check.yml's ios-build, ios-audits and ios-sanitizers, runs on a newly created simulator of the picked one's type and runtime: ready (boot plus first app launch) in 148–158 s in the probe, against 138–250 s for the runner image's own. Off by default, so a Mac doesn't collect a simulator per run. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01DS5B1TXn83VM7ihZ3iFgU5
check.sh's drift check failed on #415 (App/Blurt unchanged; the same check passed on two other PRs two minutes earlier) with nothing but "out of sync". It now prints the XcodeGen version CI installed — Homebrew's current, unpinned — and the regenerated project's diff, so the next drift names its own cause. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01DS5B1TXn83VM7ihZ3iFgU5
Collaborator
Author
|
Results from the first run, on 432590c:
On
That run's Generated by Claude Code |
alexkroman
marked this pull request as ready for review
November 25, 2026 19:19
3 tasks done
This was referenced Nov 25, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What & why
Every iPhone job loses minutes to its simulator's first boot. #405 started the boot in the background while the build runs. A probe across six runners showed why that didn't save much:
xcodebuildstalls resolving the named device while it boots. On Cut check.yml's critical path: shard swiftlint analyze, boot simulators under the build, split ios-build #405's runs, package resolution took 3.3 minutes beside a boot, against about 1 minute on main, where the scripts waited for the boot first.Two changes:
ios-test.shandios-uitest.shbuild with-destination 'generic/platform=iOS Simulator' ARCHS=arm64(IOS_SIM_BUILDinios-lib.sh), so the build never names the booting device.test-without-buildingthen runs on it.ARCHS=arm64because a generic destination otherwise builds every simulator architecture.ios-check.sh's probe build uses the same destination and settings, so it still reuses that build, and it no longer needs a simulator.BLURT_SIM_FRESH=1, set bycheck.yml'sios-build,ios-auditsandios-sanitizers, makesios_require_devicecreate a new simulator with the picked one's device type and runtime. It's off by default, so a Mac doesn't collect a simulator per run.Expected
About 2 minutes off each iPhone job, if the boot now overlaps the build, plus whatever a fresh simulator saves on a slow runner. The iPhone jobs (
ios-audits,ios-build) are the slowest incheck, so this should shorten the whole run.Risk
The main question is whether
test-without-buildingon the named device accepts what the genericarm64build produced. This PR's CI answers it. Draft until that run is green and its timings are compared with #405's.How it was tested
scripts/check.sh --portablepasses.ios_require_devicewithBLURT_SIM_FRESHon and off, checked against a stubxcrun.xcodebuildand simulator behaviour: this PR's CI.scripts/check.shpasses (or CI will, if I'm not on a Mac)I read AGENTS.md and this doesn't reintroduce anything deliberately removed
Docs updated if behavior changed
Generated by Claude Code