Repository navigation
test: split an expression Xcode 27 cannot type-check - #13073
teamleaderleo wants to merge 2 commits into
Conversation
|
All contributors have signed the CLA ✍️ ✅ |
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Repository: manaflow-ai/cmux/.coderabbit.yaml Review profile: ASSERTIVE Plan: Advanced Run ID: 📒 Files selected for processing (1)
Included review availability: Your plan provides up to 10 included reviews per hour; 0 remain after this review. 📝 WalkthroughWalkthroughThe SSH PTY regression test now constructs its replay payload through a local ChangesSSH PTY replay test
Priority: ⬇️ Low Estimated code review effort: 1 (Trivial) | ~3 minutes Change: Refactor Suggested reviewers: 🚥 Pre-merge checks | ✅ 24 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (24 passed)
✨ Finishing Touches🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
|
|
Continued in #13126 (same commits, in-org branch |
Pull request was closed
Summary
cmuxTests/CLISSHPTYAttachProbeReplyRegressionTests.swiftbuilds its replay bytes asData(("…" + "…" + … ).utf8): six string literals concatenated inside one expression. On Xcode 27.0 / Swift 6.4 the type checker gives up on it:error: the compiler is unable to type-check this expression in reasonable time, at line 140, andbuild-for-testingfor thecmux-unitscheme fails.Stringand a typedData. Same bytes, no behaviour change.Testing
On a MacBook Air M5, Xcode 27.0 (27A266a),
xcodebuild -scheme cmux-unit -configuration Debug build-for-testing:main(4c67b4d8c5):** TEST BUILD FAILED **, the one error above (957 test files compiled before it stops).** TEST BUILD SUCCEEDED **, 0 type-check errors.CI uses Xcode 26.3, where the original expression still compiles, so this only shows up for people who have moved to Xcode 27. Not run: the test itself (the app-host test run needs the full app test environment); the change is to how a constant is spelled, not to what the test does.
Demo Video
Not applicable: test-only change.
Checklist
🤖 Generated with Claude Code
Need help on this PR? Tag
@codesmith-botwith what you need. Autofix is disabled.Summary by cubic
Fixes the
cmux-unittest build on Xcode 27 by splitting a long string-concatenation expression that Swift 6.4 can't type-check. Replay bytes are identical, so there is no behavior change. CI still uses Xcode 26.3, so this only affects local Xcode 27 builds.Written for commit c3b4fe2. Summary will update on new commits.
Summary by CodeRabbit