Repository navigation
Docker image: linux/arm64 from the release's GB10 archive where the release carries one - #883
Conversation
…elease carries one
There was a problem hiding this comment.
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 setsplatforms=linux/amd64with an emptySHA256_ARM64. That empty value is never used, because the arm64 leg is not built. - Dockerfile contract:
TARGETARCH=arm64takesSHA256_ARM64and the asset namebloomery-${VERSION}-linux-aarch64-cuda-sm121a.tar.gz. Both match the name inpublish.sh(tools/release/publish.sh:52).sha256sum -cstill checks the download. - Ordering claim:
publish.shuploads the x86-64.sha256last (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, andset -euis on. C2 to C4 do not apply.
Notes
- No
nvidia-smiline orjust 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)
공식 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.ymluse it.When the release carries
bloomery-<version>-linux-aarch64-cuda-sm121a.tar.gz.sha256, the workflow sets up QEMU, reads that digest, passes it asSHA256_ARM64and buildslinux/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
.sha256without 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.cargo fmtandcargo clippyare not affected: the change touches only.github/workflows/container.yml.Duplication found or removed (
path:line): none.What I ran
The change is
826d8a6d597a06b41606536b3bc86d96a9dcd68don08047d8b5422432dccb31f9b77f8e00d3892981c.actionlintoncontainer.ymlreports one finding, SC2129 (redirect grouping) in the existing release-lookup step. The same finding is on the base file. With-ignore SC2129it exits 0.The Dockerfile this workflow drives was checked on a DGX Spark with a GB10 card. The tested tree's
tools/release/Dockerfileis the one on this base. The Dockerfile downloads from a GitHub release, and no release carries it yet, so I built the GB10 archive withjust release-buildand used a copy of the Dockerfile where thecurlline is acpfrom the build context. The architecturecase, thesha256sum -ccheck and the rest are the repository's.BAD-SHAis the same build with a wrongSHA256_ARM64, which fails as intended. In the built imagebloomery-serve --versionprinted 0.3.10. The server started through the entrypoint with--gpus alland an FP4-Local model file,/healthcame up, and two greedy/completionrequests 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 초안 리뷰는 제가 직접 했습니다.