Repository navigation
discuss: Should we alter the behavior of make test? #5607
Description
Activity
- addeddiscussIssues opened for discussion and feedback.Issues opened for discussion and feedback.buildIssues and PRs related to Node.js builds or CI infrastructure.Issues and PRs related to Node.js builds or CI infrastructure.
on Mar 8, 2016 Other options that haven't been discussed yet or have only been mentioned in passing, but since they might come up:
- Create a separate job that flips the order so people who want to run linting first every time can just use that job.
- Pull linting out of
make testentirely. Let there be amake testand amake lint. - Anything else I've missed?
what if tools.test.py was the one that was responsible for running eslint and could disabled via a flag?
could we not use an environment variable for this? For those who want linting first, set the env var, otherwise it stays as it is currently.
If we're doing a vote I'd like to promote "splitting up
testandlint" into an option I can+1. That'd be my preferred solution.- addedtestIssues and PRs related to Node.js core tests and test infrastructure.Issues and PRs related to Node.js core tests and test infrastructure.
on Mar 8, 2016 I'd be more willing to have some slightly complex make code rather than have new contributors PR twice. Could we maybe get a reviewable PR of that if anyone has the time? (I may try if no-one else does..)
@Fishrock123 You mean for Option 3 above? If so, here you go: #5609
#5618 would likely cause more issues since it is discussing the option of removing linting libraries from release tarballs. It's necessarily not a vote on disconnecting
lintandtestbut the rules will likely grow complex with the logic we're introducing as a result of above options.Closing, I think we've settled on "No change".
The behavior was changed and then reverted after objections. I take this to mean that the initial discussion didn't include enough folks.
This is an attempt to document why we might want to make certain changes, and what those options are.
Option 1: Status Quo (Change Nothing)
Pros
Cons
caseblock fall through to the next one! Thanks for pointing it out, ESLint!")Option 2: Lint Before Testing
Pros
Cons
Option 3: Keep Testing Before Linting, But Lint Even If Tests Fail
Pros
makeor directly, but we've seen that people don't.)Cons
Makefilewill be ugly. I suspect it will be portable, but I don't know that and it may be annoying to test across all relevant platforms in advanceRefs: #5602
Refs: #5470
/cc @Fishrock123 @bnoordhuis @thealphanerd @evanlucas @jasnell @jbergstroem