Skip to content

ci: parallelize native release builds and packaging - #11335

Merged
lpcox merged 1 commit into
mainfrom
lpcox-parallel-release-builds
Nov 9, 2026
Merged

lpcox merged 1 commit into
mainfrom
lpcox-parallel-release-builds

Conversation

@lpcox

@lpcox lpcox commented Nov 9, 2026

Copy link
Copy Markdown
Collaborator

Summary

  • Extend Squid's native AMD64/ARM64 pattern to all other multiarch images: agent, api-proxy, router, cli-proxy, build-tools, gh-aw-node, and all three enclave targets. Build on ubuntu-24.04/ubuntu-24.04-arm, with digest-only pushes and unique image/architecture artifacts and cache scopes. Shared composite actions keep the handoff/publication implementation consistent.
  • Split enclave targets into independent jobs; only enclave-agent waits for the signed build-tools manifest. Split Cloud Hypervisor primary/enclave profiles so each waits only for its actual image dependencies.
  • Start bundle/NPM packaging and a four-target standalone binary matrix immediately after version tagging, alongside image and VM artifact work. Restore downloaded binary executable permissions before the existing smoke/format checks.
  • Preserve image names, tags, contexts, build arguments, pull/no-cache policies, native per-platform agent seccomp verification, signing/SBOM retry policies, final manifest digest wiring, release provenance/checksum/size gates, and both independent post-publication validation dispatches. Agent-act stays AMD64-only; Cloud Hypervisor/NVX stays x86_64-only.

Validation

  • npm run build and npm run type-check passed.
  • Seven targeted suites passed: 207 tests, including 31 new parallel-release regressions covering native runner mapping, DAG dependencies, security/build inputs, digest artifacts, publication failures, downstream outputs, packaging, and shell syntax. The opt-in real NVX release suite (4 tests) was skipped because AWF_NVX_PACKAGE_ROOT is unset.
  • actionlint -shellcheck='' .github/workflows/release.yml passed; both new composite actions' shell steps passed ShellCheck with their declared environments. Full actionlint reports only existing shell warnings, verified against origin/main.
  • New regression test lint, release documentation lint, and git diff --check passed. Broader changed-test ESLint found three pre-existing errors in the two existing test files; confirmed unchanged on origin/main and left out of scope.
  • Built the local bundle, exercised --version/--help, and checked npm pack --dry-run.

Scope and limitations

Created in an isolated worktree from remote main at 57858153596dca2ad4a585cbc53b0fe65e054d59; the original dirty checkout was not edited. No release or live workflow was dispatched, and no images/tags were published. Actual wall-clock speedup must be measured during a separately authorized release and depends on hosted-runner capacity/concurrency. The cohesive Cloud Hypervisor artifact build/verification pipeline remains intact rather than introducing new partial-artifact contracts.

Copilot AI adaptive review requested due to automatic review settings November 9, 2026 00:01
@github-actions

github-actions Bot commented Nov 9, 2026

Copy link
Copy Markdown
Contributor

Documentation Preview

Documentation has been built for this PR.

Download preview artifact

To view locally:

  1. Download the docs-preview-pr-11335 artifact from the workflow run
  2. Unzip and open index.html in your browser

Built from commit e7a0060

Copilot AI left a comment

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.

🟡 Changes recommended

The release action resolves a mutable version tag rather than the published digest, allowing a concurrent tag replacement to pass architecture checks and be signed without having passed the builds.

1 open issue
What changed in this PR

Refactors AWF’s release pipeline to build images and package release assets concurrently, aiming to reduce release time while retaining existing publication checks.

Changes:

  • Adds native AMD64/ARM64 build matrices with shared digest handoff and manifest-publication actions.
  • Separates enclave targets and Cloud Hypervisor profiles by their actual dependencies.
  • Builds bundle/NPM packages and four standalone binaries in parallel, with updated regression coverage and documentation.
File Description
scripts/​ci/​release-parallel-builds.test.ts Adds coverage for build matrices, dependencies, digest handoff, and packaging.
scripts/​ci/​dispatch-release-enclave-conformance.test.ts Updates release dependency and digest assertions.
scripts/​ci/​cloud-hypervisor-enclave-artifacts.test.ts Updates the enclave profile digest reference.
docs/​releasing.md Documents parallel builds, packaging, and architecture boundaries.
.github/​workflows/​release.yml Splits image builds, profile jobs, and packaging into parallel work.
.github/​actions/​publish-release-image/​action.yml Combines platform digests and verifies the published manifest.
.github/​actions/​build-release-image/​action.yml Shares native builds, cache settings, seccomp checks, and digest export.

Review effort: Max (auto)

Comment on lines +53 to +57
docker buildx imagetools create \
--tag "$IMAGE:$VERSION" \
--tag "$IMAGE:latest" \
"${sources[@]}"
digest=$(docker buildx imagetools inspect "$IMAGE:$VERSION" --format '{{.Manifest.Digest}}')
@lpcox
lpcox merged commit 76a054a into main Nov 9, 2026
44 of 45 checks passed
@lpcox
lpcox deleted the lpcox-parallel-release-builds branch November 9, 2026 00:41
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.

2 participants