Skip to content

build-ios-app: a launch that starts nothing is made again - #1057

Merged
pdfinn merged 1 commit into
masterfrom
claude/ios-verify-relaunch
Nov 3, 2026
Merged

pdfinn merged 1 commit into
masterfrom
claude/ios-verify-relaunch

Conversation

@pdfinn

@pdfinn pdfinn commented Nov 3, 2026

Copy link
Copy Markdown
Member

Summary

iOS Build & Simulator Test fails on and off, in 5 of the last 30 CI runs. That includes master (86de120 and 62ce2a6) and branches that change nothing on iOS: #1054 twice, plus an earlier claude/kind-euler-f3ufm5 head. Every failure looks the same:

  • xcrun simctl launch --console-pty writes nothing for the whole 60 s cap. The app's first line never appears, and neither does the os.infernode.ios: <pid> line simctl prints once it has started an app. simctl never started the app.
  • The watchdog fires at exactly 60 s (03:41:49 → 03:42:50, 04:25:19 → 04:26:20, 07:28:43 → 07:29:43), and the step reports VERIFY FAILED: expected test PASS output not found.

A passing launch writes InferNode: emu_run(...) at once and the test's PASS within 5–9 s (five passing runs measured today). So the 60 s cap is not too tight. This is a launch that never happens.

Changes

build-ios-app.sh --verify:

  • If a launch has written nothing after 20 s, it is stopped, the app is terminated, and it is launched again, up to 3 launches.
  • A launch that has written something gets the full 60 s, as before. An app that starts and doesn't pass fails at once and is not retried, so real faults still fail.
  • On failure, the step prints the number of launches, the booted devices, the app's container, and any InferNode crash report. The next failure will say more than "not found".

The root cause in CoreSimulator is not established; this handles the failure mode as observed, and the added output is there to catch the cause.

Testing

  • bash -n build-ios-app.sh.

  • The verify step was run on Linux against a stand-in xcrun that reproduces the observed hang (writes nothing, never returns), with the waits scaled down:

    stand-in xcrun result launches
    passes OK 1
    first launch hangs, second passes OK 2
    every launch hangs FAIL 3
    starts, then fails FAIL 1
  • Not run on macOS. This PR's own iOS job is the first real run.

Checklist

  • Code follows the existing style of the file(s) modified
  • No .dis build artifacts committed from appl/ or tests/
  • Documentation updated (if applicable): n/a
  • No secrets, API keys, or credentials included

Generated by Claude Code

iOS Build & Simulator Test fails on and off, master included (86de120,
62ce2a6) and branches that touch nothing iOS (5 of the last 30 runs).
Every failure has the same shape: "simctl launch --console-pty" writes
nothing for the whole 60 s cap, not the app's first line and not the
"bundle: pid" simctl prints when it has started an app, and the verify
step reports "expected test PASS output not found". A passing launch has
the app's first line at once and the test's PASS within 5 to 9 s.

So --verify now stops a launch that has written nothing in 20 s,
terminates the app and launches again, up to three times; a launch that
has started is given the whole 60 s, as before, and an app that starts
and does not pass fails at once, not retried. On a failure the number
of launches, the booted devices, the app's container and any crash
report are printed, so the next one says more than "not found".

Checked against a stand-in xcrun: a passing app passes in one launch;
one launch that hangs silently then a passing one passes in two; three
silent hangs fail after three; an app that starts and fails fails after
one.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_0195u6z6W3TbdAx7jg6RqhYy
@pdfinn
pdfinn merged commit 7ff1e35 into master Nov 3, 2026
29 checks passed
@pdfinn
pdfinn deleted the claude/ios-verify-relaunch branch November 3, 2026 09:31
pdfinn pushed a commit that referenced this pull request Nov 3, 2026
Brings in #1057: the iOS verify step relaunches a simulator launch that started nothing, the one failure left on this branch (iOS Build & Simulator Test).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_0195u6z6W3TbdAx7jg6RqhYy
pdfinn pushed a commit that referenced this pull request Nov 3, 2026
Brings in #1057: the iOS verify step relaunches a simulator launch that started nothing, the one failure left on this branch (iOS Build & Simulator Test).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_0195u6z6W3TbdAx7jg6RqhYy
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants