Conversation
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Path: .coderabbit.yaml Review profile: ASSERTIVE Plan: Advanced Run ID: 📒 Files selected for processing (2)
💤 Files with no reviewable changes (1)
Included review availability: Your plan provides up to 10 included reviews per hour; 2 remain after this review. 📝 WalkthroughWalkthroughThe PR removes coverage for the deleted ChangesVM CLI test updates
Priority: ⬇️ Low Estimated code review effort: 2 (Simple) | ~10 minutes Change: Other Suggested reviewers: Merge Risk: ⚪ Minimal · up to This PR updates VM CLI test fixtures and removes obsolete coverage; no actionable merge-blocking risk is identified. 🚥 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 |
|
You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard. |
|
All contributors have signed the CLA ✍️ ✅ |
`testVMSSHAliasUsesCmuxRemoteWhenProviderSSHIsUnmanaged` expects `cmux vm ssh` to fall back to cmux-remote when provider SSH is unmanaged. Three parts of its mock no longer match what the app sends or what the CLI asks for: - The CLI falls back when the error's `data.backend_code` is `vm_attach_transport_unsupported`, and the app sends that code inside `data` under a `vm_error` code. The mock put the provider code at the top level with no `data`, so the CLI never fell back. - Since manaflow-ai#12042, the CLI only dials a machine it has not opened before when `vm.cmux_remote_info` reports `trusted_carrier: true`. The mock left that out, so the CLI stopped with "The Cloud machine is still preparing remote access". - Since manaflow-ai#12227, the CLI reads `surface.catalog` before choosing between projecting an existing terminal and opening a new one. The mock did not answer it. The mock now reports a connected machine with no remote workspaces, which keeps the test on the new-terminal path it was written for, and the expected request sequence includes the catalog request. After the first mismatch the test read `bindCommands[0]` from an empty list and crashed the test host. Send the app's response shapes, and fail instead of crashing if the bind requests are missing. `testVMResizeIsNoLongerAVerb` came in when `vm resize` was removed. manaflow-ai#12442 restored the verb on purpose and covers it in `tests/test_cli_vm_resize.py`, so this test now fails by design. Remove it.
b4e188b to
9a6b8d8
Compare
Bugbot is paused — on-demand spend limit reachedBugbot uses usage-based billing for this team and has hit its on-demand spend limit. A team admin can raise the spend limit in the Cursor dashboard, or wait for the next billing cycle to continue. |
|
Thank you for this! You had it first, and main has the same fix now (a99d2de), so I'm closing this one as done. Appreciate it :) |
Summary
Two CLI vm tests fail, and one of them crashes the test host.
testVMSSHAliasUsesCmuxRemoteWhenProviderSSHIsUnmanagedexpectscmux vm sshto fall back to cmux-remote when provider SSH is unmanaged. Three parts of its mock no longer match what the app sends or what the CLI asks for.data.backend_codeisvm_attach_transport_unsupported. The app sends that code insidedata, under avm_errorcode. The mock put the provider code at the top level with nodata, so the CLI printed the error and exited 1.vm.cmux_remote_inforeportstrusted_carrier: true. The mock left that out, so after the fallback the CLI stopped with "The Cloud machine is still preparing remote access".surface.catalogbefore deciding whether to project an existing terminal or open a new one. The mock answered it with "Unexpected method". The mock now reports a connected machine with no remote workspaces, which keeps the test on the new-terminal path it was written for, and the expected request sequence includes the catalog request.After the CLI exited early, the test read
bindCommands[0]from an empty list and crashed the host with "Index out of range". The mock now sends the app's response shapes, and the test fails instead of crashing if the bind requests are missing.testVMResizeIsNoLongerAVerbwas added whenvm resizewas removed. #12442 brought the verb back on purpose and covers it intests/test_cli_vm_resize.py, so the test now fails by design and is removed.Testing
CLINotifyProcessIntegrationRegressionTests/testVMSSHAliasUsesCmuxRemoteWhenProviderSSHIsUnmanagedon an EC2 Mac (Xcode 26.6, macOS 15.7) throughscripts/ci/run-app-host-xcodebuild.sh, the way CI runs app-host tests. At main4638e5b1eaplus the compile fixes in Fix the compile errors that keep main and its unit tests from building #12584, it records five errors and then crashes the test host with "Index out of range". With this change on the same base, the test passes, and the host does not crash.testVMResizeIsNoLongerAVerbfails, becausecmux vm resizenow reaches the app asvm.resize.Demo Video
Not applicable. The change only affects unit tests.
Review Trigger (Copy/Paste as PR comment)
Checklist
Need help on this PR? Tag
@codesmith-botwith what you need. Autofix is disabled.Summary by cubic
Updates the CLI VM integration tests to match the app's current responses, so the unmanaged-provider SSH fallback test passes instead of exiting early and crashing the test host. Removes the obsolete
vm resizerejection test because the verb is supported again and covered bytests/test_cli_vm_resize.py.vm_errorwithdata.backend_code, reports remote access as trusted, and answerssurface.catalogwith a connected machine and no remote workspaces.Written for commit 38ba217. Summary will update on new commits.
Summary by CodeRabbit
Bug Fixes
Tests