-
Notifications
You must be signed in to change notification settings - Fork 29.8k
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
tools: adjust script for use with 14.x #39362
Conversation
Why not use 16.x in the action? This will never be run with node.js 14 |
I don't understand what you mean by "This will never be run with node.js 14". It runs with 14.x right now in the GitHub Action because that is the version that comes installed by default in GitHub Actions. https://github.com/nodejs/node/runs/3043788212?check_suite_focus=true I think I'm misunderstanding what you mean. As for the question, though: If I add a step to the YAML workflow to install Node.js 16, then it will work, of course, and that was my first impulse. I went with this change instead for two reasons. First, it's less overhead--just a small change to a script rather than downloading and installing Node.js every time (which is a slightly bigger but still small change to the YAML config but more "work" for the GitHub host). Second, this doesn't require any further updates in the future, and if we do update it, it's really just a single straightforward update: remove the property added here. If we go with using So this seemed like a smaller temporary change with a more obvious path of what to do when it is no longer needed, and smaller downside if we never undo it. |
I should have added "if we do it (use 16.x in the action)".
A very smaller amount of work. The host usually doesn't need to download anything because GitHub runners have common Node.js versions in cache.
It's true, but we will already need to do it for other existing workflows In general, I prefer to have control on the versions of software that are used in CI, instead of relying on defaults. |
I don't feel strongly about it, so I'll go ahead and change this to a workflow adjustment instead. |
2a98bed
to
2c86a57
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.
LGTM with or without my suggestion.
find-inactive-collaborators.mjs works fine with Node.js 16.x, but GitHub Actions currently use 14.x by default. PR-URL: nodejs#39362 Reviewed-By: Michaël Zasso <targos@protonmail.com> Reviewed-By: Antoine du Hamel <duhamelantoine1995@gmail.com>
GitHub Action workflows can be told to clone a certain number of commits or else everything. Change find-inactive-collaborators to take a number of commits to examine rather than a date range so that the parameter can be used in GitHub Actions. PR-URL: nodejs#39362 Reviewed-By: Michaël Zasso <targos@protonmail.com> Reviewed-By: Antoine du Hamel <duhamelantoine1995@gmail.com>
Landed in efd40ea...1bb660e |
find-inactive-collaborators.mjs works fine with Node.js 16.x, but GitHub Actions currently use 14.x by default. PR-URL: #39362 Reviewed-By: Michaël Zasso <targos@protonmail.com> Reviewed-By: Antoine du Hamel <duhamelantoine1995@gmail.com>
GitHub Action workflows can be told to clone a certain number of commits or else everything. Change find-inactive-collaborators to take a number of commits to examine rather than a date range so that the parameter can be used in GitHub Actions. PR-URL: #39362 Reviewed-By: Michaël Zasso <targos@protonmail.com> Reviewed-By: Antoine du Hamel <duhamelantoine1995@gmail.com>
find-inactive-collaborators.mjs works fine with Node.js 16.x, but GitHub Actions currently use 14.x by default. PR-URL: #39362 Reviewed-By: Michaël Zasso <targos@protonmail.com> Reviewed-By: Antoine du Hamel <duhamelantoine1995@gmail.com>
GitHub Action workflows can be told to clone a certain number of commits or else everything. Change find-inactive-collaborators to take a number of commits to examine rather than a date range so that the parameter can be used in GitHub Actions. PR-URL: #39362 Reviewed-By: Michaël Zasso <targos@protonmail.com> Reviewed-By: Antoine du Hamel <duhamelantoine1995@gmail.com>
find-inactive-collaborators.mjs works fine with Node.js 16.x, but GitHub Actions currently use 14.x by default. PR-URL: #39362 Reviewed-By: Michaël Zasso <targos@protonmail.com> Reviewed-By: Antoine du Hamel <duhamelantoine1995@gmail.com>
GitHub Action workflows can be told to clone a certain number of commits or else everything. Change find-inactive-collaborators to take a number of commits to examine rather than a date range so that the parameter can be used in GitHub Actions. PR-URL: #39362 Reviewed-By: Michaël Zasso <targos@protonmail.com> Reviewed-By: Antoine du Hamel <duhamelantoine1995@gmail.com>
find-inactive-collaborators.mjs works fine with Node.js 16.x, but GitHub
Actions currently use 14.x by default. This PR makes a small adjustment
so that it works with 14.x. (14.x does not accept URL objects as
paramemters for the
cwd
option inspawn()
.)