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
tests/tools: bare "npm" argv is not found on Windows (npm.cmd) -- sibling of #4939 #4969
bugUnintended behavior or logic failure in the enginescope:infraCI, tooling, churn/factory, docs infrastructuretestingUnit, integration, and E2E pipeline verification
Sibling gap of #4939, found by the class sweep in PR #4967.
Class: Windows-unportable subprocess invocations in tests/tools. A bare launcher name in a subprocess argv (no shell=True) does not get PATHEXT applied, so .cmd launchers are not found on Windows.
Fix: resolve npm through shutil.which the same way. Either generalise maven_exe into a which-based launcher resolver or add an npm twin. Then extend the AST guard in test_maven_exe_4939.py so it also rejects a literal "npm" argv.
Acceptance: no bare "npm" argv in tests/tools; the guard test covers it; and a monkeypatched-Windows test resolves npm.cmd.
bugUnintended behavior or logic failure in the enginescope:infraCI, tooling, churn/factory, docs infrastructuretestingUnit, integration, and E2E pipeline verification
Activity
tests/tools: resolve npm and gradle through shutil.which (Windows .cm…