Repository navigation
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)
Included review availability: Your plan provides up to 10 included reviews per hour; 7 remain after this review. 📝 WalkthroughWalkthroughTwo workspace grouping tests now match the current grouped-workspace ordering and double-optional membership lookup behavior. ChangesWorkspace grouping tests
Priority: ⬇️ Low Estimated code review effort: 1 (Trivial) | ~2 minutes Change: Other Suggested reviewers: Merge Risk: ⚪ Minimal · up to This test-only change introduces no identified production behavior or merge-blocking risk. 🚥 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 ✍️ ✅ |
`staleGroupReferenceInsideGroupRunRendersAsRootRow` checks `effectiveMembership[staleMember.id] == nil`. `effectiveGroupIdByWorkspaceId` returns `[UUID: UUID?]` with an entry for every tab, so the lookup is a double optional and the stale member's `.some(nil)` never equals `nil`. Compare against `.some(nil)`. `mobileWorkspaceMoveGroupHeaderPreservesGroupMembership` creates a group from two children, but expects the moved group to contain only the anchor and the second child. Group creation keeps every child, so expect the anchor followed by both children at the end of the tab list.
e4b5ad9 to
c11c251
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. |
|
Thanks for tracking this one down! Main picked up the same fix in c8bfb58, so I'm closing this as done. Really appreciate all the test cleanup :) |
Summary
Two workspace group tests expect results the code has never produced.
staleGroupReferenceInsideGroupRunRendersAsRootRowcheckseffectiveMembership[staleMember.id] == nil.effectiveGroupIdByWorkspaceIdreturns[UUID: UUID?]with an entry for every tab, so the lookup is a double optional. The stale member's entry is.some(nil), which prints asnilbut is not equal tonil. The test now compares against.some(nil).mobileWorkspaceMoveGroupHeaderPreservesGroupMembershipcreates a group from two children and then expects the moved group to hold only the anchor and the second child.createWorkspaceGroupkeeps every child, so the test now expects the anchor followed by both children at the end of the tab list.Testing
WorkspaceGroupTestsandWorkspaceGroupMoveToMenuStateTestson 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, both suites fail on the two tests above. With this change on the same base, both suites pass.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
Fixes two workspace group tests that expected results the code never produces.
staleGroupReferenceInsideGroupRunRendersAsRootRownow checks for.some(nil)instead ofnilbecause the lookup returns a double optional.mobileWorkspaceMoveGroupHeaderPreservesGroupMembershipnow expects both children retained when creating a group, matchingcreateWorkspaceGroupbehavior.Written for commit c11c251. Summary will update on new commits.
Summary by CodeRabbit