Skip to content

Boot the iOS CI simulator slim with simslim - #4

Merged
gartnera merged 1 commit into
mainfrom
claude/brave-darwin-cja4xy
Nov 9, 2026
Merged

gartnera merged 1 commit into
mainfrom
claude/brave-darwin-cja4xy

Conversation

@gartnera

@gartnera gartnera commented Nov 9, 2026 •

Copy link
Copy Markdown
Member

What changes

The iOS integration job now boots its simulator through simslim v0.14.0 instead of plain xcrun simctl bootstatus -b.

  • Before the first boot: simslim writes launchd disable overrides for about 170 background daemons into the shut-down simulator. These are daemons the tests don't use: Siri, Spotlight, widgets, Photos, iCloud, News, telemetry and others.
  • Then: the simulator boots once, with none of those daemons running.
  • Not touched: networking, trustd and the keychain aren't daemons simslim manages. com.apple.gamed, which XCTest app launches wait on, is always kept running.

How it's installed

  • The setup group downloads the release's prebuilt arm64 binary and checks it against a pinned SHA-256.
  • The boot step logs simslim measure (memory and process count) so a slim boot can be confirmed in the log.

Timeout

The boot step's timeout goes from 5 to 8 minutes, and --boot-timeout 7m keeps simslim within it. The extra time is for simslim's fallback: if a runtime ignores the offline overrides, it boots, disables each daemon through launchctl, then reboots. simslim's README warns that this path can be slow on GitHub-hosted runners. This run didn't need the fallback.

Results

Times in seconds. Run 42696382810 against the last 6 green runs on main/PRs:

Boot simulator Native (XCTest) Dart integration Whole iOS job
Before: median (range) 164 (128–227) 72 (55–85) 355 (219–394) 774 (488–944)
This PR 31 13 99 262

What the log shows:

  • Offline path: simslim reconfigured 173 services while the simulator was off, then booted it in 28 s (iPhone 16e, iOS 26.2).
  • Slim boot: the booted simulator had 77 processes and 1.01 GB of memory (phys_footprint).
  • Tests: all ran. 4 native tests and 12 Dart tests passed, and the 4 public-server tests were skipped as before.
  • Network: every call went over HTTP/3, and the warm-up call succeeded on its first attempt.

The suites probably got faster because the simulator was no longer starting about 170 daemons on its first boot while the tests ran.

🤖 Generated with Claude Code

https://claude.ai/code/session_01BqmpXUURTBb53YWh3TzCYG

simslim (MobAI-App/simslim v0.14.0) writes launchd disable overrides for about 170 background daemons the tests
don't use (Siri, Spotlight, widgets, Photos, iCloud, News, telemetry) into the never-booted simulator, which then
boots once with none of them running. It replaces `simctl bootstatus -b`, which it calls itself. Networking, trustd
and the keychain aren't among the daemons it manages, and com.apple.gamed, which XCTest launches wait on, is always
kept.

The job installs the release's prebuilt arm64 binary in the setup group, checked against its SHA-256, and logs the
booted simulator's memory and process count. The boot step's timeout goes from 5 to 8 minutes, as simslim falls back
to booting, disabling each daemon through launchctl and rebooting on a runtime that ignores the overrides.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01BqmpXUURTBb53YWh3TzCYG
@gartnera
gartnera merged commit 2b3a7f0 into main Nov 9, 2026
6 checks passed
@gartnera
gartnera deleted the claude/brave-darwin-cja4xy branch November 9, 2026 20:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants