fix(ci): keep the xcodebuild transcript out of the runner build console
Summary
The iOS smoke step "Restore and build iOS XCTest runner" failed intermittently with exit 1 and no compiler error (#5337, #5339, #5341, #5343). xcodebuild actually succeeded. The step runs in a parallel group, and CI reads a background step's output at about 100 lines per second. The ~1,800-line xcodebuild transcript left pnpm gate with seconds of unflushed stdout. Its 2 s drain deadline then exited 1 and dropped the tail, including ** TEST BUILD SUCCEEDED **.
scripts/build-xcuitest-apple.sh now writes the full transcript only to Logs/agent-device-build-for-testing.log, which failure artifacts upload. The console gets diagnostics, result lines, and the failure summary: about 40 lines.
Before / after
Before (job 144222531656): Isolation scan covers only the files this build recompiled (printed only after xcodebuild exits 0), then gate: unable to flush stdout: output drain timed out, then Process completed with exit code 1. Jobs 144185567616, 144218980205, and 144295028360 show the same line.
After: the build prints about 40 console lines, so the gate has nothing left to drain at exit.
Validation
- Head 41efe41:
vitest run scripts/__tests__/runner-isolation-diagnostics.test.tspassed 18/18. - Ran the filter over the passing job 144224782126 transcript: 1,851 lines became 38.
- The script is part of the cache schema, so this PR's smoke job does a cold build. CI pending.
Open in [code]smith · Need help on this PR? Tag @codesmith-bot with what you need.