Skip to content

swift-test-bench.sh: stream build output so a long build is not stopped as a hung measurement - #27395

Merged
teamleaderleo merged 2 commits into
feat-cmux-nextfrom
fanout/swift-test-bench-log
Oct 29, 2026
Merged

teamleaderleo merged 2 commits into
feat-cmux-nextfrom
fanout/swift-test-bench-log

Conversation

@teamleaderleo

@teamleaderleo teamleaderleo commented Oct 29, 2026 •

Copy link
Copy Markdown
Collaborator

scripts/measure/swift-test-bench.sh (#27352) now sends its FFI and swift build output 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 while swift build wrote 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 the tee), and a failed build still lists its error: 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.sh passes, and shellcheck -S warning is 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


View with [code]smith Autofix with [code]smith
Need help on this PR? Tag @codesmith-bot with what you need.


Summary by cubic

Streams the FFI and swift build output 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 build wrote 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, not tee), and a failed build still lists its error: 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.

View guided diff Turn on auto-fix

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
@cursor

cursor Bot commented Oct 29, 2026

Copy link
Copy Markdown

Bugbot needs on-demand usage enabled

Bugbot 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.

@github-actions

github-actions Bot commented Oct 29, 2026 •

Copy link
Copy Markdown
Contributor

cmux status (one comment, edited in place; each line is updated by the job that owns it)

Review d2a2c0b: HQ feed card · gallery before/after runs · checks

App of this head (app.zip, kept 1 day)

gh workflow run reload-build.yml -R manaflow-ai/cmux --ref feat-cmux-next -f tag=pr27395 -f ref=fanout/swift-test-bench-log -f platform=macos -f backend_mode=local

@teamleaderleo

Copy link
Copy Markdown
Collaborator Author

Owned by an agent session · session

@github-actions github-actions Bot added the risk:normal Risk tier (docs/ci/risk-tiers.md) label Oct 29, 2026
@teamleaderleo

Copy link
Copy Markdown
Collaborator Author

Bead cx-la7yu4 created for this PR by the cmux coordinator.

@teamleaderleo
teamleaderleo merged commit 661a3e6 into feat-cmux-next Oct 29, 2026
114 of 115 checks passed
@teamleaderleo
teamleaderleo deleted the fanout/swift-test-bench-log branch October 29, 2026 11:30
@github-actions

github-actions Bot commented Oct 29, 2026 •

Copy link
Copy Markdown
Contributor

This branch was previously deployed

1 inactive deployment
ci-routing-agent — d2a2c0bd Deployed Oct 29, 2026 by teamleaderleo via wait for same-key tree publisher #76557
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

risk:normal Risk tier (docs/ci/risk-tiers.md)

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant