-
Notifications
You must be signed in to change notification settings - Fork 29.9k
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: 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)
LGTM |
Thanks for this change. LGTM. |
LGTM |
1 similar comment
LGTM |
https://github.com/nodejs/node/blob/3c79bbd/vcbuild.bat#L249-L257 |
Ah! I see I misunderstood the |
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 <[email protected]> Reviewed-By: Myles Borins <[email protected]> Reviewed-By: Evan Lucas <[email protected]>
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 <[email protected]> Reviewed-By: Myles Borins <[email protected]> Reviewed-By: Evan Lucas <[email protected]>
I really, really hate this change; it messes up my workflow. I'd like to move to revert it. |
I would like them to run independently. If one fails, still run the other. Not sure if that is possible in |
@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. |
@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. |
When I'm writing code, I run |
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. |
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. |
are you sure this works on windows? I've had weirdness before with |
@thealphanerd Node.js Windows build uses |
My preference is also disconnecting |
Revert PR is at #5602 |
since this was reverted I'm removing lts-watch and adding dont land |
Have
make test
run 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.bat
is already set up this wayon Windows.
Refs: #4546 (comment)