Skip to content

fix(release-image): stamp aztec_version in published contract artifacts#23462

Closed
benesjan wants to merge 2 commits into
v4-nextfrom
bj/fix-release-image-stamp-artifacts
Closed

fix(release-image): stamp aztec_version in published contract artifacts#23462
benesjan wants to merge 2 commits into
v4-nextfrom
bj/fix-release-image-stamp-artifacts

Conversation

@benesjan
Copy link
Copy Markdown
Contributor

@benesjan benesjan commented May 21, 2026

Summary

The v4.3.0 release shipped contract artifact JSONs with aztec_version: "dev" baked in which resulted in a failure in ci-compat-e2e as there we check the artifact version matches the expected tested version that is injected in via an env var.

On npm.js we see "dev" in the artifact:

image

The issue seems to be caused by REF_NAME not being correctly populated when doing the release which then results in "dev" being stamped into the released artifacts instead of the real version.

The fix is to re-stamp the version into artifact when we are doing the release. It seems kinds 💩 tho

The v4.3.0 release shipped contract artifact JSONs with aztec_version: "dev"
baked in, because release-image/Dockerfile copies pre-built artifacts from an
earlier stage where REF_NAME isn't set (so stamp_aztec_version in
noir-projects/noir-contracts/bootstrap.sh falls back to "dev"). Mirror the
stdlib/package.json stamp pattern (75fd494) to re-stamp aztec_version in
every artifact under accounts/, noir-contracts.js/, and noir-test-contracts.js/
at image-build time.

Also bypass the compat e2e assertContractArtifactsVersion() check narrowly for
expected === "4.3.0" && aztecVersion === "dev" so the compat job stops failing
against the already-published broken 4.3.0 artifacts. Other versions still
fail loudly if they ever report "dev".

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
@benesjan benesjan requested a review from charlielye as a code owner May 21, 2026 10:20
@benesjan benesjan added the ci-release-pr Creates a development tag and runs the release suite label May 21, 2026
@AztecBot AztecBot removed the ci-release-pr Creates a development tag and runs the release suite label May 21, 2026
// TODO(F-557): Remove once v4.3.0 drops off the compat matrix. The v4.3.0 release shipped with
// aztec_version: "dev" baked into the published artifact JSONs because release-image/Dockerfile
// did not re-stamp them. Fixed for future releases by the artifact restamp step in that Dockerfile.
if (expected === '4.3.0' && aztecVersion === DEV_VERSION) {
Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

"dev" got already stamped into artifacts from "4.3.0" so this is here to disable this check on the next run. This is fine as this was only a sanity check.

@benesjan benesjan marked this pull request as draft May 21, 2026 10:38
@benesjan benesjan added the ci-release-pr Creates a development tag and runs the release suite label May 21, 2026
@benesjan
Copy link
Copy Markdown
Contributor Author

Closed in favor of #23470 to be able to re-trigger the release of the branch

@benesjan benesjan closed this May 21, 2026
@benesjan benesjan deleted the bj/fix-release-image-stamp-artifacts branch May 21, 2026 13:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

ci-release-pr Creates a development tag and runs the release suite

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants