cypress-docker-images icon indicating copy to clipboard operation
cypress-docker-images copied to clipboard

yarn 1.22.22 fails in cypress/factory

Open bautistaaa opened this issue 1 year ago • 1 comments

Attempted to upgrade yarn from 1.22.19 -> 1.22.22 and encountered this error

11:28:41 4.005 gpg: key 1646B01B86E50310: public key "Yarn Packaging <[email protected]>" imported
11:28:41 4.010 gpg: Total number processed: 1
11:28:41 4.010 gpg:               imported: 1
11:28:41 4.010 + curl -fsSLO --compressed https://yarnpkg.com/downloads/1.22.22/yarn-v1.22.22.tar.gz
11:28:41 4.581 + curl -fsSLO --compressed https://yarnpkg.com/downloads/1.22.22/yarn-v1.22.22.tar.gz.asc
11:28:41 4.901 curl: (22) The requested URL returned error: 404 
11:28:41 4.905 child process exited with code 22

This url doesn't appear to exist https://yarnpkg.com/downloads/1.22.22/yarn-v1.22.22.tar.gz.asc causing it to exit

bautistaaa avatar Apr 09 '24 19:04 bautistaaa

Same, related issue is here https://github.com/yarnpkg/yarn/issues/9035

vadimpopa avatar Apr 22 '24 13:04 vadimpopa

Is this error related to that too?

+ curl -fsSLO --compressed https://nodejs.org/dist/v20.13.0/node-v20.13.0-linux-x64.tar.xz
+ curl -fsSLO --compressed https://nodejs.org/dist/v20.13.0/SHASUMS256.txt.asc
+ gpg --batch --decrypt --output SHASUMS256.txt SHASUMS256.txt.asc
gpg: Signature made Tue May  7 15:44:10 2024 UTC
gpg:                using RSA key CC68F5A3106FF448322E48ED27F5E38D5B0A215F
gpg: Can't check signature: No public key

Happens when I set the Node Version to 20.13.0

jahusa02 avatar May 08 '24 10:05 jahusa02

@jahusa02

Is this error related to that too?

It's a separate root cause, so I'd suggest you open a new issue.

The keys for Node.js are in https://github.com/cypress-io/cypress-docker-images/blob/master/factory/installScripts/node/default.sh

MikeMcC399 avatar May 08 '24 10:05 MikeMcC399

@bautistaaa

Yarn 1.22.19 is the latest stable release according to

  • https://classic.yarnpkg.com/latest-version and
  • https://classic.yarnpkg.com/en/docs/install

The error with Yarn 1.22.20 and later is due to missing PGP signature files. These have been requested over the last 6 months and have so far not been provided.

https://github.com/cypress-io/cypress-docker-images/issues/1036#issuecomment-2119166844

MikeMcC399 avatar May 24 '24 06:05 MikeMcC399

I've uploaded a GPG signature for Yarn v1.22.22, so this should be fixed now.

Daniel15 avatar May 24 '24 21:05 Daniel15

Thank you @Daniel15 !

I can confirm that it is now possible to successfully build a Cypress Docker image with cypress/factory using Yarn 1.22.22.

  • https://classic.yarnpkg.com/latest-version and
  • https://classic.yarnpkg.com/en/docs/install

are now showing Yarn 1.22.22 as the stable Yarn v1 Classic release.

This was an upstream issue on https://github.com/yarnpkg/yarn/releases. No change to this Cypress repo was necessary.

MikeMcC399 avatar May 25 '24 06:05 MikeMcC399