Repository navigation
fix(ci): survive cold CoreSimulator on fresh CI runners - #26
Merged
Merged
Conversation
The first simctl call on a cold GitHub runner takes long enough to trip simctl_pick_udid.py's 15s timeout, which hard-failed both new CI jobs before their fallbacks could run (ios:build:dev fails the same way inside ios:e2e). Warm the CoreSimulator daemon before any simulator query, give the pick script 60s, and let an empty/failed pick fall through to the any-iPhone fallback instead of exiting. Also widens the e2e app-launch poll from 20s to 60s: first launch after a fresh install can exceed the old budget under load (observed flake). Co-authored-by: opencode-agent[bot] <219766164+opencode-agent[bot]@users.noreply.github.com>
resetAndLaunch (uninstall -> install -> launch) counts against the per-test budget, and CI runners are 2-3x slower than local: the suite died at the 60s wall mid-assertions. 120s keeps local runs unaffected and gives CI comfortable headroom. Co-authored-by: opencode-agent[bot] <219766164+opencode-agent[bot]@users.noreply.github.com>
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.
Summary
simctlcall on a fresh GitHub runner spins up CoreSimulatorService slowly enough to tripsimctl_pick_udid.py's 15s timeout, which hard-failed both new CI jobs from feat: mobilewright e2e suite, coverage automation, and CI gating #25 before their fallbacks could run (andios:build:devfails the same way insideios:e2e). Now: warm the daemon before any simulator query, give the pick script 60s, and let an empty/failed pick fall through to the any-iPhone fallback instead of exiting.tests/helpers.tswidened from 20s to 60s (first launch after fresh install exceeded the budget under load), and the per-test timeout raised from 60s to 120s (resetAndLaunchcounts against the test and CI runners are 2-3x slower — the suite hit the 60s wall mid-assertions).Consequences
None — task behaviour is unchanged on warm machines.
Testing
mise run ios:e2e4/4 passed in 58s after the fixes