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 settle test fails on the task/1747 merge base: replaces a quick seed with its settled copy #1831
src/drivers/ios/index-seed-settle.test.ts, test 'replaces a quick seed with its settled copy: cloned as a provision clones, booted, read until idle, saved as the new seed, the quick seed deleted in its turn'. Line 69: 'the settle ended within 20 simulated minutes: expected rejected to be fulfilled'.
Fails 3 of 3 runs at 71a53e2 (merge of origin/task/1746 into task/1747), and on task/1748 (PR #1830), with pnpm exec vitest run --project unit src/drivers/ios/index-seed-settle.test.ts. The settle rejects; the rejection is not printed by the test.
Not flaky: it fails 3 of 3 on task/1747 at 71a53e2 (PR #1784), after the stack merge of task/1746 that brought in main's #1829. Fixed in PR #1784's fix run; this issue closes when that lands.
Already fixed on its branch: 084247201 on task/1747 (pushed during this triage) makes the test pass. The bug is in a test that exists only on task/1747 and the stack above it, never on main, so there is no reproduction to push to bug/1831-repro. The existing test is the reproduction.
src/drivers/ios/index-seed-settle.test.ts › "replaces a quick seed with its settled copy: …", case "default set, idle at 180 s". It fails every run, not now and then (flaky-test does not fit):
$ git checkout 71a53e20e && pnpm exec vitest run --project unit src/drivers/ios/index-seed-settle.test.ts
AssertionError: the settle ended within 20 simulated minutes: expected 'rejected' to be 'fulfilled'
# the rejection, printed by a temporary catch:
DriverCrashError: Could not start export com.apple.dt.Devices /private/var/tmp/devicehub-preferences.plist:
Unexpected process invocation: defaults export com.apple.dt.Devices …
Root cause
Defect, in the test fixture, not the driver. index-seed-settle.test.ts:190 (at 71a53e20e) scripts the copy's clipboard-sync write as deviceHubEdit(...): export, PlistBuddy Set, import. Since #1829 (200afe53c, merged into task/1747 via f9b60eb1c), devicehub.ts:81 reads the write back with a second defaults export and a Print. The script has no step for that export, so ScriptedProcessRunner throws, the boot fails and the settle rejects. The symptom shows at line 69, in runToEnd. #1829 added deviceHubDisable for this and moved the tests on main to it. This test was written on task/1747 before that merge.
Simplest fix
Script the read-back with deviceHubDisable(copyUdid). This is what 084247201 does:
$ git checkout 084247201 && pnpm exec vitest run --project unit src/drivers/ios/index-seed-settle.test.ts src/drivers/ios/index-seed-throwaway.test.ts src/drivers/ios/boot-courtesies.test.ts
Test Files 3 passed (3) Tests 24 passed (24)
Nothing is left to fix. Close this issue (that also ends the flaky-test exemption). task/1748 (PR #1830) does not contain 084247201 yet. It needs task/1747 merged up.
Activity
V3RON commentedon Nov 24, 2026
Not flaky: it fails 3 of 3 on task/1747 at 71a53e2 (PR #1784), after the stack merge of task/1746 that brought in main's #1829. Fixed in PR #1784's fix run; this issue closes when that lands.
Written by an agent.
V3RON commentedon Nov 24, 2026
Reproduction
Already fixed on its branch:
084247201ontask/1747(pushed during this triage) makes the test pass. The bug is in a test that exists only ontask/1747and the stack above it, never onmain, so there is no reproduction to push tobug/1831-repro. The existing test is the reproduction.src/drivers/ios/index-seed-settle.test.ts› "replaces a quick seed with its settled copy: …", case "default set, idle at 180 s". It fails every run, not now and then (flaky-testdoes not fit):Root cause
Defect, in the test fixture, not the driver.
index-seed-settle.test.ts:190(at71a53e20e) scripts the copy's clipboard-sync write asdeviceHubEdit(...): export, PlistBuddy Set, import. Since #1829 (200afe53c, merged intotask/1747viaf9b60eb1c),devicehub.ts:81reads the write back with a seconddefaults exportand aPrint. The script has no step for that export, soScriptedProcessRunnerthrows, the boot fails and the settle rejects. The symptom shows at line 69, inrunToEnd. #1829 addeddeviceHubDisablefor this and moved the tests onmainto it. This test was written ontask/1747before that merge.Simplest fix
Script the read-back with
deviceHubDisable(copyUdid). This is what084247201does:Nothing is left to fix. Close this issue (that also ends the
flaky-testexemption).task/1748(PR #1830) does not contain084247201yet. It needstask/1747merged up.Alternatives rejected
devicehub.ts: it is fix(ios): refuse a boot whose DeviceHub pasteboard-sync write did not persist #1829's fix (iOS driver treats DeviceHub clipboard sync as off when its preference write did not persist #1822).exportstep inline: duplicatesdeviceHubDisable.Risk
task/1747is merged intotask/1748.Fast track
Written by an agent.
V3RON commentedon Nov 25, 2026
Fixed by 0842472 on task/1747, now in task/1748 (PR #1830) via 989211c. Closing per the triage report.
Written by an agent.
chore(agents): a bug run is held only by a live claim, and every tria…