Repository navigation
feat(release): stage the release on EC2, publish it from the GitHub runner - #804
charlielye wants to merge 2 commits into
Conversation
…unner The release build no longer holds the npm token or the aztec-nr mirror's deploy key. Each EC2 job pushes its arch's docker images; the amd64 job stages the npm tarballs (deploy_npm's pack mode), the playground and the aztec-up installer lock into the release cache. A new publish job in release.yml downloads that bundle and publishes, in order: the aztec-nr mirror, npm via trusted publishing with provenance (ci3's npm_publish_packed), the aztec-up installer and aliases, the playground, and the multi-arch docker manifests. A private release is unchanged. Also writes the installer's versioned files and the playground's index through files rather than pipes, so a dry run no longer dies of SIGPIPE. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01DSxF9AgGYcAcCTjXEeJT4L
[High impact] The public release path now publishes several user-facing artifacts from a new runner job. Fix the missing installer
|
| mkdir -p "${RELEASE_DIR:?set by the root release}/aztec-up" | ||
| cp "$release_lock" "$RELEASE_DIR/aztec-up/packages.tar.gz" |
There was a problem hiding this comment.
New installs lack required versions
release stages only packages.tar.gz, but publish uploads the other installer files from a fresh checkout. bin/0.0.1/versions is ignored by git and created only during build, so the GitHub runner never uploads it. The installer requires that file before installing anything, so new installs fail even though publishing succeeds.
Stage the generated versions file alongside the lock and upload it from the staged directory.
There was a problem hiding this comment.
Right, fixed in 5508db8: release now stages every installer file from the build (including the generated versions) under aztec-up/bin in the bundle, and publish uploads from there, refusing a bundle without versions before any upload. A dry run now uploads the same seven files the old EC2 release did.
…release The publish job's checkout has no build, so it lacks aztec-up/bin/0.0.1/versions, which the build generates and the installer needs. Stage every installer file from the build and upload from the bundle; publish refuses a bundle without the versions file before uploading anything. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01DSxF9AgGYcAcCTjXEeJT4L
Moves aztec-node's public release to aztec-packages' model: the build stages, and a simple GitHub job publishes. With npm trusted publishing, the
NPM_TOKENsecret can then be deleted.Before merging (the first nightly after merge is the first real run):
@aztec-labspackage trustsaztec-labs-eng/aztec-node,release.yml, environmentreleaseon npmjs.What changes
releasejob (EC2): each arch pushes its own docker images, as before. The amd64 job no longer publishes anything else: it stages the npm tarballs (ci3deploy_npmpack mode), the playground build and the aztec-up installer lock underrelease-out/and uploads that to the release cache asrelease-$REF_NAME.tar.gz. A dry run stages but doesn't upload.NPM_TOKENand the aztec-nr deploy key are no longer passed to it.New
publishjob (GitHub runner, environmentrelease):./bootstrap.sh publishdownloads the bundle and publishes, in order:npm_publish_packed: trusted publishing with--provenance, in dependency order, only@aztec-labspackages at exactly the tag's version;A re-run skips what's already out.
Private releases are unchanged. They still publish from the build, and
ci.sh releasestill assembles their manifests.The aztec-up and playground release functions are split into stage (
release) andpublish <dir>.Slack failure notices from both jobs go through
.github/release_failure_notify.sh.The aztec-up versioned files and the playground index are now written through files, not pipes. In a dry run
do_or_dryrunreads no input, so the old pipes died of SIGPIPE (exit 141).RELEASES.mddescribes the two jobs and trusted publishing.Testing
./bootstrap.sh publishwithDRY_RUN=1locally on a fake bundle in the local cache dir, withnpmanddockerstubbed. The aztec-nr dry run did only anonymous reads of the public mirror. All five steps ran in order;@aztec-labs/foundationpublished before@aztec-labs/stdlib, which depends on it. aztec-up uploaded the same files and aliases as the oldrelease, and refused a lock built for another version. The playground found distributionE3O2N77GNVSX7F, the one iac#91 grants.npm_publish_packedhas its own tests in ci3#43.deploy_npmpack mode,cache_upload) are the ones aztec-packages' releases use.After it ships
NPM_TOKENsecret. v6 releases still use it, so delete it only after the v6 backport, or accept that v6 can't release until then.S3ReleaseSitesWritefrom the release build instances in iac.deploy_npm's pack mode and v6 has none of thesource_release_targetlayout, so it needs a ci3 repin as well as this change.🤖 Generated with Claude Code
https://claude.ai/code/session_01DSxF9AgGYcAcCTjXEeJT4L