test(server): use the host platform for launcher PATH lookup #20210
main fromrefs/pull/20210/head·opened View on GitHubProblem#
The launcher PATH lookup test fails on Windows because it creates native Windows paths but forces HostProcess.Platform to linux and separates PATH entries with :. Parsing the drive prefix as a PATH separator drops C: from the resolved launcher path.
Change#
Use the host platform and its PATH separator for this test. Keep the bare-command, relative-path, and missing-launcher assertions unchanged. The two symlink tests keep their intentional Linux platform overrides.
Scope and approval#
This is a focused correction of an obvious test portability defect, submitted under the small bug-fix exception without a prior issue. Only apps/server/src/cli/update.test.ts changes; runtime behavior is unchanged.
Verification#
On Windows 11 x64 (build 26200), Node v24.21.0, against upstream e3b35d1b2440b104f0bc2e357377c348121234dd:
- Before:
pnpm exec vp test run apps/server/src/cli/update.test.ts— 2 passed, 1 failed. The failing assertion received\...\t3-update-<id>\bin\t3instead ofC:\...\t3-update-<id>\bin\t3. - After: the same command — all 3 tests passed.
pnpm exec vp check apps/server/src/cli/update.test.ts— formatting and lint passed, no warnings.pnpm --filter t3 typecheck— passed; existing Effect suggestions remain.git diff --check— passed.- Upstream PR CI — passed on
fdb5326: all eight server-test shards, lint, build/typecheck, and the general test job succeeded. - Linux fork checks for this same patch carried on the personal fork: passing run. This used the fork's base, not this upstream PR branch.
- A fresh run for this PR branch was blocked before checks started: the fork's 24-hour Actions job budget was 158/150. No test jobs ran in that attempt; it still needs a retry when capacity returns.
macOS was not tested locally. No UI changes.
Implemented by GPT-6.1 Sol at high effort, independently reviewed by GPT-6.1 Sol at xhigh effort, using the Codex harness in T3 Code.
- 1
github-actions[bot](GitHub profile, opens in a new tab) added labelsvouch:unvouched
github-actions[bot](GitHub profile, opens in a new tab) added labelssize:XS
macroscopeapp[bot](GitHub profile, opens in a new tab) approved these changes
Approvability#
Verdict: Approved at
fdb5326Macroscope's review found this PR approvable — The PR is confined to a single ignored test file and only makes the launcher PATH test use the host platform’s delimiter, leaving production behavior unchanged. It introduces no product-default or static-analysis changes and has a limited test-harness blast radius.
Notes:
- No code objects were reviewed. Approvability was decided on eligibility alone.
No actionable comments were generated in the recent review. 🎉
ℹ️ Recent review info
-
⚙️ Run configuration
-
- Configuration used: Path: .coderabbit.config.ts
- Review profile: CHILL
- Plan: Advanced
- Run ID:
c4d32a05-b79e-4e18-8644-6bc287453914
📥 Commits
-
Reviewing files that changed from the base of the PR and between e3b35d1b2440b104f0bc2e357377c348121234dd and fdb5326e9451f9ea2bab05cbe6851737f2808bbd.
📒 Files selected for processing: 1
-
apps/server/src/cli/update.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.
-
📝 Walkthrough
-
The PATH-resolution test now selects
;on Windows and:on other platforms. It uses the platform service supplied by the test layer instead of forcing Linux.Changes: Platform-aware PATH test
Layer / File(s) Summary Use the host platform in PATH test setup
apps/server/src/cli/update.test.tsThe test uses the platform service supplied by the test layer and joins PATH entries with the corresponding delimiter. Priority: ⬇️ Low
Estimated code review effort: 1 (Trivial) | ~5 minutes
Change: Bug fix
Suggested reviewers:
juliusmarminge
### Architecture SummaryMerge Risk: ⚪ Minimal · up to
fdb53-
This change updates only the PATH-resolution test setup; production launcher behavior is unchanged. The fixture now matches the host platform, and no actionable merge risk remains.
Architecture risk: 🔵 Low · up to
fdb53The change affects 1 system.
Changed systems:
apps/serverArchitecture concerns No architecture-level concerns identified.
Review details
-
Systems and components
- observed — apps/server (service) was modified; 1 changed file maps to changed impact.
Before / after behavior
- observed — Modified behavior in apps/server/src/cli/update.test.ts: The test derives the PATH delimiter from
HostProcess.Platform, using;for Windows and:otherwise. - observed — Modified behavior in apps/server/src/cli/update.test.ts: The PATH fixture now joins its entries with the platform-specific delimiter instead of always using
:. - observed — Modified behavior in apps/server/src/cli/update.test.ts: The test no longer overrides
HostProcess.Platformto Linux; it uses the platform service supplied by the test layer.
Pre-merge checks:
4-
Check name Status Explanation 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. Title check The title clearly and concisely describes the main change: updating the server test to use the host platform for launcher PATH lookup. Description check The description includes all required sections. It explains the Windows portability problem, the focused test change, the small bug-fix scope exception, and detailed verification results, including li… Full details: Description check
-
Explanation
The description includes all required sections. It explains the Windows portability problem, the focused test change, the small bug-fix scope exception, and detailed verification results, including limitations for macOS and the blocked fork run.
-
✨ Finishing Touches
-
🧪 Generate unit tests (beta)
-
- Create a new PR
-
- Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts
-
Note
Written by
claude-opus-5-5on behalf of MariaThanks for this. I'm closing it as part of PR triage. Right now we're only taking focused bug fixes from outside contributors (see Read this first), and this PR is not one.
From the review: This changes only the launcher lookup test's platform and PATH delimiter; runtime lookup already uses the host platform. Test-only changes need maintainer agreement first.
If you think this was a mistake, message me on Twitter at @maria_rcks and I'll take another look.
maria-rcks closed this
Sign in to join this conversation.
Codex Review Summary#
This comment shows the latest Codex review activity on this pull request.
fdb5326ℹ️ About Codex in GitHub
Your 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.