Repository navigation
fix(release): release target and private patch live here; releases use private caches - #790
Conversation
Bumps ci3 to the release cache change (aztec-labs-eng/ci3, release cache). source_release_target, which ci-release and release already source, now points a public release's build cache at aztec-ci-release-cache: a private bucket only release build instances can write, where the shared build cache is written by every CI build, pull requests included. Private releases are unchanged: they use no cache. Needs aztec-labs-eng/iac's release cache change applied, and the release environment's AWS_OIDC_ROLE_ARN variable set to the release role it creates. Until then a public release fails at once with "The release cache (s3://aztec-ci-release-cache) is not accessible". Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01DSxF9AgGYcAcCTjXEeJT4L
…ses use the private cache ci3 no longer carries aztec-node's release logic or forwards its variables (ci3#39): - scripts/source_release_target and scripts/apply_private_release_patch move here from ci3. The patch runs from .github/ci3_post_checkout.sh, which ci3 calls after checkout. - The target names its cache bucket and only ci-release switches to it: the network jobs source the target for the registry, on build instances that cannot reach the release cache. - A private release caches in aztec-ci-private-cache, and its logs go there, instead of running with no cache at all. - ci.sh lists what reaches the build container: CI3_PASS_ENV, and CI3_PASS_FILES for the GCP key, network env file and aztec-nr mirror deploy key (written to a file here). - The chonk inputs download checks the tarball against the pin, its sha256 prefix. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01DSxF9AgGYcAcCTjXEeJT4L
[High impact] The PR changes how public and private release builds get cached and prepared. The PR appears safe to merge with a non-blocking macOS checksum compatibility issue.
|
| exit 1 | ||
| fi | ||
| # The pin is the tarball's sha256 prefix, so it says what to expect, not only where to look. | ||
| actual=$(sha256sum "$tmp/inputs.tar.gz" | cut -c1-16) |
There was a problem hiding this comment.
download_chonk_inputs.sh now requires sha256sum. If a macOS developer uses the standard Homebrew setup, coreutils exposes gsha256sum, not sha256sum. This script runs directly without adding Homebrew's unprefixed commands to PATH, so fresh downloads stop with “command not found,” blocking benchmarks that need them. Use shasum -a 256 on macOS or select an available checksum command.
Logs are served only through the dashboard once aztec-ci-artifacts' public read is narrowed to the build cache, so a private release's logs need no bucket of their own. Moves ci3 to the matching commit. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01DSxF9AgGYcAcCTjXEeJT4L
Pins ci3 to aztec-labs-eng/ci3#39. That PR gives each trust level its own build cache and instance group, and moves repository-specific release logic out of ci3.
Changes
scripts/source_release_targetandscripts/apply_private_release_patchmove from ci3..github/ci3_post_checkout.sh, which ci3 runs after checkout and beforeci3/source.aztec-ci-release-cache.aztec-ci-private-cacheinstead of running withNO_CACHE/NO_CACHE_UPLOAD. Its logs go toaztec-ci-artifacts/logswith every other log, which only the dashboard serves once aztec-labs-eng/iac#87 narrows that bucket's public read to the build cache. That change is not applied yet, so until then a private run's log can be fetched by anyone who knows its id.ci-releasealone switches to it. Before this, the network jobs, which source the target viarelease-image/bootstrap.sh push_pr, would have pointed ordinary build instances at the release cache and failed its access check.ci.shlists what reaches the build container, now that ci3 forwards only its own settings:CI3_PASS_ENV:RELEASE_TARGET,GCP_PROJECT_ID,NAMESPACE,NETWORK,R2_*, etc.CI3_PASS_FILES: the GCP key, the network env file, and the aztec-nr mirror deploy key, whichci.shwrites from the secret.labs-aztec-toolchain/download_chonk_inputs.shchecks the tarball against the pin, which is its sha256 prefix. The download is otherwise unauthenticated.Testing
CI3_PASS_FILESround trip is covered in ci3#39.Before the next private release, the
release-privateenvironment'sCI3_INSTANCE_PROFILE_NAMEmust stayci3-private-release-build-instance-profile, which is the only profile that can write the private cache.🤖 Generated with Claude Code
https://claude.ai/code/session_01DSxF9AgGYcAcCTjXEeJT4L