Repository navigation
test(cli): find the npm-cli.js npm runs, not one under its global prefix - #240
Merged
adityankale190895 merged 5 commits intoNov 18, 2026
Merged
Conversation
Fixes DiffCI#193 Signed-off-by: FredApps <[email protected]>
Fixes DiffCI#196 Signed-off-by: FredApps <[email protected]>
Contributor
Author
|
CI diagnosis for the failed Merge gate smoke job (run 44129818181): The job's The failure is not caused by this PR. It should clear once #203 is merged and this branch is updated from |
Refs DiffCI#193 Signed-off-by: FredApps <[email protected]>
This was referenced Nov 17, 2026
Contributor
Author
|
Cross-review (FredApps, head 38b9306). Not an approval. Checked
Fixed: nothing needed. Open
|
…ffCI#202 The manifest is an unordered set, and the PRs listed above add their entries at the same line. Moving this entry one line away lets them merge in either order without a conflict. Signed-off-by: FredApps <[email protected]>
…ses before DiffCI#203 lands Main fails the stale verify help-text test (DiffCI#193), which DiffCI#203 fixes. With it merged in, this PR's CI reflects its own change. Signed-off-by: FredApps <[email protected]>
FredApps
marked this pull request as ready for review
November 18, 2026 01:10
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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Fixes #196
Changed behavior
This changes only tests. The
init --installtest intests/client/cli-agent.test.tsnow gets the path ofnpm-cli.jsfrom a newnpmCliPath()helper intests/helpers/npm-cli.ts. The helper follows the real path of thenpmexecutable onPATH, which is the npm that actually runs, and falls back tonpm root -gonly when that does not lead tonpm-cli.js. On a machine where npm's global prefix is not the directory npm itself is installed in (for example a user prefix in~/.local), the test no longer looks for a file that does not exist.Validation
tests/client/npm-cli-path.test.tsis new. It checks that the helper returns an existingnpm-cli.js.init --installtest fails onmainwithCannot find module .../npm/bin/npm-cli.jsand passes with this change.npm run typecheckinpackages/diffci-clipasses.npm testinpackages/diffci-cli: the only remaining failure is the help test in CLI tests: cli-agent.test.ts expects the old verify usage line and fails on main #193, which has its own pull request.release-files.json.Includes #203.
mainfails the stalediffci verifyhelp-text test (#193), which made Merge gate smoke red here. This branch merges #203's branch in, so its CI reflects this change alone. Merge #203 first, or merge this PR alone (GitHub then marks #203 as merged). Therelease-files.jsonentry fortests/helpers/npm-cli.tsis now one line away from #202's, so the two no longer conflict.