test(ios-smoke): wait once more when the runner is still starting behind a deep link
Summary
The iOS smoke test live iOS simulator fixture E2E keeps failing at wait for Automation lab, right after open --relaunch --launch-url agent-device-test-app:///automation?.... The final error is app 'com.callstack.agentdevicelab' is not running (wait_capture_stalled, APP_NOT_RUNNING). The failure screenshot shows iOS's "Open in "Agent Device Tester"?" confirmation, unanswered.
It hit #3056 once and #3057 twice today. In #3057's run the uploaded runner.log shows the cause:
- The deep-link
opensucceeds at 14:51:37. The relaunch restarts the runner, and xcodebuild launches it at 14:51:33. - The helper's first 15 s destination wait (14:51:37 to 14:51:52) ends before the runner is up:
Running testsat 14:51:54,LISTENER_READYat 14:51:55. That is runner-start readiness exhaustion. answerDeepLinkConfirmationreturns on runner-start exhaustion without probing (#3044 gated the probe totarget-discovery), so the prompt is never answered.- The caller's next wait reaches the now-running runner, which answers
READ_TARGET_NOT_RUNNINGon every read (14:51:55 to 14:52:14) until the wait times out.
The helper now waits once more after a runner-start timeout, without an alert probe. The next wait is the first that can see the pending launch: it ends on APP_NOT_RUNNING, and the existing path answers the confirmation. A second runner-start timeout still returns without probing. That keeps #3044's point: a runner that really failed costs one extra 15 s wait, not the whole 5-wait budget with probes. The miss classification moves into classifyDestinationMiss (fallow complexity); its outcomes are unchanged for every other reason.
Two test-harness files changed; production behavior is unchanged.
Validation
-
ios-simulator-e2e-deep-link-confirmation.test.ts(13 pass):- a runner-start timeout, then a pending launch, gives wait, wait,
alert get,alert accept, wait; - two runner-start timeouts return after the second wait with no probe.
Both fail on
main. - a runner-start timeout, then a pending launch, gives wait, wait,
-
pnpm check:affected --run: passed, including fallow.