Page MenuHomePhabricator

mwext-node18-docs-publish failing post-merge for CodeMirror
Closed, ResolvedPublicBUG REPORT

Description

Example failure: https://integration.wikimedia.org/ci/job/mwext-node18-docs-publish/2645/console

06:43:13 + exec docker run --volume /srv/jenkins/workspace/mwext-node18-docs-publish/src:/src --volume /srv/jenkins/workspace/mwext-node18-docs-publish/cache:/cache --volume /srv/jenkins/workspace/mwext-node18-docs-publish/log:/log --security-opt seccomp=unconfined --init --rm --label jenkins.job=mwext-node18-docs-publish --label jenkins.build=2645 --env-file /dev/fd/63 docker-registry.wikimedia.org/releng/node18-test:18.20.4 doc
06:43:13 ++ /usr/bin/env
06:43:13 ++ egrep -v '^(HOME|SHELL|PATH|LOGNAME|MAIL)='
06:43:14 + '[' '!' -f package.json ']'
06:43:14 + node --version
06:43:14 v18.20.4
06:43:14 + npm --version
06:43:14 10.7.0
06:43:14 + '[' -e npm-shrinkwrap.json ']'
06:43:14 + '[' -e package-lock.json ']'
06:43:14 + npm ci
06:43:22 npm warn deprecated rimraf@3.0.2: Rimraf versions prior to v4 are no longer supported
06:43:23 npm warn deprecated glob@8.1.0: Glob versions prior to v9 are no longer supported
06:43:23 npm warn deprecated glob@7.2.3: Glob versions prior to v9 are no longer supported
06:43:23 npm warn deprecated glob@7.2.3: Glob versions prior to v9 are no longer supported
06:43:23 npm warn deprecated glob@7.2.3: Glob versions prior to v9 are no longer supported
06:43:23 npm warn deprecated glob@7.1.7: Glob versions prior to v9 are no longer supported
06:43:40 npm error code ENOENT
06:43:40 npm error syscall stat
06:43:40 npm error path /cache/_cacache/content-v2/sha512/f0/88/dec6e0521eac5ee53cc9e70f741db58d3fc223b086b1897ad98fb75bd2b376d137ab4266706607ba2f5ce57a115051e0654f747c90ba08b6ae48fe0670cb
06:43:40 npm error errno ENOENT
06:43:40 npm error enoent Invalid response body while trying to fetch https://registry.npmjs.org/eslint-plugin-compat: ENOENT: no such file or directory, stat '/cache/_cacache/content-v2/sha512/f0/88/dec6e0521eac5ee53cc9e70f741db58d3fc223b086b1897ad98fb75bd2b376d137ab4266706607ba2f5ce57a115051e0654f747c90ba08b6ae48fe0670cb'
06:43:40 npm error enoent This is related to npm not being able to find a file.
06:43:40 npm error enoent
06:43:40 
06:43:40 npm error A complete log of this run can be found in: /cache/_logs/2024-09-04T10_43_15_138Z-debug-0.log
06:43:41 Build step 'Execute shell' marked build as failure
06:43:41 [PostBuildScript] - [INFO] Executing post build scripts.
06:43:41 [PostBuildScript] - [INFO] Build does not have any of the results [SUCCESS]. Did not execute build step #0.
06:43:41 [PostBuildScript] - [INFO] Executing post build scripts.
06:43:41 [mwext-node18-docs-publish] $ /bin/bash -xe /tmp/jenkins3720250277493326384.sh
06:43:41 + echo 'Clearing /srv/jenkins/workspace/mwext-node18-docs-publish/cache'
06:43:41 Clearing /srv/jenkins/workspace/mwext-node18-docs-publish/cache
06:43:41 [mwext-node18-docs-publish] $ /bin/bash /tmp/jenkins14121023349645306857.sh
06:43:41 + set -o pipefail
06:43:41 ++ pwd
06:43:41 + '[' '!' -d /srv/jenkins/workspace/mwext-node18-docs-publish/cache ']'
06:43:41 ++ pwd
06:43:41 + exec docker run --volume /srv/jenkins/workspace/mwext-node18-docs-publish/cache:/cache --security-opt seccomp=unconfined --init --rm --label jenkins.job=mwext-node18-docs-publish --label jenkins.build=2645 --env-file /dev/fd/63 docker-registry.wikimedia.org/releng/castor:0.4.0 clear
06:43:41 ++ /usr/bin/env
06:43:41 ++ egrep -v '^(HOME|SHELL|PATH|LOGNAME|MAIL)='
06:43:47 [PostBuildScript] - [INFO] Executing post build scripts.
06:43:47 [mwext-node18-docs-publish] $ /bin/bash -xe /tmp/jenkins4827586125539115552.sh
06:43:47 + set -euxo pipefail
06:43:47 + docker ps -q --filter label=jenkins.job=mwext-node18-docs-publish --filter label=jenkins.build=2645
06:43:47 + xargs --no-run-if-empty docker stop
06:43:48 [PostBuildScript] - [INFO] Executing post build scripts.
06:43:48 [mwext-node18-docs-publish] $ /bin/bash /tmp/jenkins8190264183696654735.sh
06:43:48 + set -o pipefail
06:43:48 + '[' '!' -d /srv/jenkins/workspace/mwext-node18-docs-publish ']'
06:43:48 + exec docker run --entrypoint=/usr/bin/find --user=root --volume /srv/jenkins/workspace/mwext-node18-docs-publish:/workspace --security-opt seccomp=unconfined --init --rm --label jenkins.job=mwext-node18-docs-publish --label jenkins.build=2645 --env-file /dev/fd/63 docker-registry.wikimedia.org/buster:latest /workspace -mindepth 1 -delete
06:43:48 ++ /usr/bin/env
06:43:48 ++ egrep -v '^(HOME|SHELL|PATH|LOGNAME|MAIL)='
06:43:48 [mwext-node18-docs-publish] $ /bin/bash -xe /tmp/jenkins3917624445021371271.sh
06:43:48 + echo 'Listing potentially remaining files in workspace for T282893'
06:43:48 Listing potentially remaining files in workspace for T282893
06:43:48 + ls -laF --color=always
06:43:48 total 8
06:43:48 drwxr-xr-x  2 jenkins-deploy wikidev 4096 Sep  4 10:43 ./
06:43:48 drwxrwxr-x 32 jenkins-deploy wikidev 4096 Sep  4 10:43 ../
06:43:48 [mwext-node18-docs-publish] $ /bin/bash -xe /tmp/jenkins4058070743233010124.sh
06:43:48 + set -u
06:43:48 + rmdir /srv/jenkins/workspace/mwext-node18-docs-publish
06:43:48 Finished: FAILURE

