Repository navigation
Test SSH PTY attach retry loop with compound attach commands - #14561
Conversation
Adds a /bin/sh -n regression test for SSHPTYAttachRetryScriptBuilder with a compound attach command, and checks the loop still exports the retry budget to the command it runs. #9425 fixed the generator and covered noProgressRetryLoopLines; this covers the main retry builder. Salvaged from #9448. Co-Authored-By: Tanghui Lin <xmutanghui@gmail.com> Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
|
Warning Review limit reachedNext included review available in 5 minutes. View limit detailsLimit details: You’ve used all 10 included reviews currently available. You've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository. Review configuration: ⚙️ Run configurationConfiguration used: Repository: manaflow-ai/cmux/.coderabbit.yaml Review profile: ASSERTIVE Plan: Advanced Run ID: 📒 Files selected for processing (1)
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 |
|
All contributors have signed the CLA ✍️ ✅ |
|
Merge receipt for
Labeled |
Salvaged from #9448 by @lintanghui. The fix itself landed in #9425, so #9448 was closed, but its regression test for the main retry builder never landed. This is a tests-only PR.
What it adds
SSHPTYAttachRetryScriptBuilderTests.retryLoopIsValidPOSIXShellForCompoundAttachCommands:if ...; then ...; fi), the shape that used to produce "syntax error near unexpected token `then'"./bin/sh -non the generated script.CMUX_SSH_PTY_ATTACH_WRAPPER_CAN_RETRY,..._NO_PROGRESS_RETRYand..._NO_PROGRESS_LIMITvalues (1/0/3).Not ported
#9448 also had a matching test on
SSHPTYAttachExitCode.retryLoopLines. On main that entry point is a deprecated wrapper that delegates toSSHPTYAttachRetryScriptBuilder, andnoProgressRetryLoopLinesis already covered by the #9425 test incmuxTests/SSHPTYAttachNoProgressRetryTests.swift, so a second copy would add no coverage.CI
CmuxFoundation is in the
swift-package-testslane package list inci-macos.yml, andselect_package_tests.pyselects it for changes underPackages/macOS/CmuxFoundation/, so this runs on the PR.check-test-determinism.py --strictis clean for the package tests.Co-authored with @lintanghui (credited in the commit trailer).
🤖 Generated with Claude Code
Summary by cubic
Adds a regression test for the SSH PTY attach retry script builder covering compound attach commands.
/bin/sh -nsyntax checking and still exports the expected retry budget values (1/0/3) to the command.then', fixed in Fix cmux ssh startup script syntax error in no-progress retry loop #9425.Written for commit b763d58. Summary will update on new commits.