You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
test(server): tracked-folder tests pass on Windows - #41028
Two tests in apps/server/src/project/ProjectService.test.ts fail on Windows: "keeps a valid tracked folder list and refuses the others" and "keeps a folder added while a scan of the project folder waited to commit". They build their expected tracked-folder paths with hard-coded forward slashes, such as ${work}/api. ProjectService resolves each tracked folder with path.resolve, so on Windows it returns C:\...\api, which does not deep-equal C:\.../api. Linux CI passes because the two forms match there.
Reproduce on Windows: from apps/server, run vp test run src/project/ProjectService.test.ts. 2 of 20 tests fail.
Change
The two tests build their expected paths with the Effect Path service's path.join, so the expected paths use the host's separators. The folder helper's parameter is renamed so it no longer shadows path. The service is unchanged: native separators match how workspace roots are stored.
Scope
Test-only fix for tests added in #35925. It needs no issue: the failure is deterministic on any Windows host and the fix changes no product behavior.
Verification
Windows: vp test run src/project/ProjectService.test.ts fails 2 of 20 tests before the change and passes 20 of 20 after.
Linux: the same file passes 20 of 20 with the change.
vp run check:changed passes format, lint, knip, typecheck, and tests.
Model: Claude Opus 5.5. Harness: Claude Code in T3 Code.
Two ProjectService tests built their expected tracked-folder paths
with hard-coded forward slashes. The service resolves each folder to
native separators, so on Windows the paths it returns did not
deep-equal the expected ones. Build the expected paths with
Path.join instead.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Reviewing files that changed from the base of the PR and between 99b5c1a and ac11260.
You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.
Use the checkbox below for a quick retry:
Trigger review
No actionable comments were generated in the recent review.
Walkthrough
The project service tests now use Effect’s Path service to construct tracked-folder fixture paths and expected discovered-folder paths.
Changes: Project service test paths
Layer / File(s)
Summary
Use Path in folder tests apps/server/src/project/ProjectService.test.ts
The tracked-folder and folder-sync race tests use Effect’s Path service and path.join to build fixture and expected paths. The tracked-folder helper parameter is renamed to avoid shadowing the service.
This is a test-only change that makes tracked-folder tests build paths with native separators. It does not change product behavior and carries no identified merge risk.
Pre-merge checks: 4
Check name
Status
Explanation
Title check
The title "test(server): tracked-folder tests pass on Windows" matches the main change. The PR switches two ProjectService tests from hard-coded forward-slash paths to Effect Path.join so they pass on…
Description check
The description follows the template. It has Problem, Change, Scope, and Verification sections. The Problem section explains the Windows failure and gives reproduction steps. The Change section explai…
Linked Issues check
Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check
Check skipped because no linked issues were found for this pull request.
Full details: Title check
Explanation
The title "test(server): tracked-folder tests pass on Windows" matches the main change. The PR switches two ProjectService tests from hard-coded forward-slash paths to Effect Path.join so they pass on Windows. The title is concise, uses a conventional commit prefix, and names the affected area and platform.
Full details: Description check
Explanation
The description follows the template. It has Problem, Change, Scope, and Verification sections. The Problem section explains the Windows failure and gives reproduction steps. The Change section explains the switch to path.join and the parameter rename. The Scope section links the related tests (#35925) and explains why no issue is needed. The Verification section reports Windows and Linux test results before and after the change, and the commands run. The description does not include a line that identifies the agent model, but it does: 'Model: Claude Opus 5.5. Harness: Claude Code in T3 Code.' The template calls for this line, so it is covered.
Finishing Touches
Generate unit tests (beta)
Create a new PR
Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts
Reviewing files that changed from the base of the PR and between 25440f5 and 99b5c1a.
Files selected for processing: 1
apps/server/src/project/ProjectService.test.ts
Included review availability: This review used your included allowance. Your plan provides up to 10 included reviews per hour; 9 remain after this review.
Exercised tracked-folder validation, creation, rename, snapshot reads, tracking/untracking, reordering, missing-folder retention, clearing, workspace moves, repository discovery, and deletion through each commit's running server. Each side used fresh isolated data and identical synthetic fixtures. All 28 captured responses match between commits on each OS, excluding the commit header. Windows returns native backslash paths; Linux returns forward-slash paths.
Supplementary check, separate from runtime evidence: the reported Windows test command produced 18 passes and 2 separator assertion failures on base, then 20 passes on head.
Not shown:
The exact lock-controlled scan/update interleaving in the second changed unit test was not forced through the real server API. Captures show discovery retaining a manually added folder on both commits; deterministic interleaving was covered only by the supplementary test run.
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
size:S10-29 changed lines (additions + deletions).vouch:unvouchedAuthor is not yet trusted in the VOUCHED list.
2 participants
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.
Problem
Two tests in
apps/server/src/project/ProjectService.test.tsfail on Windows: "keeps a valid tracked folder list and refuses the others" and "keeps a folder added while a scan of the project folder waited to commit". They build their expected tracked-folder paths with hard-coded forward slashes, such as${work}/api. ProjectService resolves each tracked folder withpath.resolve, so on Windows it returnsC:\...\api, which does not deep-equalC:\.../api. Linux CI passes because the two forms match there.Reproduce on Windows: from
apps/server, runvp test run src/project/ProjectService.test.ts. 2 of 20 tests fail.Change
The two tests build their expected paths with the Effect
Pathservice'spath.join, so the expected paths use the host's separators. Thefolderhelper's parameter is renamed so it no longer shadowspath. The service is unchanged: native separators match how workspace roots are stored.Scope
Test-only fix for tests added in #35925. It needs no issue: the failure is deterministic on any Windows host and the fix changes no product behavior.
Verification
vp test run src/project/ProjectService.test.tsfails 2 of 20 tests before the change and passes 20 of 20 after.vp run check:changedpasses format, lint, knip, typecheck, and tests.Model: Claude Opus 5.5. Harness: Claude Code in T3 Code.