Skip to content

fix: wait for the iOS app installer before readiness - #614

Merged
V3RON merged 3 commits into
mainfrom
bug/547
Oct 16, 2026
Merged

V3RON merged 3 commits into
mainfrom
bug/547

Conversation

@V3RON

@V3RON V3RON commented Oct 16, 2026 •

Copy link
Copy Markdown
Contributor

What is this?

Prevents iOS simulator leases from being granted before the app installer is ready. Closes #547.

How does it work?

After bootstatus, the iOS driver polls scoped simctl listapps within the remaining readiness budget. Failed or hung probes retry; expiry fails readiness and attempts shutdown. Both boots of a slim device use the same check.

Why is this useful?

The first install after a grant no longer races a boot that has not passed the installer probe.

  • Readiness waits for a successful installer probe.
  • Regression tests cover retries, hung probes, and the shared deadline.
  • 1,225 changed unit tests pass; commit and push checks pass.
  • Targeted slow-lane test passes (155 s): immediate install after initial grant and after erase/reuse; other tests filtered out.

Status

Implementation, reviews, and targeted hardware verification complete. Ready for review.

Assumptions

Assumption: the existing bootstatus timeout covers bootstatus and installer polling together; the boot command keeps its separate timeout.

Review

Spec review: 0 blocking, 0 fixed, 0 notes. Code review: 0 blocking, 0 fixed, 0 notes. Claims review: 0 blocking, 3 fixed, 0 notes.

Rounds: 1. Tokens: n/a.

Fixed unreviewed (text only): clarify the recovery deadline, slim event timing, and recovery's skipped slim pass.

Written by an agent.

V3RON added 3 commits October 16, 2026 10:05
Require a successful installer probe after bootstatus and preserve the existing readiness deadline for retries and hung probes.
Poll scoped listapps after every simulator boot, retry transient failures within the existing readiness budget, and shut down on expiry. Cover immediate installs after erase in the slow lane.
Resolve claims review findings: recovery keeps the normal readiness budget, skips re-slimming, and the slim event records the simulator commit.
@V3RON
V3RON marked this pull request as ready for review October 16, 2026 08:20
@V3RON
V3RON merged commit 2c6ff7e into main Oct 16, 2026
53 checks passed
@V3RON
V3RON deleted the bug/547 branch October 16, 2026 08:37
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.

An iOS device is marked ready before its app installer is

1 participant