Skip to content

docs(testing): explain npm launcher selection in PowerShell - #8774

Closed
ShuaixinHuang wants to merge 1 commit into
morluto:mainfrom
ShuaixinHuang:codex/docs-powershell-checks
Closed

ShuaixinHuang wants to merge 1 commit into
morluto:mainfrom
ShuaixinHuang:codex/docs-powershell-checks

Conversation

@ShuaixinHuang

@ShuaixinHuang ShuaixinHuang commented Nov 3, 2026 •

Copy link
Copy Markdown
Contributor

Summary

Explain how Windows contributors can run the documented npm checks when PowerShell selects npm.ps1 and script execution is restricted. Use the installed npm.cmd launcher instead of changing execution policy.

Problem and expected behavior

On this Windows host, a child Windows PowerShell session with -ExecutionPolicy Restricted rejects npm --version with a PSSecurityException naming npm.ps1, while npm.cmd --version succeeds. The testing guide currently lists bare npm commands without this recovery.

Change and scope

Add 14 lines to the developer-command section of docs/testing.md, with the existing source-test and fast-check commands spelled as npm.cmd. Explain that this does not install a toolchain, replace dependency setup, or exempt scripts launched by npm from their own checks. No related issue; found while exercising documented checks on Windows. This contributor workflow is separate from the client launch-environment guidance in #8762.

  • Owner: developer testing documentation; no runtime, schema, provider, Evidence, generated metadata, package, or installation changes.
  • Maintainer capability/authority decision: not applicable.
  • Documentation or usability only; no target interaction.

Validation performed

  • Actual Windows PowerShell restricted child: bare npm rejected at npm.ps1; npm.cmd --version succeeded.
  • In the same restricted child, npm.cmd run test:local -- src/config.test.ts — 84 passed.
  • In the same restricted child, npm.cmd run check:fast — typecheck and lint passed, 43.251 seconds.
  • npm.cmd run docs:check — passed, including 9 conformance tests.
  • npm.cmd run docs:build — passed, 15.60 seconds.
  • Formatter and git diff --check — passed.

Verification limits: Windows host with existing launchers and dependencies; check subprocesses used Node 24.22.1, while the installed npm launcher reports 10.9.3 (repository pins npm 11.16.0). Pinned-npm CI remains a separate verification. No machine or user execution-policy settings were changed, no dependencies installed, and no real provider or desktop-client behavior is claimed. Documentation-only; no new automated regression suite.

Author readiness

Human owner: @ShuaixinHuang

  • I reviewed the final diff and relevant existing code, understand the change and its edge cases, and take responsibility for the complete PR, including AI-assisted work.
  • I checked the evidence above, confirmed it supports the current change, and recorded meaningful validation gaps.
  • I declare this PR ready for initial maintainer review.

Before merge

  • This PR addresses a concrete problem or an agreed enhancement.
  • Material scope and authority questions are resolved, and any required maintainer scope decision covers the final diff.
  • The PR has one focused outcome and the title follows type(scope): outcome.
  • Related issue is linked, or the reason for not linking one is stated above.
  • Tests cover changed observable behavior and meaningful failure paths.
  • Owning docs, contracts, and generated metadata are updated where needed.
  • User-visible CLI/MCP changes include representative output.
  • I checked the final diff for secrets, unrelated cleanup, and unsupported claims.

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Nov 3, 2026 •

Copy link
Copy Markdown

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-11-03T10:34:21.096249Z 4ac5548 PR opened
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@greptile-apps

greptile-apps Bot commented Nov 3, 2026 •

Copy link
Copy Markdown
Contributor

RetriggerView in GreptileConfidence Score: 5/5

[Low impact] The documentation change appears safe to merge.

Summary

Adds Windows PowerShell guidance to docs/testing.md.

  • Windows contributors can use npm.cmd when PowerShell blocks npm.ps1.

Supersession could not be checked because GitHub authentication was unavailable. No commands were run to verify Windows behavior.

Reviews (1) · Last reviewed commit: "docs(testing): explain npm launcher sele..." · Reviewed by Greptile

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

Labels

area: tests Test suite and verification documentation Improvements or additions to documentation

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants