Skip to content

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

Merged
tbhb-agent merged 4 commits into
mainfrom
agent/r77-bootfile
Nov 25, 2026
Merged

tbhb-agent merged 4 commits into
mainfrom
agent/r77-bootfile

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. 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 list inside the simulator and for log 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, log and bazelisk commands. 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

  • The pre-push gate passed. The size check reported pr_size: code=134/400 raw=154/1500.
  • The stub script passed for a fast boot status, a hanging one, a hanging launchctl, a hanging log 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.
  • 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
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

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
@tbhb-agent
tbhb-agent added this pull request to the merge queue Nov 25, 2026
Merged via the queue into main with commit 272ecbb Nov 25, 2026
57 checks passed
@tbhb-agent
tbhb-agent deleted the agent/r77-bootfile branch November 25, 2026 10:08
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