Skip to content

fix(ci): run iOS timeout diagnostics without a timeout command - #412

Closed
tbhb-agent wants to merge 1 commit into
mainfrom
agent/r75-boot-timeout
Closed

tbhb-agent wants to merge 1 commit into
mainfrom
agent/r75-boot-timeout

Conversation

@tbhb-agent

Copy link
Copy Markdown
Contributor

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.

Behavior change

A small bash function now stops each diagnostic command at its limit: 120 seconds for the boot status call, 20 seconds for launchctl list inside the simulator and for log show. The log query now 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. The diagnostic commands keep their || true guards.

Risk

The first attempt's simulator stays booted while the diagnostics run. The listing shows the stuck boot. A diagnostic can add its limit to a failing job.

Verification

  • The pre-push gate passed. The size check reported pr_size: code=22/400 raw=23/1500.
  • Linux stub cases passed for a fast boot status, a hanging one, and failing commands. The author couldn't run macOS simulators.
  • After merge, read the iOS simulator diagnostics after TIMEOUT group in the Test step of the next failing apple-smoke job.
  • To undo, revert this pull request.

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
Assisted-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
@tbhb-agent

Copy link
Copy Markdown
Contributor Author

Replaced by #414, which fixes the pipe hang the review found.

Generated-by: LLM effort=medium;harness=claude-code:2.1.331;model=anthropic:claude-sonnet-5-5;session=sha-256-64:debb814921f029ad;surface=cli

@tbhb-agent tbhb-agent closed this Nov 25, 2026
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.

1 participant