You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
iOS devices: keep the runner warm across close and open, and retain it on iPad relaunch #5140
Test suites on remote and cloud iOS devices open and close the app for each test. Each close stops the runner on physical devices, so the next open pays a cold runner start (about 6–7 s plus CoreDevice retries, based on the #2200 measurements). The simulator already keeps the runner across close. Physical iPad also misses relaunch retention.
On CoreDevice-backed physical iOS and iPadOS, close does not stop the runner before it terminates the app. Today close calls stopRunnerSession unconditionally for non-simulator Apple devices (packages/platform-apple/src/lifecycle.ts:450-457). Use the existing releaseRunnerOnClose({ retain }) decision (lifecycle.ts:475-478) and the post-replacement lifecycle reset from perf: retain iOS runner across physical relaunch #2200, so that the next open reuses the runner without a stale app target.
shouldRetainRunnerForRelaunch admits ipados as well as ios (lifecycle.ts:436-447).
The XCTest (usbmux-only) backend, tvOS and visionOS keep today's behavior.
Amend ADR 0005 (lines 163-168 and 219 state "until separate evidence"), following docs/adr/FORMAT.md.
Completion conditions
Unit tests cover retention on close for CoreDevice iOS/iPadOS and no retention for the excluded backends and OSes.
The PR attaches the perf: retain iOS runner across physical relaunch #2200 evidence bar on one physical iPhone and one physical iPad: 8 matched open/close/open cycles, base vs. branch, reporting runner prewarm wait, retries, total wall time, and a correct first snapshot after the target reset.
Dependencies
None. Builds on #2200 (relaunch retention on physical iOS).
The issue requests new behavior: keeping the runner warm across close/open on CoreDevice-backed iOS/iPadOS and admitting ipados for relaunch retention, with file locations, ADR changes, tests, and completion criteria. It describes an enhancement rather than a defect.
Activity
apex-sentinel-staging commentedon Nov 27, 2026
Apex Sentinel · Issue review
Suggested label:
featureThe issue requests new behavior: keeping the runner warm across close/open on CoreDevice-backed iOS/iPadOS and admitting ipados for relaunch retention, with file locations, ADR changes, tests, and completion criteria. It describes an enhancement rather than a defect.