Uh oh!
There was an error while loading. Please reload this page.
build: run lint before tests - #5470
Conversation
Have `make test` run linting tools before tests rather than after. Lint is likely to find issues quickly. Tests may take a while to run. So do the linting first. Interestingly, it appears that `vcbuild.bat` is already set up this way on Windows. Refs: nodejs#4546 (comment)
jbergstroem
commented
Feb 28, 2016
LGTM |
ronkorving
commented
Feb 28, 2016
Thanks for this change. LGTM. |
MylesBorins
commented
Feb 28, 2016
LGTM |
1 similar comment
evanlucas
commented
Feb 28, 2016
LGTM |
joaocgreis
commented
Feb 29, 2016
https://github.com/nodejs/node/blob/3c79bbd/vcbuild.bat#L249-L257 |
Trott
commented
Mar 1, 2016
Ah! I see I misunderstood the |
Trott
commented
Mar 1, 2016
Have `make test` run linting tools before tests rather than after. Lint is likely to find issues quickly. Tests may take a while to run. So do the linting first. Refs: nodejs#4546 (comment) PR-URL: nodejs#5470 Reviewed-By: Johan Bergström <bugs@bergstroem.nu> Reviewed-By: Myles Borins <myles.borins@gmail.com> Reviewed-By: Evan Lucas <evanlucas@me.com>
Trott
commented
Mar 1, 2016
Landed in d9f7a59 |
Have `make test` run linting tools before tests rather than after. Lint is likely to find issues quickly. Tests may take a while to run. So do the linting first. Refs: #4546 (comment) PR-URL: #5470 Reviewed-By: Johan Bergström <bugs@bergstroem.nu> Reviewed-By: Myles Borins <myles.borins@gmail.com> Reviewed-By: Evan Lucas <evanlucas@me.com>
bnoordhuis
commented
Mar 5, 2016
I really, really hate this change; it messes up my workflow. I'd like to move to revert it. |
Fishrock123
commented
Mar 5, 2016
I would like them to run independently. If one fails, still run the other. Not sure if that is possible in |
Trott
commented
Mar 5, 2016
@bnoordhuis wrote:
I don't have a problem with undoing this change, but I am curious how this messes up your workflow. Knowing that might help keep me or others from making similarly disruptive changes in the future. |
Fishrock123
commented
Mar 5, 2016
@Trott lots of us only follow the style as a finalization. No way I'm semicoloning code I'm trying to write/test. I also don't really have this problem because I use a ninja alias and manually run the test runner when I'm doing core dev. |
bnoordhuis
commented
Mar 6, 2016
When I'm writing code, I run |
jasnell
commented
Mar 7, 2016
Not particularly a fan of this also but I can live with it. In general I'll typically get things working before linting as a final step. |
Trott
commented
Mar 8, 2016
This would run the tests first and then run the lint jobs whether or not the tests passed, and will fail if any of the tests or lint jobs fails. Unfortunately, it's also kind of hideous. And I'm not 100% certain of its portability. I'm fine with a simple revert instead. Just exploring options. Aesthetics aside, I like this functionality if we can be reasonably sure it will work like it's supposed to everywhere. |
MylesBorins
commented
Mar 8, 2016
are you sure this works on windows? I've had weirdness before with |
Trott
commented
Mar 8, 2016
@thealphanerd Node.js Windows build uses |
jbergstroem
commented
Mar 8, 2016
My preference is also disconnecting |
Trott
commented
Mar 8, 2016
Revert PR is at #5602 |
MylesBorins
commented
Mar 17, 2016
since this was reverted I'm removing lts-watch and adding dont land |
Have
make testrun linting tools before tests rather than after. Lintis likely to find issues quickly. Tests may take a while to run. So do
the linting first.
Interestingly, it appears that
vcbuild.batis already set up this wayon Windows.
Refs: #4546 (comment)