-
Notifications
You must be signed in to change notification settings - Fork 166
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
ansible: add gcc-8 to Ubuntu 18.04 hosts/containers #2660
Conversation
Baseline gcc/g++ compiler version for Node.js 16 and above is 8. The default `gcc` and `g++` packages on Ubuntu 18.04 install version 7. Moves `gcc-6` and `g++-6` out of the common `ubuntu` packages into `ubuntu1604` -- it doesn't seem worth installing a lower version of GCC to the default for Ubuntu 18.04. Update `select-compiler.sh` to select GCC 8 for Node.js 16 and later.
@@ -17,6 +17,8 @@ RUN apt-get update && apt-get dist-upgrade -y && apt-get install -y \ | |||
ccache \ | |||
g++ \ | |||
gcc \ | |||
g++-8 \ | |||
gcc-8 \ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
FWIW I'm not convinced the containers created by ansible/roles/docker/templates/ubuntu1804.Dockerfile.j2
are actually being used in our CI.
i.e.
- https://ci.nodejs.org/computer/test-digitalocean-ubuntu1804_container-x64-1/builds
- https://ci.nodejs.org/computer/test-digitalocean-ubuntu1804_container-x64-2/builds
- https://ci.nodejs.org/computer/test-softlayer-ubuntu1804_container-x64-1/builds
are all empty (compare to an actual non-container e.g. https://ci.nodejs.org/computer/test-packetnet-ubuntu1804-x64-1/builds)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
yeah, probably not used, they were at one stage for some temporary testing work and they also exist as a way of experimenting with offloading VM tests to container tests, but other than that they're probably idling (which really only costs us the memory impact of the jenkins nodes)
I haven't deployed this anywhere yet. |
@@ -144,14 +144,20 @@ packages: { | |||
], | |||
|
|||
ubuntu: [ | |||
'ccache,g++,gcc,g++-6,gcc-6,git,libfontconfig1,sudo,python3-pip', | |||
'ccache,g++,gcc,git,libfontconfig1,sudo,python3-pip', |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
maybe we should just remove g++,gcc
from here too?
What do you think about being more explicit? Remove |
Install specific versions of gcc/g++ on Ubuntu.
Pushed ca9dcab to remove |
I've deployed this onto the Docker containers hosted on
and the two test non-containered Ubuntu 18.04 hosts:
I've also updated the node-test-commit-linux-containered job to call the |
Fixup copy/paste error and install g++-8 on Ubuntu 16.04. Refs: #2660
Baseline gcc/g++ compiler version for Node.js 16 and above is 8. The
default
gcc
andg++
packages on Ubuntu 18.04 install version 7.Moves
gcc-6
andg++-6
out of the commonubuntu
packages intoubuntu1604
-- it doesn't seem worth installing a lower version ofGCC to the default for Ubuntu 18.04.
Update
select-compiler.sh
to select GCC 8 for Node.js 16 and later.Refs: #2445