Skip to content

Validate the build and release workflow runs #610

Open

Description

@MushuEE

Part of #609. Agent task images are out of scope; they are built and released in agentexecutor/images.

Goal

Before each stage of the build and release flows is turned on, show that it works on real GitHub Actions runs. Record the run links here as evidence.

Stage 1: release on tag (base images, CLI, manifests)

Dry runs (publish nothing):

  • A PR that touches .github/workflows/release.yml or a Dockerfile.* runs a dry run that passes. Images go only to the job-local registry, and no release is created
  • A manual run with dry_run: true against an existing tag passes
  • A fork does nothing except dry runs
  • The dry run's second image pass reuses every image and records the same digests
  • A manual dry run on an existing stable tag that contains the workflow passes (the PR dry run uses a prerelease version, so it never takes the :latest path)

Prerelease (vX.Y.Z-rc.1):

  • The first publish gets past the existence check (ghcr.io answers DENIED for a never-pushed package; the packages API fallback should treat that as missing)
  • Pushing the tag publishes ghcr.io/google/ax/ax-server and ghcr.io/google/ax/ax-task-runner with both linux/amd64 and linux/arm64 manifests (docker buildx imagetools inspect)
  • Packages are set to public and linked to google/ax. An anonymous docker pull by digest works
  • The GitHub release has the ax CLI archives and checksums.txt, and an ax-server.yaml whose images are pinned to the digests that were pushed
  • curl -fsSL https://github.com/google/ax/releases/download/<tag>/install.sh | AX_VERSION=<tag> sh installs the CLI, and ax version prints the tag
  • :latest is not moved for a prerelease
  • Rerunning the workflow for the same tag builds nothing and records the same digests
  • A manual run with overwrite: true is refused once the release is published
  • A tag on a commit that is not on main or a release-* branch is refused

Install from the release:

  • On Kind (amd64), installing from the release assets alone (no local build) gets a Task without spec.image to Succeeded
  • The same on an arm64 cluster (or an arm64 Kind node)
  • make test-e2e passes against the published images (needs a follow-up: hack/setup-e2e-kind.sh always builds images; add an override for a published ax-server and task-runner base)

Real release (vX.Y.Z):

  • All of the above, and :latest now points to the release

Stage 3: scheduled builds (deferred)

Fill in when nightly triggers are turned on.

Run log

Date Stage Run Result Notes
2026-11-16 1 PR #616 dry run Pass images 3m9s (amd64 and arm64 binaries verified per platform), release 1m23s; pushed to the job-local registry only, no release created
2026-11-16 1 PR #616 dry run (review fixes) Pass images 2m36s, release 1m29s; the rerun reused both images with the same digests (no rebuild)
2026-11-17 1 PR #616 dry run (ax-runner-volume) Pass Fixed the render failure from main's new AX_RUNNER_VOLUME_IMAGE placeholder; all three images built, binaries verified per platform, and reused on rerun

