Skip to content
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

Fixes for Ubuntu 16.04 to fix C++ coverage #2705

Merged
merged 2 commits into from Jul 11, 2021
Merged

Conversation

richardlau
Copy link
Member

Two build side fixes required together with nodejs/node#39326 to address the currently broken C++ coverage.

  • ansible: downgrade to Python 3.7 on Ubuntu 16.04
    On Ubuntu 16.04 the python3-pip package is not compatible with
    Python 3.8 and later. Downgrade Python 3 to Python 3.7 which is
    new enough for building current Node.js (Python 3.6 or later) but
    still compatible with the python3-pip package.

  • jenkins: set GCOV on Ubuntu to match CC/CXX
    Code coverage runs gcov but this needs to match the version of
    gcc/g++ used.

Refs: nodejs/node#39303
Refs: nodejs/node#39326

On Ubuntu 16.04 the `python3-pip` package is not compatible with
Python 3.8 and later. Downgrade Python 3 to Python 3.7 which is
new enough for building current Node.js (Python 3.6 or later) but
still compatible with the `python3-pip` package.
Code coverage runs `gcov` but this needs to match the version of
gcc/g++ used.
@richardlau
Copy link
Member Author

FTR the Ansible changes have been deployed to both benchmark machines

  • test-nearform_intel-ubuntu1604-x64-1
  • test-nearform_intel-ubuntu1604-x64-2

and I've manually apt remove'd python3.9* (otherwise Node.js' configure script would pick python3.9 over python3.7 and attempt to run pip with it).

As an aside, I view the stuff we've had to juggle with Python 3 on these machines more reason to update them to Ubuntu 20.04 (#2656).

Copy link
Member

@mhdawson mhdawson left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@richardlau richardlau merged commit 74f1bbd into nodejs:master Jul 11, 2021
@richardlau richardlau deleted the ubuntu branch July 11, 2021 22:33
nodejs-github-bot pushed a commit to nodejs/node that referenced this pull request Jul 11, 2021
Update the version of `gcovr` used for C++ coverage from 3.4 to 4.2 for
compatibility with gcc/g++ 8.

PR-URL: #39326
Refs: #39303
Refs: gcovr/gcovr#228
Refs: nodejs/build#2705
Reviewed-By: Michael Dawson <midawson@redhat.com>
Reviewed-By: Rich Trott <rtrott@gmail.com>
Reviewed-By: James M Snell <jasnell@gmail.com>
targos pushed a commit to nodejs/node that referenced this pull request Jul 13, 2021
Update the version of `gcovr` used for C++ coverage from 3.4 to 4.2 for
compatibility with gcc/g++ 8.

PR-URL: #39326
Refs: #39303
Refs: gcovr/gcovr#228
Refs: nodejs/build#2705
Reviewed-By: Michael Dawson <midawson@redhat.com>
Reviewed-By: Rich Trott <rtrott@gmail.com>
Reviewed-By: James M Snell <jasnell@gmail.com>
targos pushed a commit to nodejs/node that referenced this pull request Sep 4, 2021
Update the version of `gcovr` used for C++ coverage from 3.4 to 4.2 for
compatibility with gcc/g++ 8.

PR-URL: #39326
Refs: #39303
Refs: gcovr/gcovr#228
Refs: nodejs/build#2705
Reviewed-By: Michael Dawson <midawson@redhat.com>
Reviewed-By: Rich Trott <rtrott@gmail.com>
Reviewed-By: James M Snell <jasnell@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants