Page MenuHomePhabricator

All codehealth jobs failing due to older nodejs version
Closed, ResolvedPublic

Description

All of the codehealth jobs for core and extensions are failing due to older nodeJS version being used (https://integration.wikimedia.org/ci/job/mwcore-codehealth-patch/49794/console)

00:02:23.601 The version of node.js (10) you have used to run this analysis is deprecated and we stopped accepting it.
00:02:23.601 Please update to at least node.js 14. You can find more information here: https://docs.sonarcloud.io/appendices/scanner-environment/

Event Timeline

Looks like. Clearly we need to reconfigure our CodeHealth account to run on node 14 or whatever, not the old node 10 one that apparently worked last week when this job was using node 12.

Ah, right. We're running releng/sonar-scanner:

00:01:41.395 + exec docker run --volume /srv/jenkins/workspace/workspace/mwcore-codehealth-patch/src:/workspace/src --volume /srv/jenkins/workspace/workspace/mwcore-codehealth-patch/cache:/cache --volume /srv/jenkins/workspace/workspace/mwcore-codehealth-patch/log:/workspace/log --security-opt seccomp=unconfined --init --rm --label jenkins.job=mwcore-codehealth-patch --label jenkins.build=49794 --env-file /dev/fd/63 docker-registry.wikimedia.org/releng/sonar-scanner:4.6.0.2311-2 -Dsonar.projectKey=mediawiki-core -Dsonar.projectName=mediawiki-core -Dsonar.analysis.gerritProjectName=mediawiki/core -Dsonar.organization=wmftest -Dsonar.host.url=https://sonarcloud.io -Dsonar.branch.target=master -Dsonar.branch.name=771081-8

Change 771459 had a related patch set uploaded (by Kosta Harlan; author: Kosta Harlan):

[integration/config@master] dockerfiles: Install node14 on sonar-scanner image

https://gerrit.wikimedia.org/r/771459

Change 771459 merged by jenkins-bot:

[integration/config@master] dockerfiles: [sonar-scanner] Upgrade nodejs from node10 to node14

https://gerrit.wikimedia.org/r/771459

Mentioned in SAL (#wikimedia-releng) [2022-03-16T22:00:33Z] <James_F> Docker: Publishing sonar-scanner:4.6.0.2311-3 for T303958

Change 771470 had a related patch set uploaded (by Jforrester; author: Jforrester):

[integration/config@master] jjb: Update sonar-scanner uses to images with node14 not node10

https://gerrit.wikimedia.org/r/771470

Change 771470 merged by jenkins-bot:

[integration/config@master] jjb: Update sonar-scanner uses to images with node14 not node10

https://gerrit.wikimedia.org/r/771470