What stands out to me is:

06:43:40 npm error enoent Invalid response body while trying to fetch https://registry.npmjs.org/eslint-plugin-compat: ENOENT: no such file or directory, stat '/cache/_cacache/content-v2/sha512/f0/88/dec6e0521eac5ee53cc9e70f741db58d3fc223b086b1897ad98fb75bd2b376d137ab4266706607ba2f5ce57a115051e0654f747c90ba08b6ae48fe0670cb'

Consequently, the CodeMirror docs haven't been updating since at least August 26.

Event Timeline

Restricted Application added a subscriber: Aklapper. · View Herald Transcript

Change #1070335 had a related patch set uploaded (by MusikAnimal; author: MusikAnimal):

[mediawiki/extensions/CodeMirror@master] Bump Node version to 18.20.4

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

Change #1070335 merged by jenkins-bot:

[mediawiki/extensions/CodeMirror@master] Bump Node version to 18.20.4

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

Bumping the Node version as expected was not the problem, but we needed to do that anyway.

MusikAnimal renamed this task from CodeMirror docs generation failing post-merge to mwext-node18-docs-publish failing post-merge for CodeMirror.Sep 5 2024, 3:30 AM
MusikAnimal updated the task description. (Show Details)

I'll manually delete the cache for this job and see if that helps.

Mentioned in SAL (#wikimedia-releng) [2024-09-06T14:21:34Z] <James_F> jforrester@integration-castor05:/srv/castor$ sudo -u jenkins-deploy rm -rf /srv/castor/castor-mw-ext-and-skins/master/mwext-node18-docs-publish/ # T373937