| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
Sorry, something went wrong.
|
cc @nodejs/testing |
Sorry, something went wrong.
There was a problem hiding this comment.
LGTM. Maybe the thing to do to make everyone happy is put the linter into a test file so it can run in parallel with other tests. :-D I'm just joking. OR AM I?!?!
Sorry, something went wrong.
|
Another option, if people do object to this, might be to make it somehow configurable or have a task separate from make test that has this ordering. |
Sorry, something went wrong.
|
Great idea! Should make things easier for new contributors too (number of people running make test and finding linter errors at the end at code-and-learn was large). |
Sorry, something went wrong.
|
Looking at #5470 cc @bnoordhuis @Fishrock123 I am thinking maybe we can have two targets
Doesn't have to be these two, any suggestions are welcomed. (I wouldn't even object to make t because hey, less typing) |
Sorry, something went wrong.
I like the "linter as test" idea (or some other way to make lint not stop the rest of the make), since it will allow to get both outputs with a single run. |
Sorry, something went wrong.
Something like this seems like it would resolve @bnoordhuis 's objection to the previous PR, while making new contributor's lives easier.
I like make t, it's not obvious, but then this isn't something people getting started are likely to need. |
Sorry, something went wrong.
|
Another possible color for the bikeshed: A ./configure --lint-first type of option may be worthwhile... that is, some configuration option that would instruct the Makefile to run linting first. |
Sorry, something went wrong.
|
@jasnell That works as well but I think the default should be lint-first instead? Also this could require some hack because the main Makefile is not actually generated... |
Sorry, something went wrong.
There was a problem hiding this comment.
LGTM
Sorry, something went wrong.
|
How about "test-no-lint" for the target that does everything except for the linter ? But no strong feeling, just another suggestion to consider. |
Sorry, something went wrong.
There was a problem hiding this comment.
LGTM
The make t & make test suggestion seems good to me, FWIW.
Sorry, something went wrong.
|
Rebased and implemented make t for people who just want a quick check. @apapirovski @refack @Trott @lpinca @BridgeAR @mhdawson @gibfahn Can people who approved before take another look please? Thanks! Also @bnoordhuis do you still object to this idea? Although we can always revert if we hate it ¯\(ツ)/¯ |
Sorry, something went wrong.
There was a problem hiding this comment.
Does t need to be added to .PHONY?
Sorry, something went wrong.
There was a problem hiding this comment.
t is a terrible name for a make target (that what it does has to be described in a comment is a good indicator that it is badly named). We're already at 40+ phony targets -- It should be in our interest that the target names be reasonably self descriptive.
Sorry, something went wrong.
There was a problem hiding this comment.
But this isn't something most people will want to use. It looks like a shortcut, which is what it is.
Sorry, something went wrong.
There was a problem hiding this comment.
I would prefer test-only, personally... I think anyways. Maybe not.
¯\_(ツ)_/¯
Sorry, something went wrong.
There was a problem hiding this comment.
Basically LGTM, but I would prefer not to use single-character target names.
Sorry, something went wrong.
There was a problem hiding this comment.
LGTM. I'd prefer a more descriptive name but don't want to bikeshed so I'm ok with that everybody else agrees to.
Sorry, something went wrong.
|
@richardlau @tniessen @mhdawson Yeah...took the name because it's meant to be a shortcut, couldn't think of anything better at that point. How about make check? |
Sorry, something went wrong.
PR-URL: #16284 Fixes: https://github.com/node/issues/16283 Reviewed-By: Rich Trott <rtrott@gmail.com> Reviewed-By: Gibson Fahnestock <gibfahn@gmail.com> Reviewed-By: Refael Ackermann <refack@gmail.com> Reviewed-By: Luigi Pinca <luigipinca@gmail.com> Reviewed-By: Michael Dawson <michael_dawson@ca.ibm.com> Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de> Reviewed-By: Anatoli Papirovski <apapirovski@mac.com> Reviewed-By: Tobias Nießen <tniessen@tnie.de> Reviewed-By: Franziska Hinkelmann <franziska.hinkelmann@gmail.com> Reviewed-By: Richard Lau <riclau@uk.ibm.com>
PR-URL: #16284 Fixes: https://github.com/node/issues/16283 Reviewed-By: Rich Trott <rtrott@gmail.com> Reviewed-By: Gibson Fahnestock <gibfahn@gmail.com> Reviewed-By: Refael Ackermann <refack@gmail.com> Reviewed-By: Luigi Pinca <luigipinca@gmail.com> Reviewed-By: Michael Dawson <michael_dawson@ca.ibm.com> Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de> Reviewed-By: Anatoli Papirovski <apapirovski@mac.com> Reviewed-By: Tobias Nießen <tniessen@tnie.de> Reviewed-By: Franziska Hinkelmann <franziska.hinkelmann@gmail.com> Reviewed-By: Richard Lau <riclau@uk.ibm.com>
PR-URL: #16284 Fixes: https://github.com/node/issues/16283 Reviewed-By: Rich Trott <rtrott@gmail.com> Reviewed-By: Gibson Fahnestock <gibfahn@gmail.com> Reviewed-By: Refael Ackermann <refack@gmail.com> Reviewed-By: Luigi Pinca <luigipinca@gmail.com> Reviewed-By: Michael Dawson <michael_dawson@ca.ibm.com> Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de> Reviewed-By: Anatoli Papirovski <apapirovski@mac.com> Reviewed-By: Tobias Nießen <tniessen@tnie.de> Reviewed-By: Franziska Hinkelmann <franziska.hinkelmann@gmail.com> Reviewed-By: Richard Lau <riclau@uk.ibm.com>
PR-URL: #16284 Fixes: https://github.com/node/issues/16283 Reviewed-By: Rich Trott <rtrott@gmail.com> Reviewed-By: Gibson Fahnestock <gibfahn@gmail.com> Reviewed-By: Refael Ackermann <refack@gmail.com> Reviewed-By: Luigi Pinca <luigipinca@gmail.com> Reviewed-By: Michael Dawson <michael_dawson@ca.ibm.com> Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de> Reviewed-By: Anatoli Papirovski <apapirovski@mac.com> Reviewed-By: Tobias Nießen <tniessen@tnie.de> Reviewed-By: Franziska Hinkelmann <franziska.hinkelmann@gmail.com> Reviewed-By: Richard Lau <riclau@uk.ibm.com>
PR-URL: nodejs/node#16284 Fixes: https://github.com/node/issues/16283 Reviewed-By: Rich Trott <rtrott@gmail.com> Reviewed-By: Gibson Fahnestock <gibfahn@gmail.com> Reviewed-By: Refael Ackermann <refack@gmail.com> Reviewed-By: Luigi Pinca <luigipinca@gmail.com> Reviewed-By: Michael Dawson <michael_dawson@ca.ibm.com> Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de> Reviewed-By: Anatoli Papirovski <apapirovski@mac.com> Reviewed-By: Tobias Nießen <tniessen@tnie.de> Reviewed-By: Franziska Hinkelmann <franziska.hinkelmann@gmail.com> Reviewed-By: Richard Lau <riclau@uk.ibm.com>
PR-URL: nodejs/node#16284 Fixes: https://github.com/node/issues/16283 Reviewed-By: Rich Trott <rtrott@gmail.com> Reviewed-By: Gibson Fahnestock <gibfahn@gmail.com> Reviewed-By: Refael Ackermann <refack@gmail.com> Reviewed-By: Luigi Pinca <luigipinca@gmail.com> Reviewed-By: Michael Dawson <michael_dawson@ca.ibm.com> Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de> Reviewed-By: Anatoli Papirovski <apapirovski@mac.com> Reviewed-By: Tobias Nießen <tniessen@tnie.de> Reviewed-By: Franziska Hinkelmann <franziska.hinkelmann@gmail.com> Reviewed-By: Richard Lau <riclau@uk.ibm.com>
|
This doesn't land cleanly on v6.x-staging can someone manually backport? |
Sorry, something went wrong.
PR-URL: nodejs/node#16284 Fixes: https://github.com/node/issues/16283 Reviewed-By: Rich Trott <rtrott@gmail.com> Reviewed-By: Gibson Fahnestock <gibfahn@gmail.com> Reviewed-By: Refael Ackermann <refack@gmail.com> Reviewed-By: Luigi Pinca <luigipinca@gmail.com> Reviewed-By: Michael Dawson <michael_dawson@ca.ibm.com> Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de> Reviewed-By: Anatoli Papirovski <apapirovski@mac.com> Reviewed-By: Tobias Nießen <tniessen@tnie.de> Reviewed-By: Franziska Hinkelmann <franziska.hinkelmann@gmail.com> Reviewed-By: Richard Lau <riclau@uk.ibm.com>
| Back | FazBrowse Home | New Git URL |
Checklist
Affected core subsystem(s)
build, test
Fixes: #16283