Repository navigation
fix(ci): run iOS timeout diagnostics without a timeout command - #414
Merged
Merged
Conversation
Generated-by: LLM effort=medium;harness=codex:0.166.0;model=openai:gpt-6.2-sol;session=sha-256-64:d50fd90bd83a0844;surface=exec
Generated-by: LLM effort=medium;harness=codex:0.171.0;model=openai:gpt-6.2-sol;session=sha-256-64:30dc6d24abb27bfd;surface=exec
Generated-by: LLM effort=medium;harness=codex:0.171.0;model=openai:gpt-6.2-sol;session=sha-256-64:30dc6d24abb27bfd;surface=exec
Generated-by: LLM effort=medium;harness=codex:0.171.0;model=openai:gpt-6.2-sol;session=sha-256-64:30dc6d24abb27bfd;surface=exec
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Why
On main at 3d891be, the diagnostics added in #411 failed with status 127 because the macOS runner has no timeout command. The CoreSimulator log came back empty. It takes over from #412, which a review held for a pipe hang.
Behavior change
A small bash function stops each diagnostic command at its limit: 120 seconds for the boot status call, 20 seconds for
launchctl listinside the simulator and forlog show. Each command writes to a temporary file, and the script prints the first or last lines from the file. The log query matches the simulator launcher process and CoreSimulator, in compact style, and keeps 80 lines. The retry and the job result stay the same.Decisions
The limit uses bash builtins, because no timeout tool exists on the runner. A pipe waits for a grandchild process that keeps it open after the stop. Files replace pipes. The new stub script runs the smoke script on Linux with fake
xcrun,logandbazeliskcommands. It isn't wired into Bazel, and a reviewer should say whether to keep it.Risk
A diagnostic can add its limit to a failing job. The script deletes its temporary files on exit.
Verification
pr_size: code=134/400 raw=154/1500.launchctl, a hanginglog show, and failing commands. A two-second limit returned in about 2 seconds with a grandchild holding the output. The pipe version took 8 seconds.iOS simulator diagnostics after TIMEOUTgroup in theTeststep of the next failing apple-smoke job.Opened-by: LLM effort=medium;harness=claude-code:2.1.331;model=anthropic:claude-sonnet-5-5;session=sha-256-64:debb814921f029ad;surface=cli
Generated-by: LLM effort=medium;harness=codex:0.166.0;model=openai:gpt-6.2-sol;session=sha-256-64:d50fd90bd83a0844;surface=exec
Generated-by: LLM effort=medium;harness=codex:0.171.0;model=openai:gpt-6.2-sol;session=sha-256-64:30dc6d24abb27bfd;surface=exec
Assisted-by: LLM effort=medium;harness=claude-code:2.1.331;model=anthropic:claude-sonnet-5-5;session=sha-256-64:debb814921f029ad;surface=cli