Skip to content

fix: push barretenberg source as orphan commit to bb repo on release#21867

Closed
AztecBot wants to merge 6 commits into
nextfrom
claudebox/fix-bb-release-repo
Closed

fix: push barretenberg source as orphan commit to bb repo on release#21867
AztecBot wants to merge 6 commits into
nextfrom
claudebox/fix-bb-release-repo

Conversation

@AztecBot

Copy link
Copy Markdown
Collaborator

Summary

Adds the missing piece to PR #21775: on each release, push the barretenberg/ folder contents as a disconnected orphan commit to AztecProtocol/barretenberg, tagged with the release version. This ensures the barretenberg repo has the actual source code at each release tag, not just the GitHub release metadata and binary artifacts.

Also fixes a dangling reference to the renamed release_github function in the private fork release path.

Changes

  • In release_bb_github: before creating the GH release, copy barretenberg/ into a temp dir, git init, commit as orphan, tag, and push to the bb repo
  • Fix release_githubrelease_bb_github call in the private fork release path (line ~825)

How it works

Each release tag in AztecProtocol/barretenberg is a single orphan commit containing only the barretenberg source — completely disconnected from any branch. The GitHub release is then created pointing at this tag.

ClaudeBox log: https://claudebox.work/s/1a522ce4c151568a?run=2

AztecBot and others added 6 commits March 18, 2026 23:11
…21862)

## Summary
Adds a GitHub Actions workflow that copies barretenberg release
artifacts from `AztecProtocol/barretenberg` to
`AztecProtocol/aztec-packages` releases.

This fulfils the promise from the PR #21775 discussion:
- When someone creates/publishes a release on aztec-packages (via the
GitHub UI), this workflow automatically copies all bb artifacts from the
barretenberg repo release for that tag
- Can also be triggered manually via `workflow_dispatch` for any tag —
anyone on the aztec eng team can run it
- This ensures bbup's fallback to aztec-packages works for important
releases (e.g. those used by Noir)

**Note:** File is in `.github-new/` because CI file changes require
ci-allow — move to `.github/workflows/` before merging.

## Test plan
- [ ] Move `copy-bb-release-artifacts.yml` from `.github-new/workflows/`
to `.github/workflows/`
- [ ] Merge into PR #21775
- [ ] After merge, test by creating a draft release on aztec-packages
for an existing bb tag and verifying artifacts are copied

ClaudeBox log: https://claudebox.work/s/1d50ce33634fed3b?run=1

---------

Co-authored-by: ludamad <adam.domurad@gmail.com>
Also fix dangling reference to renamed release_github function.
@AztecBot AztecBot added ci-draft Run CI on draft PRs. claudebox Owned by claudebox. it can push to this PR. labels Mar 20, 2026
Base automatically changed from merge-train/spartan to next March 20, 2026 22:34
@ludamad ludamad closed this Mar 23, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

ci-draft Run CI on draft PRs. claudebox Owned by claudebox. it can push to this PR.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants