Skip to content

fix(ios): the simctl commands of a simulator's lifecycle wait ios.simulator.lifecycleTimeoutMs, and a create or clone that answers late is deleted (#1546) - #1547

Draft
dpearson2699 wants to merge 2 commits into
callstackincubator:mainfrom
dpearson2699:bug/1546

Conversation

@dpearson2699

@dpearson2699 dpearson2699 commented Nov 13, 2026 •

Copy link
Copy Markdown

Closes #1546.

An outside draft: #1546 is new and untriaged, so no bug:ready issue backs this. Take it, change it or close it.

What changes

  • ios.simulator.lifecycleTimeoutMs (positive number, default 30000) is the limit of the simctl commands of a simulator's lifecycle: create, clone, boot, shutdown and delete. Every other simctl call keeps 30 s.
  • At the limit a create or clone gives its caller the same timed out after <n>ms error and is no longer killed. When it ends, the simulator it names is deleted from the set it was made in: Xcode's set under drivers.ios.deviceSet: "default".
  • A late copy of a seed keeps the seed's turn until it ends.
  • A create or clone still silent 5 minutes past the limit is killed, and a warning names it.
  • boot, shutdown and delete are killed at the limit, as before.
  • No wire shape, event or protocol change.

Limits

The late simulator is known by the UDID the driver's own command prints, never by its name (safety rule 8). A daemon restart during a late copy still leaves the simulator, as #968's known gap says; the manual names both. A boot deadline starts when simctl boot ends, so a boot may now take the limit and the deadline. The unit tests use a fake simctl; no slow-lane test was added or run.

Status

Assumptions

Review

Spec review: skipped. Code review: skipped. Claims review: skipped.

None of this repository's review lenses ran on this draft.

Written by an agent.

…s, and one that answers late is deleted (callstackincubator#1546)

`simctl create` and `simctl clone` were cut off at the 30 s every simctl
call gets. CoreSimulator's service finishes the simulator after `simctl`
is killed, so each cut-off clone under `drivers.ios.deviceSet: "default"`
left a simulator with no mark that nothing could list or delete.

The three calls that make a simulator (a provision's clone, a seed's
create, a saved baseline's clone) now wait `ios.simulator.createTimeoutMs`
(default 30000). At that limit the caller gets its error and the command
runs on: the simulator it names when it ends is deleted from the set it
was made in, and a copy of a seed keeps the seed's turn until then. A
command still silent 5 minutes later is killed and logged.
@coderabbitai

coderabbitai Bot commented Nov 13, 2026

Copy link
Copy Markdown

Important

Draft PR not reviewed

Draft PRs are not automatically reviewed by default.

  • Trigger a manual review

To automatically review draft PRs, update your CodeRabbit configuration:

reviews:
  auto_review:
    drafts: true
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

Share

…os.simulator.lifecycleTimeoutMs (callstackincubator#1546)

On the Mac that reported callstackincubator#1546, a lease with the first commit alone still
failed at a load average near 1000: `simctl boot` and then the `simctl
shutdown` of the failed device each passed their fixed 30 s. They are the
same slow commands of a simulator's lifecycle as create and clone, so one
key now holds the limit of all five and is named for that.

`boot`, `shutdown` and `delete` are still killed at the limit, as before:
the simulator they act on is already marked and recorded.
@dpearson2699 dpearson2699 changed the title fix(ios): a simctl create or clone waits ios.simulator.createTimeoutMs, and one that answers late is deleted (#1546) fix(ios): the simctl commands of a simulator's lifecycle wait ios.simulator.lifecycleTimeoutMs, and a create or clone that answers late is deleted (#1546) Nov 13, 2026
V3RON added a commit that referenced this pull request Nov 27, 2026
…ge report gets the fast-track entry check (#1917)

## Why

The hourly Bug sweep has triaged one bug since 18 November. Its "one bug
at a time" rule is prose in two T3 prompts, and it stops on PR #1547: an
outsider's draft fork PR whose issue is closed.

The fast-track entry check runs only inside `deliver`. An all-yes report
from `triage-bug` waited for a hand label (#1780: 100 h).

## What

- `runnable.mjs --bug <n>` prints `run` or `held: <why>`. Another bug
holds it only on a live claim: an open `bug/<m>` PR of this repository
whose issue is open and assigned.
- `fast-track.mjs <n> --dry-run` prints the entry decision and changes
nothing.
- `triage-bug` runs the entry check after the report. The triager's last
line is `Triaged: #<N>`.

The two T3 prompts change after the merge.

## Proof

Both replays ran the committed scripts on GitHub's history.

```
runnable.mjs --bug <target>, on every run that stopped, with the PRs open and the
issue states of that minute (checked at the run's start and at its end)

  sweep    177 stopped  162 run  12 held by a live claim  3 changed during the run
  webhook   41 stopped   28 run   7 held by a live claim  3 held: the bug itself is assigned
                                                          3 changed during the run
  #1547 was the only open bug PR in 45 of the 190 that run.
  The 162 sweep runs name three bugs (#1580, #1583, #1891); the 28 webhook runs name 27.
  The review counted 175 and 40 stopped runs; this scan finds 177 and 41.

fast-track.mjs <n> --dry-run, on the 92 triage reports since 5 November

  36 pass: the 29 that took the fast track and 7 of the 9 labelled by hand
  #1831 held: bug/1831-repro does not exist (the live script printed this on 24 November)
  #1417 held: it has no triage report (the report opens with a quote line)
  0 calls that would change a label
```

Unit tests: 40 pass in `src/runnable.test.ts` and
`src/fast-track.test.ts`; #1547's shape is a case.

Not verified: no live sweep has run with the new prompts. In 14 of the
190 passing runs another bug was assigned with no PR yet; the new rule
lets both run.

## Review

Spec review: skipped. Code review: 1 blocking, 1 fixed, 0 notes. Claims
review: 1 blocking, 1 fixed, 0 notes.
Rounds: 2. Tokens: 1.7M.
Assessment: complete

*Written by an agent.*

This branch has not been deployed

No deployments
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.

iOS: simctl clone and create are cut off at a fixed 30 s, and under deviceSet "default" each cut-off clone leaves a simulator nothing can delete

1 participant