Closed Bug 1757373 Opened 3 years ago Closed 2 years ago

Running linters across the entire tree (with ./mach lint .) uses a single processor rather than multiple

Categories

(Developer Infrastructure :: Lint and Formatting, defect, P3)

Tracking

(firefox-esr91 wontfix, firefox97 wontfix, firefox98 wontfix, firefox99 wontfix, firefox115 fixed)

RESOLVED FIXED
Tracking Status
firefox-esr91 --- wontfix
firefox97 --- wontfix
firefox98 --- wontfix
firefox99 --- wontfix
firefox115 --- fixed

People

(Reporter: standard8, Assigned: standard8)

References

(Regression)

Details

(Keywords: regression)

Attachments

(2 files)

Bug 1369784 made it so that you have to enter ./mach lint -l eslint . or ./mach eslint . to run ESLint across the whole tree.

Unfortunately this means that we're now running ESLint in single-process mode rather than multiple.

Whilst you could use ./mach eslint * this isn't necessarily enough as it doesn't lint the hidden files (.eslintrc.js etc).

Set release status flags based on info from the regressing bug 1369784

Has Regression Range: --- → yes

:nisargkarun1997, since you are the author of the regressor, bug 1369784, could you take a look?
For more information, please visit auto_nag documentation.

Flags: needinfo?(nisargkarun1997)

Redirect a needinfo that is pending on an inactive user to the triage owner.
:ahal, since the bug has high priority and recent activity, could you have a look please?

For more information, please visit auto_nag documentation.

Flags: needinfo?(nisargkarun1997) → needinfo?(ahal)

Still an issue, though unclear how to fix and doesn't feel too major.

Maybe if we detect a single directory is passed in, we can automatically expand it out to the files / subdirs contain within it. Then we'd use multiple processes. Also this isn't ESLint specific.

Flags: needinfo?(ahal)
Priority: P2 → P3
Summary: Running ESLint across the entire tree (with ./mach eslint .) uses a single processor rather than multiple → Running linters across the entire tree (with ./mach lint .) uses a single processor rather than multiple
Product: Firefox Build System → Developer Infrastructure
Assignee: nobody → standard8
Status: NEW → ASSIGNED

Currently dot files (e.g. .eslintrc.js) are not checked in the full run on CI.

Also ignores .gradle/ directory as that it a cache.

Depends on D177260

Try push: https://treeherder.mozilla.org/jobs?repo=try&revision=09b733e73c7bdfc3b3ba4c074133ebf92a754e55&selectedTaskRun=Uioir3vmSNK183cMRtou7Q.0

(the black & ES failures were test failures that are resolved in the patches).

Pushed by mbanner@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/06496fa5b104 Enable linting to run in parallel when '.' is specified as the path. r=linter-reviewers,ahal https://hg.mozilla.org/integration/autoland/rev/e2d7eedc3ba5 Switch source task linters to use '.' rather than '*' for path matching, so that dot files are also checked. r=linter-reviewers,sylvestre
Status: ASSIGNED → RESOLVED
Closed: 2 years ago
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: