Commit e624ef9
authored
fix(daemon): skip sessionless local host teardown for provider devices (#2235)
A sessionless snapshot, diff, alert, settings, wait or is command releases
the local iOS execution host when it completes. That teardown ran for every
iOS device, including a provider-owned one. For a Limrun lease the device id
is `limrun:ios:<leaseId>` with `kind: 'simulator'`, so `closeIosApp` drove
`xcrun simctl` on the host against a device the host does not own, with retry
backoff on each failure.
`ensureDeviceReady` already declines local readiness work for a provider-owned
device. The teardown side was not symmetric. Apply the same guard, which covers
all four call sites of the helper.
The cost was about 5.8 seconds per sessionless command against a Limrun iOS
lease. It made `test/integration/provider-scenarios/limrun-ios-snapshot-owner.test.ts`
exceed the 5000 ms default timeout on macOS; that file now runs in 294 ms.
CI did not catch it because the provider-integration lane runs on ubuntu,
where `xcrun` does not exist and the calls fail immediately.1 parent 2c7fb93 commit e624ef9
2 files changed
Lines changed: 38 additions & 2 deletions
Lines changed: 31 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | | - | |
| 1 | + | |
2 | 2 | | |
3 | 3 | | |
4 | 4 | | |
| |||
14 | 14 | | |
15 | 15 | | |
16 | 16 | | |
| 17 | + | |
| 18 | + | |
17 | 19 | | |
18 | 20 | | |
19 | 21 | | |
| |||
24 | 26 | | |
25 | 27 | | |
26 | 28 | | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
27 | 33 | | |
28 | 34 | | |
29 | 35 | | |
| |||
48 | 54 | | |
49 | 55 | | |
50 | 56 | | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2 | 2 | | |
3 | 3 | | |
4 | 4 | | |
| 5 | + | |
5 | 6 | | |
6 | 7 | | |
7 | 8 | | |
| |||
27 | 28 | | |
28 | 29 | | |
29 | 30 | | |
30 | | - | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
31 | 37 | | |
32 | 38 | | |
33 | 39 | | |
| |||
0 commit comments