Repository navigation
swift-test-bench.sh: stream build output so a long build is not stopped as a hung measurement - #27395
Merged
Merged
Conversation
A CmuxMobileKit run printed nothing for 45 min while its swift build wrote only to a file, and the fleet stopped it as a hung measurement. The FFI and swift build output now reach the step log as they come. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Agent-Session: https://cmux.com/deeplink/agent?id=aid-85ca59f74f02d81734c3
Bugbot needs on-demand usage enabledBugbot uses usage-based billing for this team and requires on-demand usage to be enabled. A team admin can enable on-demand usage in the Cursor dashboard. |
teamleaderleo
temporarily deployed
to
ci-routing-agent
October 29, 2026 11:17 — with
GitHub Actions
Inactive
Contributor
|
cmux status (one comment, edited in place; each line is updated by the job that owns it) Review App of this head (app.zip, kept 1 day)
|
teamleaderleo
temporarily deployed
to
ci-routing-agent
October 29, 2026 11:17 — with
GitHub Actions
Inactive
Collaborator
Author
|
Owned by an agent session · session |
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Agent-Session: https://cmux.com/deeplink/agent?id=aid-85ca59f74f02d81734c3
teamleaderleo
temporarily deployed
to
ci-routing-agent
October 29, 2026 11:20 — with
GitHub Actions
Inactive
teamleaderleo
temporarily deployed
to
ci-routing-agent
October 29, 2026 11:21 — with
GitHub Actions
Inactive
Collaborator
Author
|
Bead |
Contributor
|
Shipped in:
|
This branch was previously deployed
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.
scripts/measure/swift-test-bench.sh(#27352) now sends its FFI andswift buildoutput to the step log as it runs, instead of only to a file.Its first fleet run, CmuxMobileKit's
TerminalInputThroughputTests/keystrokeThroughputAt500msRTT, built the FFI xcframework in 144 s. Then it printed nothing whileswift buildwrote only to.build/swift-test-bench/build.log. After 45 minutes of silence the controller stopped the step as a hung measurement, which is the fleet's silence limit for measure steps. The step directory was cleaned up afterwards, so the log is gone. With this change a long build shows its progress, and a real hang shows the last line it reached in the step log.Exit status still comes from the build command (
PIPESTATUS, not thetee), and a failed build still lists itserror:lines.Performance
No perf numbers: this is a logging fix to the measurement script, with no speed change.
Validation
bash scripts/measure/tests/swift-test-bench-args.test.shpasses, andshellcheck -S warningis clean. The next fleet run of the benchmark exercises the change.Risk
Low. The step log grows by the build's output, and nothing else changes.
Agent session: agent session
🤖 Generated with Claude Code
Need help on this PR? Tag
@codesmith-botwith what you need.Summary by cubic
Streams the FFI and
swift buildoutput from the measurement script to the step log as it runs, so a long build is no longer stopped as a hung measurement.On the first fleet run the step printed nothing for 45 minutes while
swift buildwrote only to.build/swift-test-bench/build.log, and the controller stopped it at the measure step's silence limit. Build output now reaches the step log in real time. The exit status still comes from the build command (PIPESTATUS, nottee), and a failed build still lists itserror:lines. The step log grows by the build output. The script now fails fast with exit code 3 if a build log cannot be written, instead of continuing with an incomplete log.Written for commit d2a2c0b. Summary will update on new commits.