Activity

  1. MushuEE commented on Nov 18, 2026

    @MushuEE
    CollaboratorAuthor

    Release steps for the first preview tag

    Draft steps for the first tagged run, taken from docs/releasing.md, release.yml and the checklist above. They have not been run end to end yet. PREVIEW_TAG stands for the tag being cut.

    0. Set the variables

    export PREVIEW_TAG=v0.4.0-rc.1   # must match vX.Y.Z or vX.Y.Z-PRERELEASE
    export COMMIT=<sha on main>      # or on a release-* branch; any other commit is refused

    A tag with a -PRERELEASE suffix is published as a pre-release and never moves :latest.

    1. Before tagging

    • main is green at ${COMMIT}, including the nightly E2E run.
    • go.mod pins the Substrate release to ship against.
    • The person pushing the tag is on the bypass list of the protect-tags ruleset. Nobody else can create tags.
    • A google org owner is available for step 4.
    gh run list --repo google/ax --branch main --limit 10
    git fetch origin && git merge-base --is-ancestor "${COMMIT}" origin/main && echo "on main"

    2. Tag and push

    git tag -a "${PREVIEW_TAG}" -m "${PREVIEW_TAG}" "${COMMIT}"
    git push origin "${PREVIEW_TAG}"

    3. Watch the Release workflow

    gh run list --repo google/ax --workflow release.yml --event push --limit 1
    gh run watch <run id> --repo google/ax

    The images job pushes ax-server and ax-task-runner to ghcr.io/google/ax. The release job publishes the GitHub release. If images fails, no release is created. The image digests are in the job summary.

    4. Make the packages public (org owner)

    GitHub creates new packages as private. An owner of the google org sets ax/ax-server and ax/ax-task-runner to public in each package's settings, and links both to google/ax. Until then anonymous pulls fail.

    5. Verify

    Both platforms are present:

    docker buildx imagetools inspect "ghcr.io/google/ax/ax-server:${PREVIEW_TAG}"
    docker buildx imagetools inspect "ghcr.io/google/ax/ax-task-runner:${PREVIEW_TAG}"
    # expect linux/amd64 and linux/arm64 on each

    The release has the assets, and the manifest is pinned to the pushed digests:

    gh release view "${PREVIEW_TAG}" --repo google/ax --json isPrerelease,isDraft,assets \
      --jq '{isPrerelease, isDraft, assets: [.assets[].name]}'
    gh release download "${PREVIEW_TAG}" --repo google/ax --pattern ax-server.yaml --dir /tmp/ax-release
    grep -n 'ghcr.io/google/ax' /tmp/ax-release/ax-server.yaml   # expect @sha256: digests matching the job summary

    An anonymous pull by digest works:

    docker logout ghcr.io
    docker pull ghcr.io/google/ax/ax-server@<digest from ax-server.yaml>

    The CLI installs and reports the tag:

    curl -fsSL "https://github.com/google/ax/releases/download/${PREVIEW_TAG}/install.sh" | AX_VERSION="${PREVIEW_TAG}" sh
    ~/.ax/bin/ax version   # expect ${PREVIEW_TAG}; install.sh installs to ~/.ax/bin by default

    :latest was not moved by a prerelease:

    docker buildx imagetools inspect ghcr.io/google/ax/ax-server:latest   # expect: not found, until the first stable release

    A rerun builds nothing and records the same digests:

    gh workflow run release.yml --repo google/ax --ref main -f tag="${PREVIEW_TAG}"

    overwrite is refused once the release is published (this run should fail):

    gh workflow run release.yml --repo google/ax --ref main -f tag="${PREVIEW_TAG}" -f overwrite=true

    A manual dry run against the existing tag passes and publishes nothing:

    gh workflow run release.yml --repo google/ax --ref main -f tag="${PREVIEW_TAG}" -f dry_run=true

    Install from the release assets alone, with no local build, on Kind amd64 and on an arm64 cluster. These are the commands the release notes print; the cluster needs the Agent Substrate version named in the notes:

    kubectl create namespace ax-system --dry-run=client -o yaml | kubectl apply -f -
    kubectl -n ax-system create secret generic ax-postgres --from-literal=password="$(openssl rand -hex 24)"
    kubectl apply -f "https://github.com/google/ax/releases/download/${PREVIEW_TAG}/postgres.yaml"
    kubectl apply -f "https://github.com/google/ax/releases/download/${PREVIEW_TAG}/ax-server.yaml"

    Then check that a Task without spec.image reaches Succeeded.

    6. Record the results

    Tick the boxes above and add each run to the run log table.

    7. If something is wrong

    A published release is never rebuilt. Fix on main through a PR, then repeat from step 0 with the next tag (for example v0.4.0-rc.2).

    8. Stable release

    Repeat steps 0 to 6 with the stable tag (for example PREVIEW_TAG=v0.4.0). It becomes the highest stable tag, so it is marked Latest and :latest now points to it.

  2. mayawang commented on Nov 18, 2026

    @mayawang
    Collaborator

    Thanks Grant, this is great. Two things: ping me or Jaana when you're ready to tag, since only admins can push it now. And who's our google org owner for step 4? Worth lining them up before Friday so the images are pullable. Also, our plan calls this release v0.1 but tags are at v0.3.x, let's agree the tag name before the first rc.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions