Closed Bug 1919709 Opened 5 months ago Closed 4 months ago

ESLint builders are using Node 16 rather than Node 18

Categories

(Developer Infrastructure :: Lint and Formatting, task)

Tracking

(firefox132 fixed)

RESOLVED FIXED
132 Branch
Tracking Status
firefox132 --- fixed

People

(Reporter: standard8, Assigned: standard8)

References

Details

Attachments

(1 file)

I've been working on various patches to get us updated to ESLint v9 which uses a new configuration format that's simpler to understand and more deterministic. As part of this, we need to update our the ESLint plugins which themselves have been updated to work with v9.

The Jest module has started using structuredClone which is new in Node 18. I also want to be able to use that in some of the ESLint code.

Whilst bug 1875239 upgraded Node for most test builders, it looks like it didn't do the source test builders - they use install-node.sh which currently installs node 16

At some point, we should switch them to using the toolchain node rather than installing it in the docker image.

Component: Toolchains → Source Code Analysis
Product: Firefox Build System → Developer Infrastructure

This changes the lint docker image to not install node, and updates the consumers to use the node toolchain where appropraite.

As devtools requires Yarn their builders are, at least tempoarily, switched to the ubunutu1804-test Docker images which are still using the separate install process for node.

This also adds prettier as an installed package for the devtools debugger code - some of the tests actually use it, and they were only passing because it was being side-installed by the builder using the ESLint node_modules bundles.

Assignee: nobody → standard8
Status: NEW → ASSIGNED
Component: Source Code Analysis → Lint and Formatting
See Also: → 1920537
Pushed by mbanner@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/a63dcdbdff7b Move ESLint CI runners to use node from the toolchains rather than a separate install. r=glandium
Status: ASSIGNED → RESOLVED
Closed: 4 months ago
Resolution: --- → FIXED
Target Milestone: --- → 132 Branch
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: