Repository navigation
test: remove redundant mobile and GitLab checks - #22748
Conversation
There was a problem hiding this comment.
✅ No new issues found.
Reviewed changes — audited the full 17-file diff and verified every removed case is duplicated by a stronger owner-boundary test, plus the two production deletions.
- Dead drawer scroll state removed —
RightDrawer.tsxdrops the write-onlyscrollOffsetYshared value, itsuseAnimatedScrollHandler, and theScrollView'sonScroll/scrollEventThrottle; the value had no reader, so this is pure dead-code removal. countDiffLinesmade private —mr-file-diffs.tsloses the test-only export; the only reference is the internalmapMRFilecall.- Redundant tests deleted — 43 cases across mobile and GitLab removed. The one rewritten block now drives GitLab line counts through
fetchMRFilesinstead of the private helper, so it tests the reachable header-less payload shape end-to-end.
I spot-checked the load-bearing coverage claims rather than taking them on faith: ping/pong (host-seams.test.ts, native-document-bundle.test.ts), surface-tap routing (terminal-webview-tap-routing.test.ts), no-CDN/WebGL (terminal-webview-engine.test.ts:94), route encoding (host-route-action-state.test.ts), the worktree-activation golden, and the dictation audio budget all remain. write-queue.test.ts still uses PREVIOUS_WRITE_QUEUE_SOURCE, and its oracle-distinctness is still pinned by the assertions at lines 154-155 / 185-186. No stale references to the deleted files remain, and no unused imports or constants were left behind.
Verification this run: pnpm test src/main/gitlab/work-item-details.test.ts (10 passed) and pnpm --dir mobile test over the 12 touched files (131 passed).
DeepSeek Flash (free via Pullfrog for OSS) | 𝕏
|
Navigate logical layers of code changes, visualize relationships, and explore their blast radius. 📝 WalkthroughWalkthroughThe change removes or narrows mobile and GitLab tests. RightDrawer no longer tracks scroll offset. GitLab diff-count tests now call fetchMRFiles, and countDiffLines is no longer exported. Priority: ⬇️ Low Merge Risk: 🔵 Low · up to The change is mergeable with follow-up test coverage for terminal font options and PR drawer scrolling. No current user-facing failure is established. 🚥 Pre-merge checks | ✅ 4 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (4 passed)
✨ Finishing Touches 💡 2📝 Generate docstrings 💡
🛠️ Fix failing CI checks 💡
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 |
There was a problem hiding this comment.
🧹 Nitpick comments (2)
mobile/src/terminal/terminal-webview-text-zoom.test.ts (1)
8-8: 📐 Maintainability & Code Quality | 🔵 Trivial | ⚡ Quick winAssert the font options at terminal initialization.
The existing
host-seams.test.tstest captures the options passed throughterminal-init.ts, but it only checkscols. AssertfontFamily,fontWeight, andfontWeightBoldat this owner boundary.Suggested assertions
expect(options[0]!.cols).toBe(80) +expect(options[0]!.fontFamily).toBe(scope.terminalFontFamily) +expect(options[0]!.fontWeight).toBe('300') +expect(options[0]!.fontWeightBold).toBe('500')config/scripts/mobile-web-app-source-control-render.test.mjs (1)
286-287: 📐 Maintainability & Code Quality | 🔵 Trivial | ⚡ Quick winCover PR drawer scrolling in a device proof.
The drawer proof opens only the
Filtersheet. It does not open a PR drawer or assert vertical scrolling. The existing PR-comments E2E test uses a seeded store fixture and checks comment cards, not device-level drawer scrolling.This is a coverage gap, not a production scrolling defect.
Suggested note update
- * scroll behavior belongs with the device proof, which reaches a real PR. + * scroll behavior is not exercised here; cover it in a device proof that opens a real PR and + * checks vertical scrolling.
ℹ️ Review info
⚙️ Run configuration
Configuration used: Repository UI
Review profile: CHILL
Plan: Advanced
Run ID: 30d0c07b-b044-4808-9762-db9079c54dea
📒 Files selected for processing (17)
config/scripts/mobile-web-app-source-control-render.test.mjsmobile/src/components/RightDrawer.tsxmobile/src/components/right-drawer-scroll-handler.test.tsmobile/src/hooks/use-mobile-dictation-source.test.tsmobile/src/tasks/mobile-tasks-session-href.test.tsmobile/src/terminal/document/write-queue.test.tsmobile/src/terminal/terminal-webview-engine.test.tsmobile/src/terminal/terminal-webview-reflow.test.tsmobile/src/terminal/terminal-webview-scroll-routing.test.tsmobile/src/terminal/terminal-webview-text-zoom.test.tsmobile/src/terminal/terminal-webview-theme.test.tsmobile/src/terminal/terminal-webview-url-tap.test.tsmobile/src/worktree/mobile-worktree-activation-source.test.tssrc/main/gitlab/gl-utils.test.tssrc/main/gitlab/mr-file-diffs.tssrc/main/gitlab/project-ref-parser.test.tssrc/main/gitlab/work-item-details.test.ts
💤 Files with no reviewable changes (11)
- mobile/src/terminal/terminal-webview-engine.test.ts
- mobile/src/components/RightDrawer.tsx
- mobile/src/components/right-drawer-scroll-handler.test.ts
- mobile/src/worktree/mobile-worktree-activation-source.test.ts
- mobile/src/terminal/terminal-webview-reflow.test.ts
- src/main/gitlab/project-ref-parser.test.ts
- mobile/src/hooks/use-mobile-dictation-source.test.ts
- mobile/src/terminal/terminal-webview-url-tap.test.ts
- src/main/gitlab/gl-utils.test.ts
- mobile/src/terminal/terminal-webview-theme.test.ts
- mobile/src/tasks/mobile-tasks-session-href.test.ts
Included review availability: Your plan provides up to 10 included reviews per hour; 8 remain after this review.

ELI5
Orca behaves the same, while the test suite has fewer checks that repeated stronger checks or inspected source text. A reviewer can change internal organization without repairing those redundant tests.
What Changed
Why
The removed cases duplicated stronger tests, inspected source spelling, checked fixtures against themselves, or exercised private helpers in isolation. Keeping the existing owner-boundary tests gives the same regression signal with less maintenance than rewriting each check at another layer. Distinct platform, protocol, release, and lifecycle guards remain.
Linked Issue
Fixes #22747
Visual Proof
N/A. There is no intended visual or interaction change; the drawer code removed tracked a scroll value that nothing read.
Testing
On macOS:
ORCA_BACKGROUND_LAUNCH=1 pnpm test src/main/gitlab— 18 files, 276 tests passed after rebase.ORCA_BACKGROUND_LAUNCH=1 pnpm --dir mobile test src/tasks/mobile-tasks-session-href.test.ts src/host-route-action-state.test.ts src/test-support/rpc-recording/pilot-recordings.test.ts -t 'host-worktree-actions-pin-open-delete|a session href built under the tasks tree|host route action state'— 11 selected tests passed after rebase.ORCA_BACKGROUND_LAUNCH=1 pnpm tc:node,ORCA_BACKGROUND_LAUNCH=1 pnpm --dir mobile typecheck,pnpm run check:code-quality:changed, formatting, andgit diff --checkpassed.Review
The removed scroll value had no reader. The remaining mobile RPC recording runs the actual hook with the expected
notifyClients: falseandnavigation: 'caller'request; the tasks route helper has its own encoding tests. GitLab diff counts remain verified throughfetchMRFiles.Agent skill upstream boundary
Notes
This audit changes no wire or storage format. The only production edits remove unused local drawer state and a test-only export. Mobile and GitLab owner tests cover the cross-platform and SSH-adjacent paths touched here.
Checklist
pnpm lint,pnpm typecheck,pnpm test, andpnpm buildwill run in CI; targeted local checks passed