Skip to content

test: fix macOS-only test drift (real-home write, #34058 record retention) - #35817

Merged
nwparker merged 1 commit into
mainfrom
nwparker/fix-macos-only-test-drift
Oct 29, 2026
Merged

nwparker merged 1 commit into
mainfrom
nwparker/fix-macos-only-test-drift

Conversation

@nwparker

@nwparker nwparker commented Oct 29, 2026 •

Copy link
Copy Markdown
Contributor
Files Added Deleted Net
Test 2 $\color{#1a7f37}{\Huge{\mathbf{+}}}$​10 $\color{#cf222e}{\Huge{\mathbf{−}}}$​1 $\color{#1a7f37}{\Huge{\mathbf{+}}}$​9
Prod 0 0 0 0

Two test files fail on macOS dev machines. CI runs on Linux and never runs these paths, so the drift went unnoticed.

  • src/main/orcad/electron-serve-browser-process.test.ts: on a Mac with /Applications/Orca.app installed, the "installs the actual provider" tests opened a real macOS install park and wrote under the real ~/Library/Application Support/orca, which the vitest real-agent-home guard rejects. This mocks ./orcad-browser-install-park to return null, the same way electron-serve-provider-selection.test.ts already does.
  • src/main/runtime/runtime-failed-local-worktree-removal.test.ts (darwin-only describe): "never deletes a worktree Git registers at the path since, even on the same branch" still expected the failed-removal record to be cleared. fix(windows): delete again succeeds after a held file is released #34058 deliberately changed this to retain the record and updated the cross-platform twin in src/main/worktree-failed-removal.test.ts, but missed this macOS-only copy. This aligns the assertion. The data-safety assertions are unchanged.

Test-only. Verified locally on macOS: both files pass (37 tests).

@coderabbitai

coderabbitai Bot commented Oct 29, 2026

Copy link
Copy Markdown
Contributor

Warning

Review limit reached

You've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository.

Next included review available in 12 minutes.

Check out review usage here.

View limit details

Limit details: You’ve used all 10 included reviews currently available.

Learn how review limits work.

Review configuration:

Run configuration
  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: Repository UI
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: 32d6d7c4-300d-477e-813d-d7a6f7dd23cd
Commits

Reviewing files that changed from the base of the PR and between 2926b6e and 3bef917.

Files selected for processing: 2
  • src/main/orcad/electron-serve-browser-process.test.ts
  • src/main/runtime/runtime-failed-local-worktree-removal.test.ts
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

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.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@nwparker
nwparker merged commit bf4b011 into main Oct 29, 2026
4 checks passed
@greptile-apps

greptile-apps Bot commented Oct 29, 2026 •

Copy link
Copy Markdown

RetriggerView in GreptileConfidence Score: 5/5

[Low impact] The PR appears safe to merge.

Summary

Fixes two macOS test failures without changing production code.

  • The browser test avoids opening a real macOS install park.
  • The macOS test keeps the record after a refused worktree retry.

No actionable issues found. Tests were not run during this review.

Reviews (1) · Last reviewed commit: "test: fix macOS-only test drift (real-ho..." · Reviewed by Greptile

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant