Page MenuHomePhabricator

CI for WikiLambda broken due to npm cache bug (?) on some @types packages
Closed, ResolvedPublic

Description

21:55:04 + npm ci
21:55:10 npm WARN tarball tarball data for @types/testing-library__jest-dom@https://registry.npmjs.org/@types/testing-library__jest-dom/-/testing-library__jest-dom-5.14.5.tgz (sha512-SBwbxYoyPIvxHbeHxTZX2Pe/74F/tX2/D3mMvzabdeJ25bBojfW0TyB8BHrbq/9zaaKICJZjLP+8r6AeZMFCuQ==) seems to be corrupted. Trying again.
21:55:10 npm WARN tarball tarball data for devtools-protocol@https://registry.npmjs.org/devtools-protocol/-/devtools-protocol-0.0.960912.tgz (sha512-I3hWmV9rWHbdnUdmMKHF2NuYutIM2kXz2mdXW8ha7TbRlGTVs+PF+PsB5QWvpCek4Fy9B+msiispCfwlhG5Sqg==) seems to be corrupted. Trying again.

etc.

For some reason it's happening on mwext-node16-rundoc-docker but not mwgate-node16-docker. Probably just an npm cache bug; can they be erased for us?

Event Timeline

Head to last job build at https://integration.wikimedia.org/ci/job/mwext-node16-rundoc-docker/lastBuild/console

CASTOR_NAMESPACE="castor-mw-ext-and-skins/master/mwext-node16-rundoc-docker"

That is the path to save the cache on integration-castor05 instance relative to /srv/castor.

Mentioned in SAL (#wikimedia-releng) [2023-06-18T06:33:15Z] <hashar> integration: clean out a job castor cache for T339812: sudo rm -fR /srv/castor/castor-mw-ext-and-skins/master/mwext-node16-rundoc-docker

hashar claimed this task.

Mentioned in SAL (#wikimedia-releng) [2023-06-20T20:39:45Z] <James_F> Ran sudo rm -fR /srv/castor/castor-mw-ext-and-skins/master/mwext-node16-rundoc-docker on integration-castor05 for T339812 again.

Had to do this again as it broke with a similar corruption. :-(

Might be related, as part of T340092, we now run npm cache verify before saving the cache in Castor which should get rid of corrupted data before saving the cache.

Might be related, as part of T340092, we now run npm cache verify before saving the cache in Castor which should get rid of corrupted data before saving the cache.

Thanks! Fingers crossed.