Skip to content

Docker image: linux/arm64 from the release's GB10 archive where the release carries one - #883

Merged
midagedev merged 1 commit into
midagedev:mainfrom
juliankang4:dgx-spark-q38-usab-spark-workflow
Oct 27, 2026
Merged

midagedev merged 1 commit into
midagedev:mainfrom
juliankang4:dgx-spark-q38-usab-spark-workflow

Conversation

@juliankang4

@juliankang4 juliankang4 commented Oct 27, 2026 •

Copy link
Copy Markdown
Collaborator

공식 Docker 이미지를 릴리스에 GB10 아카이브가 있을 때 linux/arm64로도 빌드하게 해서, DGX Spark에서 이미지를 바로 쓸 수 있게 합니다.

Part of #565.

What and why

The official image is built for linux/amd64 only, so a DGX Spark user cannot pull it. The Dockerfile already takes the GB10 archive on linux/arm64 through SHA256_ARM64. This change makes .github/workflows/container.yml use it.

When the release carries bloomery-<version>-linux-aarch64-cuda-sm121a.tar.gz.sha256, the workflow sets up QEMU, reads that digest, passes it as SHA256_ARM64 and builds linux/amd64,linux/arm64. When that lookup answers HTTP 404, the release has no GB10 archive: the workflow prints a notice and builds linux/amd64 only, as before. Any other answer, or a failed download, stops the job before a tag is pushed, so an outage never publishes an amd64-only image under the release's tags. The linux/amd64 asset, digest and tags are unchanged. A GB10 archive uploaded after the image was built is picked up by running the workflow again with the tag.

Release notes: Added: The official Docker image is also built for linux/arm64 (DGX Spark) when the release carries a GB10 archive.

Code shape

  • No second copy. The GB10 digest is read with the same checks as the x86-64 digest, and the build step stays one step.
  • Model code holds only architecture facts. No model code changes.
  • Dead code is gone.
  • No silent failure. A GB10 .sha256 without a 64-character digest, a lookup that answers anything but 200 or 404, or a failed download fails the step with a named error. Only a 404 prints the notice and builds linux/amd64 only.
  • Comments state what is true now.
  • No relaxed gate. No band, tolerance or lint moved.
  • cargo fmt and cargo clippy are not affected: the change touches only .github/workflows/container.yml.

Duplication found or removed (path:line): none.

What I ran

The change is 826d8a6d597a06b41606536b3bc86d96a9dcd68d on 08047d8b5422432dccb31f9b77f8e00d3892981c.

actionlint on container.yml reports one finding, SC2129 (redirect grouping) in the existing release-lookup step. The same finding is on the base file. With -ignore SC2129 it exits 0.

The Dockerfile this workflow drives was checked on a DGX Spark with a GB10 card. The tested tree's tools/release/Dockerfile is the one on this base. The Dockerfile downloads from a GitHub release, and no release carries it yet, so I built the GB10 archive with just release-build and used a copy of the Dockerfile where the curl line is a cp from the build context. The architecture case, the sha256sum -c check and the rest are the repository's.

docker build --platform linux/arm64 --build-arg VERSION=0.3.10 --build-arg SHA256_ARM64=<archive sha256> .
DOCKER-BUILD rc=0
arch=arm64 os=linux
BAD-SHA build rc=1 (want nonzero)
IMAGE-CHECK rc=0

BAD-SHA is the same build with a wrong SHA256_ARM64, which fails as intended. In the built image bloomery-serve --version printed 0.3.10. The server started through the entrypoint with --gpus all and an FP4-Local model file, /health came up, and two greedy /completion requests returned text.

What I could not run: the QEMU step, the release lookup and the multi-platform push run only on GitHub Actions, so this workflow change has not run end to end.

AI help

AI 코딩 에이전트가 코드를 작성한 후 설명을 썼고, 테스트를 마쳤습니다. diff 리뷰와 PR 초안 리뷰는 제가 직접 했습니다.

@github-actions github-actions Bot added the tools Tools, recipes, CI and the toolchain: tools/, justfile, .github/, Cargo label Oct 27, 2026

@github-actions github-actions Bot 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.

Verdict: CLEAN: the workflow adds linux/arm64 only when the GB10 .sha256 returns 200, and every other outcome either keeps the old amd64 build or fails before any push.

Non-blocking

⚠ Untested path: container.yml:35. The PR body says the QEMU step, the release lookup and the multi-platform push have not run on GitHub Actions. The first run is the next v* tag. Run the workflow once with workflow_dispatch naming an existing release before that tag, so a failure does not surface during a release.

Checked

  • Duplicates: 0 new functions or constants. The GB10 digest check repeats the x86-64 two-line check in the same step. It stays: a helper would add a function to save two lines. No dryer pairs (no Rust change).
  • Complexity: crapper did not run (no Rust file changed).
  • Silent failure: 4 sites followed. A curl transport error exits 1 (|| after the substitution). A 200 with no 64-character digest exits 1. A non-200, non-404 status exits 1 before the build step. A 404 prints ::notice:: and sets platforms=linux/amd64 with an empty SHA256_ARM64. That empty value is never used, because the arm64 leg is not built.
  • Dockerfile contract: TARGETARCH=arm64 takes SHA256_ARM64 and the asset name bloomery-${VERSION}-linux-aarch64-cuda-sm121a.tar.gz. Both match the name in publish.sh (tools/release/publish.sh:52). sha256sum -c still checks the download.
  • Ordering claim: publish.sh uploads the x86-64 .sha256 last (lines 132 to 133), so the GB10 files are up when the wait loop ends. The comment is true.
  • Tests: no test or gate changed. Gates: no pin moved.
  • Escape catalog: C1 does not match. code=$(curl …) || {…} tests the substitution's own exit status, and set -eu is on. C2 to C4 do not apply.

Notes

  • No nvidia-smi line or just gate-* output is in the PR text. The change touches no crate a card must check.

Not approved: this pull request changes .github/workflows/container.yml, which changes the bot, CI or the toolchain and needs a person's approval.

🔨 Shingler, bloomery's review bot: approves a clean pull request and requests changes on a must-fix (how it works)

@midagedev
midagedev merged commit 2f27e83 into midagedev:main Oct 27, 2026
7 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

tools Tools, recipes, CI and the toolchain: tools/, justfile, .github/, Cargo

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants