-
Notifications
You must be signed in to change notification settings - Fork 30k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
build: make tools/doc/node_modules non-phony #22189
Conversation
/ping @rubys @richardlau @nodejs/build-files |
Makefile
Outdated
@@ -262,26 +262,26 @@ jstest: build-addons build-addons-napi ## Runs addon tests and JS tests | |||
.PHONY: test | |||
# This does not run tests of third-party libraries inside deps. | |||
test: all ## Runs default tests, linters, and builds docs. | |||
# Build the addons before running the tests so the test results |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is there any reason for the white space changes?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
With the indentation the comments are sent to the shell and displayed as:
# Build the addons before running the tests so the test results
My reasoning was that this was a mistake and that if we wanted the comments to be displayed the echo command would be used instead and without the #
.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I just removed the commit from the PR but I can create a separate one with this change so that this one can be merged.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'd prefer we keep the comments in the shell scope for this PR.
1191a66
to
e502580
Compare
@refack I've removed that commit from the PR. If CI comes back green could you remove you change request as I'd like to merge this? Thanks |
This commit makes the target tools/doc/node_modules a non-phony target and also adds tools/doc/package.json as a prerequisite to it to avoid running it unnecessary. This is currently causing the target test/addons/.docbuildstamp to be always be executed as it has tools/doc/node_modules as a prerequisite.
e502580
to
b99e529
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
💯
Landed in 88bff82. |
This commit makes the target tools/doc/node_modules a non-phony target and also adds tools/doc/package.json as a prerequisite to it to avoid running it unnecessary. This is currently causing the target test/addons/.docbuildstamp to be always be executed as it has tools/doc/node_modules as a prerequisite. PR-URL: #22189 Reviewed-By: Richard Lau <riclau@uk.ibm.com> Reviewed-By: Franziska Hinkelmann <franziska.hinkelmann@gmail.com> Reviewed-By: Sam Ruby <rubys@intertwingly.net> Reviewed-By: Joyee Cheung <joyeec9h3@gmail.com> Reviewed-By: Refael Ackermann <refack@gmail.com>
This commit makes the target tools/doc/node_modules a non-phony target and also adds tools/doc/package.json as a prerequisite to it to avoid running it unnecessary. This is currently causing the target test/addons/.docbuildstamp to be always be executed as it has tools/doc/node_modules as a prerequisite. PR-URL: #22189 Reviewed-By: Richard Lau <riclau@uk.ibm.com> Reviewed-By: Franziska Hinkelmann <franziska.hinkelmann@gmail.com> Reviewed-By: Sam Ruby <rubys@intertwingly.net> Reviewed-By: Joyee Cheung <joyeec9h3@gmail.com> Reviewed-By: Refael Ackermann <refack@gmail.com>
This commit makes the target
tools/doc/node_modules
a non-phony targetand also adds
tools/doc/package.json
as a prerequisite to it to avoidrunning it unnecessary. This is currently causing the target
test/addons/.docbuildstamp
to be always be executed as it hastools/doc/node_modules
as a prerequisite.Checklist
make -j4 test
(UNIX), orvcbuild test
(Windows) passes