Files
cloud-apache-container/docs/arm64-publish-policy.md
T
shadowdaoandClaude Sonnet 5.5 e1ea28e6a8 ci: arm64 policy - serialise legs, one retry, never drop an existing arm64, ELF check before publish
- max-parallel: 2 on the cac / cac-fpm matrices (8 concurrent QEMU legs failed on 2026-11-19)
- ONE retry of a failed arm64 leg (90 s pause) in cac, cac-fpm, shared-httpd
- assemble-multiarch-index.sh: --guard-existing-arm64 (fail instead of replacing a multi-arch
  tag by amd64-only; dispatch input allow_amd64_only overrides) and --verify-bin (ELF machine
  type of amd64 and arm64 before any tag is written)
- tests: assemble-guard.test.sh, wiring tests; docs/arm64-publish-policy.md

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_0185ukXi4YX5FxJGqhi6qab6
2026-11-19 21:12:56 -08:00

965 B

arm64 in build-push.yaml (cac, cac-fpm, shared-httpd)

The arm64 leg is best effort (QEMU on the x86 runner) but never silently lost:

  • Matrix families run at most 2 legs at once (max-parallel: 2); 2026-11-19 showed that 8 concurrent QEMU legs fail on network steps.
  • A failed arm64 leg is retried ONCE after 90 s (Retry arm64). Assemble uses the first success.
  • Before publishing, scripts/assemble-multiarch-index.sh --verify-bin checks ELF machine types (amd64 = x86-64, arm64 = AArch64). A wrong arm64 counts as a failed leg; a wrong amd64 aborts.
  • --guard-existing-arm64: if the build ends without arm64 and the current tag has an arm64 entry, the assemble step FAILS and publishes nothing (the amd64 digest is in the error). Options: re-dispatch only=<leg>, or dispatch with allow_amd64_only=true (security rebuilds) and then restore arm64 with the arm64-attach workflow. Push-triggered runs have no input, so the guard is always on there.