readthedocs.org icon indicating copy to clipboard operation
readthedocs.org copied to clipboard

Development: double check `nodejs` versions

Open humitos opened this issue 1 year ago • 3 comments
trafficstars

We are using nodejs v8.16 on development https://github.com/readthedocs/readthedocs.org/blob/6e7b0b470b91ca4b456930c0834d47f8abf9373d/dockerfiles/docker-compose-assets.yml#L5

but nodejs 10.17.0 on CircleCI https://github.com/readthedocs/readthedocs.org/blob/6e7b0b470b91ca4b456930c0834d47f8abf9373d/.circleci/config.yml#L63-L64

What's the correct version we should use?

I remember that I pin the development instance to v8.16 because that was what we were using to build the assets locally some time (years?) ago and it was a working version. I'm not sure we can upgrade that nodejs version to a newer one. However, we may want to use a different version for running eslint checks locally.

Reference: https://github.com/readthedocs/readthedocs.org/pull/10998

humitos avatar Jan 08 '24 09:01 humitos

Node 8 is ancient. We should use Node 10 if the build process is working with that version.

agjohnson avatar Jan 09 '24 22:01 agjohnson

I found another mismatch on the versions 😄

If you jump into the Docker container and run tox -e eslint, it will use the Ubuntu's default installed version: v12.22.9

humitos avatar Jan 10 '24 08:01 humitos

I actually was going to say that <14 might be safe even. I think 10 might have just been the last working version at the time. But 10 should definitely be the minimum

agjohnson avatar Jan 10 '24 16:01 agjohnson