Repository navigation
ci: parallelize native release builds and packaging - #11335
Merged
Merged
Conversation
Co-authored-by: Copilot App <[email protected]>
Contributor
Documentation PreviewDocumentation has been built for this PR. To view locally:
Built from commit e7a0060 |
Contributor
There was a problem hiding this comment.
🟡 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}}') |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.

Summary
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.Validation
npm run buildandnpm run type-checkpassed.AWF_NVX_PACKAGE_ROOTis unset.actionlint -shellcheck='' .github/workflows/release.ymlpassed; both new composite actions' shell steps passed ShellCheck with their declared environments. Full actionlint reports only existing shell warnings, verified againstorigin/main.git diff --checkpassed. Broader changed-test ESLint found three pre-existing errors in the two existing test files; confirmed unchanged onorigin/mainand left out of scope.--version/--help, and checkednpm pack --dry-run.Scope and limitations
Created in an isolated worktree from remote
mainat57858153596dca2ad4a585cbc53b0fe65e054d59; 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.