FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

benchmark: remove dependency on unshipped tools by AdamMajer · Pull Request #51146 · nodejs/node · GitHub

/ node Public

benchmark: remove dependency on unshipped tools - #51146

Closed
AdamMajer wants to merge 1 commit into
nodejs:mainfrom
AdamMajer:cli-benchmark-fix
Closed

benchmark: remove dependency on unshipped tools#51146
AdamMajer wants to merge 1 commit into
nodejs:mainfrom
AdamMajer:cli-benchmark-fix

Conversation

Copy link
Copy Markdown
Contributor

tools/node_modules is removed from the tarball so it should not be used as part of unit tests or benchmarks.

Fixes: #51145

nodejs-github-bot added the benchmark Issues and PRs related to the benchmark subsystem. label Dec 13, 2023

Copy link
Copy Markdown
Contributor Author

An alternative to using npx is to reduce the number of executables run here to 2

AdamMajer changed the title test: remove dependency on unshipped tools benchmark: remove dependency on unshipped tools Dec 13, 2023

anonrig commented Dec 14, 2023

Copy link
Copy Markdown
Member

cc @nodejs/build

Comment thread benchmark/misc/startup-cli-version.js Outdated
tools/node_modules is removed from the tarball so it should not be used
as part of unit tests or benchmarks.

Fixes: nodejs#51145
Refs: nodejs#50684
lpinca added the request-ci Add this label to start a Jenkins CI on a PR. label Dec 25, 2023
github-actions Bot removed the request-ci Add this label to start a Jenkins CI on a PR. label Dec 25, 2023

Copy link
Copy Markdown
Collaborator

Copy link
Copy Markdown
Collaborator

jasnell commented Dec 25, 2023

Copy link
Copy Markdown
Member

Landed in 345f15e

jasnell closed this Dec 25, 2023
jasnell pushed a commit that referenced this pull request Dec 25, 2023
tools/node_modules is removed from the tarball so it should not be used
as part of unit tests or benchmarks.

Fixes: #51145
Refs: #50684
PR-URL: #51146
Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
Reviewed-By: James M Snell <jasnell@gmail.com>
RafaelGSS pushed a commit that referenced this pull request Jan 2, 2024
tools/node_modules is removed from the tarball so it should not be used
as part of unit tests or benchmarks.

Fixes: #51145
Refs: #50684
PR-URL: #51146
Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
Reviewed-By: James M Snell <jasnell@gmail.com>
RafaelGSS mentioned this pull request Jan 2, 2024
AdamMajer added a commit to AdamMajer/node that referenced this pull request Feb 14, 2024
In previous version of this fix, I've simply added a check if the tested
tool is available or not. Unfortuntelly, this fails when only the first
tool is to be run as part of the test-benchmark-misc, and it doesn't
exist.

benchmark/test-benchmark-misc
...
AssertionError [ERR_ASSERTION]: benchmark file not running exactly one
configuration in test:
...
misc/startup-cli-version.js
...

One solution is to check if the cli tool is actually available before
using it in a benchmark

Refs: nodejs#51146
richardlau pushed a commit that referenced this pull request Mar 25, 2024
tools/node_modules is removed from the tarball so it should not be used
as part of unit tests or benchmarks.

Fixes: #51145
Refs: #50684
PR-URL: #51146
Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
Reviewed-By: James M Snell <jasnell@gmail.com>
richardlau mentioned this pull request Mar 25, 2024
aduh95 pushed a commit that referenced this pull request May 11, 2024
PR-URL: #51746
Refs: #51146
Refs: #50684
Reviewed-By: Richard Lau <rlau@redhat.com>
Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
Reviewed-By: Marco Ippolito <marcoippolito54@gmail.com>
Reviewed-By: Joyee Cheung <joyeec9h3@gmail.com>
targos pushed a commit that referenced this pull request May 11, 2024
PR-URL: #51746
Refs: #51146
Refs: #50684
Reviewed-By: Richard Lau <rlau@redhat.com>
Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
Reviewed-By: Marco Ippolito <marcoippolito54@gmail.com>
Reviewed-By: Joyee Cheung <joyeec9h3@gmail.com>
marco-ippolito pushed a commit that referenced this pull request Jun 17, 2024
PR-URL: #51746
Refs: #51146
Refs: #50684
Reviewed-By: Richard Lau <rlau@redhat.com>
Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
Reviewed-By: Marco Ippolito <marcoippolito54@gmail.com>
Reviewed-By: Joyee Cheung <joyeec9h3@gmail.com>
soophoo pushed a commit to soophoo/node that referenced this pull request Jun 20, 2024
PR-URL: nodejs#51746
Refs: nodejs#51146
Refs: nodejs#50684
Reviewed-By: Richard Lau <rlau@redhat.com>
Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
Reviewed-By: Marco Ippolito <marcoippolito54@gmail.com>
Reviewed-By: Joyee Cheung <joyeec9h3@gmail.com>
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

Labels

benchmark Issues and PRs related to the benchmark subsystem.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

tests: tools/node_modules is not present in tarball

6 participants


Back | FazBrowse Home | New Git URL