Repository navigation
test: fix macOS-only test drift (real-home write, #34058 record retention) - #35817
Merged
Merged
Conversation
Contributor
|
Warning Review limit reachedYou'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. View limit details
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 |
[Low impact] The PR appears safe to merge. SummaryFixes two macOS test failures without changing production code.
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 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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.appinstalled, 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-parkto returnnull, the same wayelectron-serve-provider-selection.test.tsalready does.src/main/runtime/runtime-failed-local-worktree-removal.test.ts(darwin-onlydescribe): "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 insrc/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).