Skip to content

Commit c893c7f

Browse files
committed
Use agent-device boot preflight in iOS CI workflow
1 parent 4807acd commit c893c7f

1 file changed

Lines changed: 5 additions & 29 deletions

File tree

.github/workflows/ios.yml

Lines changed: 5 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -52,37 +52,13 @@ jobs:
5252
- name: Build iOS integration artifacts
5353
run: pnpm build:xcuitest
5454

55-
- name: Wait for iOS simulator boot
55+
- name: Boot preflight via agent-device
5656
run: |
5757
set -euo pipefail
58-
59-
wait_boot() {
60-
local deadline=$(( $(date +%s) + 180 ))
61-
while [ "$(date +%s)" -lt "$deadline" ]; do
62-
if xcrun simctl list devices "$IOS_UDID" | grep -q "(Booted)"; then
63-
return 0
64-
fi
65-
sleep 2
66-
done
67-
return 1
68-
}
69-
70-
if wait_boot; then
71-
exit 0
72-
fi
73-
74-
echo "Initial simulator boot wait timed out; retrying boot once..."
75-
xcrun simctl shutdown "$IOS_UDID" || true
76-
xcrun simctl boot "$IOS_UDID" || true
77-
78-
if wait_boot; then
79-
exit 0
80-
fi
81-
82-
echo "Simulator failed to become ready after retry. Collecting diagnostics..."
83-
xcrun simctl list devices || true
84-
xcrun simctl list runtimes || true
85-
exit 1
58+
pnpm ad boot --platform ios --udid "$IOS_UDID" --json
59+
env:
60+
AGENT_DEVICE_IOS_BOOT_TIMEOUT_MS: "180000"
61+
AGENT_DEVICE_RETRY_LOGS: "1"
8662

8763
- name: Run iOS integration test
8864
env:

0 commit comments

Comments
 (0)