Repository navigation
test(cli): expect the client-side workspace ref resolution #13964 added - #14230
Conversation
#13964 resolves a workspace:N ref from a parameterless workspace.list snapshot, then a window scan, before the command's own request. Four CLI tests still counted the old request sequence and failed on every main run since: the two pane-inspection ID-format cases (added by #10674 a minute before #13964 merged), closeSurfaceRejectsMissingExplicitRef... and respawnPaneRejectsMissingExplicitUUID.... They now expect the resolution requests. Neither command mutates anything, which the tests still assert. The same edits are in #14211, which moves these files to a host-free target. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
|
All contributors have signed the CLA ✍️ ✅ |
|
Navigate logical layers of code changes, visualize relationships, and explore their blast radius. 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 (2)
Included review availability: Your plan provides up to 10 included reviews per hour; 1 remains after this review. 📝 WalkthroughWalkthroughThe CLI tests now account for client-side workspace-ref resolution. They expect parameterless ChangesWorkspace-ref resolution tests
Priority: ⬇️ Low Estimated code review effort: 2 (Simple) | ~8 minutes Change: Other Suggested reviewers: Merge Risk: ⚪ Minimal · up to This updates CLI tests to account for workspace-reference resolution requests without changing CLI behavior. The inspected expectations and assertions reveal no actionable current-head risk, so the change is mergeable. 🚥 Pre-merge checks | ✅ 24 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (24 passed)
✨ Finishing Touches 💡 1📝 Generate docstrings 💡
🧪 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 |
#14230 landed the same two workspace-ref expectations this branch had already made in the moved CLIExplicitSurfaceRoutingTests; keep main's stricter close-surface assertion (the full lookup sequence). Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
cd7a4cf Prepare iOS 1.0.6 beta compatibility release (manaflow-ai#14112) 2d9b4e8 test: skip dead persistent-SSH restore tests and fix relay-less legacy fixtures after manaflow-ai#14216 (manaflow-ai#14222) df44058 ci: run focused cmuxTests against products CI already compiled (manaflow-ai#14229) 06ec6cb Stop unrelated defaults writes and pane geometry changes from re-evaluating chrome-heavy views (manaflow-ai#14058) 185d99e chore(cli): remove dead persistent SSH PTY startup path (manaflow-ai#14231) dddffea ci: take the build-fleet host lock for nightly mini builds (manaflow-ai#14233) f2106e5 test(cli): expect the client-side workspace ref resolution manaflow-ai#13964 added (manaflow-ai#14230) 59fa5b9 docs(ci): fix persistent-compile pilot runbook drift (manaflow-ai#14206) # Conflicts: # .github/workflows/app-host-test-rerun.yml # .github/workflows/nightly-mini-build.yml
Why
#13964 (merged 10:20Z on 09-24) resolves a
workspace:Nref inside the CLI before sending the command's own request. It first reads a parameterlessworkspace.listsnapshot, and if that fails it scans windows. Four tests still counted the old request sequence, so they fail on every main full-suite run since then:closeSurfaceRejectsMissingExplicitRefWithoutMutationworkspace.list,window.list,surface.listsurface.listrespawnPaneRejectsMissingExplicitUUIDWithoutMutationworkspace.list,surface.listwindow.list,workspace.list,surface.listThe two pane-inspection tests came from #10674, which merged one minute before #13964. Each PR was green on its own base, so together they formed a semantic conflict. Both commands still refuse the missing target without mutating anything, and the tests still assert that.
What changed (tests only)
workspace.listbefore counting the command's request.surface.listrequest.These are the same edits #14211 makes while moving these files to a host-free target. They land here separately so main goes green now.
Verification
Focused run of
CLIWorkspaceStableIDTestsandCLIExplicitSurfaceRoutingTestsonblacksmith-6vcpu-macos-15: 16 tests in 2 suites pass. run🤖 Generated with Claude Code
Need help on this PR? Tag
@codesmith-botwith what you need. Autofix is disabled.Summary by cubic
Fixes four CLI tests that failed on every main run since #13964 added client-side
workspace:Nref resolution.#13964 resolves a
workspace:Nref by reading a parameterlessworkspace.listsnapshot, then scanning windows, before sending the command's own request. These tests still expected the old request sequence; two came from #10674, which merged a minute before #13964. They now assert the new request sequence.Test-only change. Commands still reject missing targets without mutating anything, which the tests continue to assert.
Written for commit a144f69. Summary will update on new commits.
Summary by CodeRabbit