Repository navigation
Fix Windows unit test failures and symlink check in install version detection - #1387
Conversation
…etection Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01RP6NCTVa4h8twJxNMhhMWs
Codex Review Summary: ❌ FailedThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
|
You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard. |
|
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 46 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. |
CI failed: The only failing check is the 'Milestone is set' job, which fails because this PR has no milestone assigned; it is unrelated to the Windows unit test and symlink changes.OverviewOne unique error template was found across 1 log (job 133783540638) for commit cc75ab5. The analysis points to a single, clear process failure rather than a code problem. FailuresPR milestone missing (confidence: high)
Summary
Code Review ✅ Approved 🟡 Medium riskThe lstat check rejects symlinked version files, which could change install-version detection for Windows deployments that rely on them. Makes three Windows-unsafe tests portable: skips the fake VerificationRules No rules evaluated Functional validation Not enabledAuto-approval Approved For more verification details, comment Tip Comment OptionsAuto-apply is off → Gitar will not commit updates to this branch. Comment with these commands to change the behavior for this request:
Was this helpful? React with 👍 / 👎 | Powered by Gitar — free for open source |
|
Codecov Report✅ All modified and coverable lines are covered by tests. 📢 Thoughts on this report? Let us know! |



Requested by Vincent · project thread
Summary
The weekly
Windowsworkflow has been red onmain(and on every Dependabot actions PR, e.g. #1371) because three tests assume Linux. This makes them portable:archive_service_streaming: the fake 7z/unrar binaries are#!nodescripts that Windows cannot execute, so the suite is skipped onwin32.backup_restore:closeDatabase()is a no-op on SQLite and Windows refuses to delete an open file (EBUSY). The sqlite handle is now closed before the temp directory is removed,rmSyncretries, and the POSIX permission-bit assertion is skipped on Windows.install-version:O_NOFOLLOWis ignored on Windows, so a symlinkedversion.txtwas followed (real behavior gap, not only a test issue). The file is nowlstat-checked before opening, on every platform.Test plan
npm run check, eslint, prettierWindowsworkflow run on this branch (triggered via workflow_dispatch; this workflow does not run on PRs that do not touch it)Generated by Claude Code