Repository navigation
Boot the iOS CI simulator slim with simslim - #4
Merged
Merged
Conversation
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
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 changes
The iOS integration job now boots its simulator through simslim v0.14.0 instead of plain
xcrun simctl bootstatus -b.trustdand the keychain aren't daemons simslim manages.com.apple.gamed, which XCTest app launches wait on, is always kept running.How it's installed
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 7mkeeps simslim within it. The extra time is for simslim's fallback: if a runtime ignores the offline overrides, it boots, disables each daemon throughlaunchctl, 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:What the log shows:
phys_footprint).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