Skip to content

test(server): run the empty-PATH launcher cases only on POSIX hosts - #41791

Open
Motaghi wants to merge 1 commit into
pingdotgg:mainfrom
Motaghi:behmot/launcher-test-posix-guard-20261123
Open

Motaghi wants to merge 1 commit into
pingdotgg:mainfrom
Motaghi:behmot/launcher-test-posix-guard-20261123

Conversation

@Motaghi

@Motaghi Motaghi commented Nov 24, 2026

Copy link
Copy Markdown
Contributor

Follow-up to #41393, for CodeRabbit's note there (#41393 (comment)).

repointLaunchers accepts a working-directory t3 only when its execute bits are set. Windows hosts do not set them on the test fixture, so the leading and trailing empty-PATH cases in serviceLauncherClient.test.ts would fail on a Windows run, even though the test sets the logical platform to Linux. Those two cases now run on POSIX hosts only. The entirely empty PATH case still runs everywhere.

Test-only change. Validation on macOS: serviceLauncherClient.test.ts passes (14 tests), and format, lint, Knip, GraphQL and typecheck pass. Not run on a Windows host.

repointLaunchers accepts a working-directory t3 only if its execute bits are
set, which Windows hosts do not do, so the leading and trailing empty-entry
cases would fail on a Windows run. They now run on POSIX hosts only; the
entirely empty PATH case still runs everywhere.
@github-actions github-actions Bot added vouch:unvouched Author is not yet trusted in the VOUCHED list. size:XS 0-9 changed lines (additions + deletions). labels Nov 24, 2026
@coderabbitai

coderabbitai Bot commented Nov 24, 2026

Copy link
Copy Markdown
Contributor

Explain Change →

No actionable comments were generated in the recent review.

Walkthrough

The empty-PATH-entry tests now skip the leading and trailing cases on win32. The whole-PATH case remains unconditional.

Changes: PATH test cases

Layer / File(s) Summary
Platform-specific test cases
apps/server/src/cloud/serviceLauncherClient.test.ts
The leading and trailing cases run only when the host platform is not win32. The whole case remains unconditional.

Estimated code review effort: 2 (Simple) | ~5 minutes

Change: Other

Suggested reviewers: juliusmarminge

Merge Risk: Minimal · up to 0e298

This is a test-only change that skips two empty-PATH tests on Windows, where the fixture cannot carry the execute bits the launcher repoint requires. It has no production impact and is safe to merge.

Pre-merge checks: Passed 4

Check name Status Explanation
Title check Passed The title names the change: the empty-PATH launcher test cases now run only on POSIX hosts. The raw summary confirms the leading and trailing cases are skipped on win32 while the whole case stays unco…
Description check Passed The description states the problem: repointLaunchers needs execute bits on the working-directory t3 fixture, which Windows hosts do not set, so the leading and trailing empty-PATH cases fail on Window…
Linked Issues check Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check Passed Check skipped because no linked issues were found for this pull request.
Full details: Title check

Explanation

The title names the change: the empty-PATH launcher test cases now run only on POSIX hosts. The raw summary confirms the leading and trailing cases are skipped on win32 while the whole case stays unconditional. The title is specific, follows the conventional commit form used in the template, and is a single sentence of 10 words.

Full details: Description check

Explanation

The description states the problem: repointLaunchers needs execute bits on the working-directory t3 fixture, which Windows hosts do not set, so the leading and trailing empty-PATH cases fail on Windows. It states the change (those two cases run on POSIX only, the whole-PATH case runs everywhere), links the originating discussion, and gives verification on macOS with 14 passing tests. It does not follow the template headings (Problem, Change, Scope, Verification), and the Scope section is not explicit about why no issue is linked, though it links follow-up PR #41393 and a CodeRabbit discussion. It also says Windows was not run, which the template asks for. Most required information is present.

Finishing Touches

Generate unit tests (beta)

  • Create a new PR
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts
Recent review info

Run configuration

Commits

Reviewing files that changed from the base of the PR and between 8a3b1bd and 0e298c6.

Files selected for processing: 1

  • apps/server/src/cloud/serviceLauncherClient.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.

This branch has not been deployed

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

Labels

size:XS 0-9 changed lines (additions + deletions). vouch:unvouched Author is not yet trusted in the VOUCHED list.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant