Repository navigation
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
Conversation
…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.
|
Important Draft PR not reviewedDraft PRs are not automatically reviewed by default.
To automatically review draft PRs, update your CodeRabbit configuration: reviews:
auto_review:
drafts: true
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. |
…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.
This was referenced Nov 17, 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
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.
Closes #1546.
An outside draft: #1546 is new and untriaged, so no
bug:readyissue backs this. Take it, change it or close it.What changes
ios.simulator.lifecycleTimeoutMs(positive number, default30000) is the limit of thesimctlcommands of a simulator's lifecycle:create,clone,boot,shutdownanddelete. Every othersimctlcall keeps 30 s.createorclonegives its caller the sametimed out after <n>mserror and is no longer killed. When it ends, the simulator it names is deleted from the set it was made in: Xcode's set underdrivers.ios.deviceSet: "default".createorclonestill silent 5 minutes past the limit is killed, and a warning names it.boot,shutdownanddeleteare killed at the limit, as before.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 bootends, so a boot may now take the limit and the deadline. The unit tests use a fakesimctl; no slow-lane test was added or run.Status
pnpm exec vitest run --project unit src/drivers/ios src/daemon/driver-discovery.test.ts: 763 passed.pnpm test:changedon the Mac that reported 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 #1546 (Node 26, heavy load) fails 44 to 54 tests in files this change does not touch (src/core/usage,usage.getin the dispatchers,src/history, and load-sensitive process tests); the same tests fail atd30c24d8there. CI decides.Assumptions
ios.simulator.lifecycleTimeoutMs, besideaudioandheadless.SIGTERM.simctl boot,shutdownanddeletetake the same limit? — yes: on the reporting Macbootandshutdownpassed 30 s too (see 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 #1546).simctl listcalls take it? — no, they keep 30 s.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.