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: simctl boot is cut off at a fixed 30 s outside ios.*.bootTimeoutMs, and the boot deadline starts only after it #1560
#bootAndWait (src/drivers/ios/index.ts:1231 at d30c24d8) runs simctl boot through #boot (:1253, :1263) with the fixed COMMAND_TIMEOUT_MS (30 s), and a timeout there is BootTimeoutError whatever ios.full.bootTimeoutMs or ios.slim.bootTimeoutMs says. The deadline those keys set is taken only after simctl boot returns (:1238), so a boot can last up to 30 s plus the whole configured budget.
src/drivers/ios/AGENTS.md says a boot is simctl boot, bootstatus -b, then listapps "on one deadline", and architecture rule 11 says a budget does not reset. Under heavy load the reporter of #1546 saw BootTimeoutError after 35 s with a 300 s boot budget.
Defect. src/drivers/ios/index.ts:1252 (and :1262, the refresh boot) runs simctl boot with COMMAND_TIMEOUT_MS (30 s), and :1231 turns that timeout into BootTimeoutError. The deadline is set only afterwards (:1237), and bootstatus gets the whole budget again (:1238). This goes against the module manual ("on one deadline") and architecture rule 11. It does match #1315's spec and configuration.mdx:208 ("Counted from the end of simctl boot"). ADR 0002 §8 calls the deadline "combined bootstatus and installer-probe".
Simplest fix
Take the deadline in #bootAndWait before #boot. Each simctl boot and bootstatus then gets deadline - now. The same PR updates the three tests that pin today's numbers (index.test.ts:923, :2078, :3200) and configuration.mdx:208.
# fix applied, those three expectations updated, then discarded
pnpm exec vitest run --project unit src/drivers/ios/
Test Files 13 passed (13)
Tests 733 passed | 1 skipped (734)
Alternatives rejected
Give simctl boot its own budget-sized timeout: a boot could take twice the budget (rule 11).
Raise the 30 s constant: still a fixed number that ignores the key.
Decided by the maintainer after triage: the triage's simplest fix. ios.full.bootTimeoutMs and ios.slim.bootTimeoutMs are one deadline taken before simctl boot; simctl boot (both boots on the refresh path) and bootstatus each get only what is left, and a simctl boot cut off by it is BootTimeoutError. Not a separate budget-sized timeout for simctl boot.
The same change updates website/src/content/docs/docs/reference/configuration.mdx:208 ("Counted from the end of simctl boot") and the wording of ADR 0002 §8 that calls the deadline bootstatus plus the installer probe, so both say the budget starts before simctl boot.
Tests: the four #1560 cases on bug/1560-repro (src/drivers/ios/index.test.ts) pass, for both keys: a hanging simctl boot waits the whole budget, and a 100 s simctl boot leaves bootstatus only the rest.
Merged: #1575 (#1560)
Parked: none
Waiting: none
Decided: #1560 — does the refresh path's second simctl boot get only the time left? → yes, pinned by a test (within the maintainer's decision)
Activity
V3RON commentedon Nov 15, 2026
Reproduction
Confirmed. Four cases on
bug/1560-repro,src/drivers/ios/index.test.ts, each forios.full.bootTimeoutMs(400 s) andios.slim.bootTimeoutMs(250 s):Root cause
Defect.
src/drivers/ios/index.ts:1252(and:1262, the refresh boot) runssimctl bootwithCOMMAND_TIMEOUT_MS(30 s), and:1231turns that timeout intoBootTimeoutError. The deadline is set only afterwards (:1237), andbootstatusgets the whole budget again (:1238). This goes against the module manual ("on one deadline") and architecture rule 11. It does match #1315's spec andconfiguration.mdx:208("Counted from the end ofsimctl boot"). ADR 0002 §8 calls the deadline "combined bootstatus and installer-probe".Simplest fix
Take the deadline in
#bootAndWaitbefore#boot. Eachsimctl bootandbootstatusthen getsdeadline - now. The same PR updates the three tests that pin today's numbers (index.test.ts:923,:2078,:3200) andconfiguration.mdx:208.Alternatives rejected
simctl bootits own budget-sized timeout: a boot could take twice the budget (rule 11).Risk
simctl boot,bootstatusgets less time than today.#shutdownbetween the two boots keeps its own 30 s, outside the deadline.simctl bootgets a 0 ms timeout and fails straight away withBootTimeoutError.Fast track
Written by an agent.
V3RON commentedon Nov 15, 2026
Decision
Decided by the maintainer after triage: the triage's simplest fix.
ios.full.bootTimeoutMsandios.slim.bootTimeoutMsare one deadline taken beforesimctl boot;simctl boot(both boots on the refresh path) andbootstatuseach get only what is left, and asimctl bootcut off by it isBootTimeoutError. Not a separate budget-sized timeout forsimctl boot.The same change updates
website/src/content/docs/docs/reference/configuration.mdx:208("Counted from the end ofsimctl boot") and the wording of ADR 0002 §8 that calls the deadlinebootstatusplus the installer probe, so both say the budget starts beforesimctl boot.Tests: the four
#1560cases onbug/1560-repro(src/drivers/ios/index.test.ts) pass, for both keys: a hangingsimctl bootwaits the whole budget, and a 100 ssimctl bootleavesbootstatusonly the rest.Written by an agent.
test(ios): the refresh path's second simctl boot takes only what is l…
test(ios): the boot deadline tests move to boot-deadline.test.ts so t…
V3RON commentedon Nov 15, 2026
Delivery run
Merged: #1575 (#1560)
Parked: none
Waiting: none
Decided: #1560 — does the refresh path's second
simctl bootget only the time left? → yes, pinned by a test (within the maintainer's decision)Written by an agent.
fix(ios): ios.*.bootTimeoutMs is one deadline taken before simctl boot (
chore(agents): review changes get a proof set of real escaped bugs, a…