Skip to content

fix: compile Squid release images on native AMD64 and ARM64 runners - #11291

Merged
lpcox merged 1 commit into
mainfrom
lpcox-native-squid-release-builds
Nov 8, 2026
Merged

lpcox merged 1 commit into
mainfrom
lpcox-native-squid-release-builds

Conversation

@lpcox

@lpcox lpcox commented Nov 8, 2026

Copy link
Copy Markdown
Collaborator

Summary

  • Compile Squid separately on native ubuntu-24.04 (AMD64) and ubuntu-24.04-arm (ARM64) runners, eliminating QEMU from Squid release builds and separating architecture cache scopes.
  • Push each architecture by digest, transfer the digests through artifacts, and publish one combined multi-architecture image with the existing version and latest tags.
  • Preserve the build-squid digest output, downstream release dependencies, cosign signing, and SBOM attestation against the combined manifest. Reject missing/invalid digests and verify both platforms before exposing the output.
  • Leave the patched Squid Dockerfile and every other image job unchanged. Include release documentation and executable mocked-Docker regression coverage.

Validation

  • Native Squid release regression suite: 10 tests passed, including digest handoff, exact manifest arguments, and failure paths.
  • npm run build and npm run type-check passed; commit hooks completed successfully.
  • actionlint workflow validation passed with shellcheck disabled; full actionlint emitted only the same seven pre-existing shellcheck diagnostics as the base workflow.
  • Release documentation Markdown lint and git diff --check passed.

No live release was dispatched and no container images were published during validation.

Build AMD64 and ARM64 on matching Ubuntu runners.
Publish and sign the combined manifest with the existing release digest contract.

Co-authored-by: Copilot App <[email protected]>
Copilot AI adaptive review requested due to automatic review settings November 8, 2026 02:29
@github-actions

github-actions Bot commented Nov 8, 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-11291 artifact from the workflow run
  2. Unzip and open index.html in your browser

Built from commit 36c144b

@github-actions

github-actions Bot commented Nov 8, 2026

Copy link
Copy Markdown
Contributor

✅ Coverage Check Passed

Overall Coverage

Metric Base PR Delta
Lines 93.82% 93.81% ➡️ -0.01%
Statements 92.36% 92.36% ➡️ +0.00%
Functions 93.02% 93.02% ➡️ +0.00%
Branches 86.69% 86.68% ➡️ -0.01%
📁 Per-file Coverage Changes (1 files)
File Lines (Before → After) Statements (Before → After)
src/nvx/one-shot-process.ts 84.0% → 81.5% (-2.47%) 76.8% → 74.7% (-2.11%)

Coverage comparison generated by scripts/ci/compare-coverage.ts

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

A concurrent GHCR writer can retarget the version tag before lookup, causing the release workflow to verify and sign a digest that belongs to neither build.

2 open issues
What changed in this PR

Moves Squid release compilation to native AMD64 and ARM64 runners while preserving a combined image digest for signing and downstream release artifacts.

Changes:

  • Splits Squid builds by architecture with isolated caches and digest-artifact handoff.
  • Publishes a combined image under the existing version and latest tags, with digest and platform validation.
  • Adds release documentation and mocked-Docker regression coverage.
File Description
scripts/​ci/​release-squid-native-builds.test.ts Tests native-build configuration, digest handoff, publication, and failure handling.
docs/​releasing.md Documents native compilation and combined-image publication.
.github/​workflows/​release.yml Separates native architecture builds from manifest publication while retaining signing and digest outputs.

Review effort: Max (auto)

--tag "$IMAGE:$VERSION" \
--tag "$IMAGE:latest" \
"${sources[@]}"
digest=$(docker buildx imagetools inspect "$IMAGE:$VERSION" --format '{{.Manifest.Digest}}')
name: squid-digest-${{ matrix.arch }}
path: ${{ runner.temp }}/squid-digests/${{ matrix.arch }}
if-no-files-found: error
retention-days: 1
@lpcox
lpcox merged commit f040e76 into main Nov 8, 2026
37 checks passed
@lpcox
lpcox deleted the lpcox-native-squid-release-builds branch November 8, 2026 03:02
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