Skip to content

fix(release): release target and private patch live here; releases use private caches - #790

Merged
charlielye merged 3 commits into
mainfrom
cl/release-cache
Nov 27, 2026
Merged

charlielye merged 3 commits into
mainfrom
cl/release-cache

Conversation

@charlielye

@charlielye charlielye commented Nov 26, 2026 •

Copy link
Copy Markdown
Collaborator

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

  • Release target moves here: scripts/source_release_target and scripts/apply_private_release_patch move from ci3.
    • The private patch runs from .github/ci3_post_checkout.sh, which ci3 runs after checkout and before ci3/source.
  • Cache per target:
    • A public release builds from aztec-ci-release-cache.
    • A private release builds from aztec-ci-private-cache instead of running with NO_CACHE/NO_CACHE_UPLOAD. Its logs go to aztec-ci-artifacts/logs with 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.
    • The target only names its bucket; ci-release alone switches to it. Before this, the network jobs, which source the target via release-image/bootstrap.sh push_pr, would have pointed ordinary build instances at the release cache and failed its access check.
  • ci.sh lists 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, which ci.sh writes from the secret.
  • Chonk inputs check: labs-aztec-toolchain/download_chonk_inputs.sh checks the tarball against the pin, which is its sha256 prefix. The download is otherwise unauthenticated.

Testing

  • Chonk check, red/green: a tampered tarball served under the pinned name was accepted before this change. Now it is rejected and nothing is extracted. The real pin still downloads.
  • Pass files: the CI3_PASS_FILES round trip is covered in ci3#39.
  • Not run locally: the release paths themselves. They need the release roles and run on tags.

Before the next private release, the release-private environment's CI3_INSTANCE_PROFILE_NAME must stay ci3-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

charlielye and others added 2 commits November 26, 2026 08:27
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
@charlielye charlielye changed the title fix(release): public releases build from the private release cache fix(release): release target and private patch live here; releases use private caches Nov 26, 2026
@charlielye
charlielye marked this pull request as ready for review November 26, 2026 19:42
@greptile-apps

greptile-apps Bot commented Nov 26, 2026 •

Copy link
Copy Markdown
Contributor

Confidence Score: 4/5 · The PR appears safe to merge with a non-blocking macOS checksum compatibility issue.RetriggerView in GreptileConfidence Score: 4/5

[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.

FindingsFix All in Claude CodeFindings

  1. P2 Fresh downloads fail on macOS ▶

Summary

This PR separates release build caches and adds private patch support.

  • Public and private releases now use their own build caches.
  • Release targets check settings before choosing what to publish.
  • Build instances receive the settings and files their jobs need.
  • Private release builds can include a version-specific source patch.
  • Chonk inputs are checked against their pin before extraction.

Acknowledged prerequisites from charlielye: apply iac#84, configure the release environment's AWS_OIDC_ROLE_ARN, and move the ci3 pin to the upstream merge commit. These are not additional findings.

Diagram

%%{init: {'theme': 'neutral'}}%%
flowchart TD
  A[Release workflow] --> B[Build instance checkout]
  B --> C{Private release?}
  C -->|Yes| D[Apply optional private patch]
  C -->|No| E[Select public release cache]
  D --> F[Select private cache]
  E --> G[Build and publish each architecture]
  F --> G
  G --> H[Combine versioned Docker images]
Loading

Reviews (1) · Last reviewed commit: "fix(release): own the release target and..." · Reviewed by Greptile

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)

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P2 Fresh downloads fail on macOS

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.

Fix in Claude Code Fix in Conductor

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
@charlielye
charlielye merged commit 707735c into main Nov 27, 2026
7 checks passed
@charlielye
charlielye deleted the cl/release-cache branch November 27, 2026 10:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant