Split whole tree runs of slow linters into smaller jobs
Categories
(Developer Infrastructure :: Lint and Formatting, enhancement)
Tracking
(Not tracked)
People
(Reporter: ahochheiden, Assigned: ahochheiden)
References
(Blocks 1 open bug)
Details
Attachments
(2 obsolete files)
A few jobs with large top level directories set the wall time of includes and eslint. See bug 1994717.
| Assignee | ||
Comment 1•27 days ago
|
||
A whole tree run gave each job a handful of top level directories, so
the job that got dom or js set the wall time of slow per file
linters. A linter can now set split-dirs to split each directory that
many levels deep. includes uses 2, which took a whole tree run on
Windows from 45 to 17 seconds. Every linter's paths are now handed to
its jobs round robin instead of in consecutive runs. A dot directory
that is passed in is kept whole. The dot entries inside a directory are
dropped unless find-dotfiles is set, matching how the mozlint walkers
treat a directory.
| Assignee | ||
Comment 2•27 days ago
|
||
A whole tree ESLint run gave each job a few top level directories, so
the job with devtools and toolkit set the wall time. On a 12 core
machine one job wrote more JSON than fits in a V8 string, so ESLint
crashed and the results for docshell, layout and netwerk were
lost.
eslint now uses split-dirs: 1, which took a whole tree run on
Windows from 275 to 172 seconds and its slowest job from 266 to 164,
with no change on CI.
ESLint and Prettier lint the dot files inside a directory, so the split
keeps dot entries, and --no-warn-ignored and --ignore-unknown stop
an explicitly passed ignored entry from producing a warning or an
error. Prettier also starts alongside ESLint instead of after it when
nothing is being fixed.
| Assignee | ||
Updated•25 days ago
|
Comment 4•25 days ago
|
||
Comment on attachment 9668109 [details]
Bug 2085859 - Part 1 - Split directories into smaller jobs for slow per file linters r?#linter-reviewers
Revision D336643 was moved to bug 1994717. Setting attachment 9668109 [details] to obsolete.
Comment 5•25 days ago
|
||
Comment on attachment 9668111 [details]
Bug 2085859 - Part 2 - Split the eslint paths one level deep r?#linter-reviewers
Revision D336644 was moved to bug 1994717. Setting attachment 9668111 [details] to obsolete.
Description
•