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

Error releasing v1.22.18 #8801

Closed
DanBuild opened this issue Mar 15, 2022 · 16 comments
Closed

Error releasing v1.22.18 #8801

DanBuild opened this issue Mar 15, 2022 · 16 comments

Comments

@DanBuild
Copy link

An error was encountered while processing the CircleCI release build of v1.22.18:

Build #42523 in wrong status (failed), expected "success". Not releasing it.

Re-running the build on CircleCI might fix it. Click "Rebuild" on this page to trigger a rebuild

Full logs: https://release.yarnpkg.com/log/release_circleci

cc @Daniel15 @arcanis

@Daniel15
Copy link
Member

@arcanis This is a weird build issue 🤔

Permission denied (publickey).

@arcanis
Copy link
Member

arcanis commented Mar 15, 2022

I don't see the publickey log, but perhaps @DanBuild's SSH key changed somehow?

@Daniel15
Copy link
Member

Daniel15 commented Mar 15, 2022

It's in the CircleCI output: https://circleci.com/gh/yarnpkg/yarn/42523
This is when cloning the repo so I'm not even sure which key it's using or why it even needs a key? Hmm

@arcanis
Copy link
Member

arcanis commented Mar 15, 2022

I think it's the key listed here:
image

However, I don't find this key in the repo configuration:
image

@johnAirRobe
Copy link

I'm using CircleCI and I'm getting a similar issue this is my error:

Latest version of Yarn is 1.22.18
Checking if YARN is already installed...
A different version of Yarn is installed (1.22.5); removing it
Installing YARN v1.22.18

gzip: stdin: not in gzip format
tar: Child returned status 1
tar: Error is not recoverable: exiting now
mv: cannot stat 'yarn-v1.22.18/*': No such file or directory

Exited with code exit status 1

I ran the command we use to download yarn in my console (I'm running an M1 Mac with Monterey 12.3) and then I checked the file type and it didn't return the correct file time. When I cat'd the file I got Not Found%.

These are the commands I ran locally and the results:

❯ curl -L -o yarn.tar.gz --silent "https://yarnpkg.com/downloads/1.22.18/yarn-v1.22.18.tar.gz"
❯ gzip -v -t yarn.tar.gz
gzip: yarn.tar.gz: not in gzip format
yarn.tar.gz:	  NOT OK
❯ mv yarn.tar.gz yarn.txt
❯ cat yarn.txt
Not Found%

I downloaded v1.22.16 and this is the result I get when checking the file type:

❯ file yarn-new.tar.gz
yarn-new.tar.gz: gzip compressed data, last modified: Sat Oct 16 11:08:30 2021, from Unix, original size modulo 2^32 5345280

@tetienne
Copy link

The number of assets built for the v1.22.18 is incorrect: https://github.com/yarnpkg/yarn/releases. There is only 3 assets vs 10 usually.

@Daniel15
Copy link
Member

Daniel15 commented Mar 16, 2022

@arcanis I can manually build and publish this version in the morning if there's issues with the build process.

@arcanis
Copy link
Member

arcanis commented Mar 16, 2022

Yep if possible it'd be great - I manually added the .js / .deb / .rpm files to avoid further issues in CIs like the one above, but the others (rpm, deb, asc) are missing.

@Daniel15
Copy link
Member

Working on this now

@Daniel15
Copy link
Member

Daniel15 commented Mar 16, 2022

For reference, this is what I ran on Linux:

git pull
git checkout v1.22.18
yarn install
yarn build
yarn build-dist
./scripts/build-deb.sh

cd artifacts
gpg -u 23E7166788B63E1E --armor --output - --detach-sign yarn-1.22.18.js > yarn-1.22.18.js.asc
gpg -u 23E7166788B63E1E --armor --output - --detach-sign yarn-legacy-1.22.18.js > yarn-legacy-1.22.18.js.asc
gpg -u 23E7166788B63E1E --armor --output - --detach-sign yarn-v1.22.18.tar.gz > yarn-v1.22.18.tar.gz.asc

which generates all the files except the .msi, which needs to be done on Windows. Looks like the AppVeyor build for the .msi succeeded though, so I didn't have to manually build it.

@Daniel15
Copy link
Member

Daniel15 commented Mar 16, 2022

This should be resolved now. @arcanis Feel free to ping me for future releases and I can just manually build everything, if you'd like 😄

@arcanis
Copy link
Member

arcanis commented Mar 16, 2022

Thanks Daniel!

@chenrui333
Copy link

I guess this happened again for 1.22.20 and 1.22.21, creating a new release for tracking the asc file missing issue, #9020

@canterberry
Copy link

canterberry commented Mar 14, 2024

@Daniel15 Per @chenrui333 's note above, and continuing through to the latest few releases, the GPG signatures are missing.

Downstream tools like twuni/asdf-yarn#33 are breaking (on purpose) due to the missing signatures. If these signatures are missing due to an error (vs an intentional decision to stop signing releases), then it would be nice to see it fixed.

@arcanis Is anyone actively working on fixing this? If not, I'm happy to do what I can to assist.

Daniel's comment above should work for anyone holding that (private) GPG signing key, whether that's CI or a human.

Given the cadence of Yarn releases, if CI is too much of a burden to integrate, then a simple manual process to have a human sign the release artifacts seems reasonable. It's just something that would need to be remembered (and documented).

@Daniel15
Copy link
Member

Daniel15 commented Mar 14, 2024 via email

@canterberry
Copy link

Thanks, @Daniel15 for chiming in. That's helpful, and should be plenty to work with to get this resolved!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

7 participants