Repository navigation
ci: prune per-commit images after each v1 push - #13574
Merged
Merged
Conversation
cv
enabled auto-merge (squash)
October 21, 2026 03:22
Contributor
# Conflicts: # docs/contributing/releases.md
cv
added a commit
that referenced
this pull request
Oct 23, 2026
…digest (#13664) ## Failure Staging `v0.1.0-rc3` took 41 minutes, 30 of them in the stage job, because #13590 scans every release platform image with Syft from the registry, one after another. That's 28 images, including about 10 GB per vLLM platform, downloaded by a runner that built none of them. Before SBOMs the stage job took about 2.5 minutes. ## Decision Scan each image where it is built, and keep the result by digest. - **`.github/scripts/image-sbom.sh`**: given a pushed image, finds its platform manifest digest. If `v1-ci` has no `sbom-DIGEST` yet, it scans the image with the pinned Syft (locally if Docker has it, otherwise from the registry) and pushes the SPDX document there as a tiny `FROM scratch` image. - **Image workflow**: on image-affecting `v1` pushes, it records each agent and proxy image's SBOM right after pushing it. Local scans take about 10–30 seconds per image. - **Staging's runtime jobs**: record the vLLM and Ollama images' SBOMs after building them. Runtime images build reproducibly, so an unchanged image's SBOM is already there and isn't rescanned. vLLM's scan (about 3–6 minutes) is paid only when its inputs change. - **Staging**: copies each release platform's document from `v1-ci` with `docker create` and `docker cp`, and falls back to the registry scan only for an image without one, such as images pushed before this change. - The `sbom-` tags age out with the per-commit images under #13574's pruning. Why not BuildKit's own SBOM attestations: tried on the proxy image, BuildKit's scanner found 1 package where the pinned Syft with the Cargo lockfile cataloger finds 79, including hyper, serde and tokio. It also uses a moving tag, `docker/buildkit-syft-scanner:stable-1`. ## Validation - Against the real `v1-ci` package, on a DGX Spark: - recording an Ollama proxy image's SBOM took 11 s; - a second run found it and skipped scanning (4 s); - copying it out the way staging does gave an SPDX 2.3 document with 79 packages, including the Rust dependencies. - The package stayed internal. - Local scan times with the same Syft: OpenClaw (4.35 GB) in 30 s, vLLM (35.4 GB) in 200 s. - `shellcheck` and `actionlint` are clean, and `fern check` reports 0 errors. - The workflows themselves run at the next image-affecting `v1` push and the next staging. Until then, staging's registry fallback covers images without a stored SBOM.
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.
Failure
Every image-affecting
v1push adds 22 per-commit images toghcr.io/nvidia/nemoclaw/v1-ci(eleven images on two platforms), and nothing removed them.Decision
Prune after each push instead of on a schedule: GitHub runs scheduled workflows only on the default branch, which is
main, so a schedule onv1would never run.The job: a
Prune per-commit imagesjob runs after an image-affectingv1push has published its images. It isn't a required check and never gates the push.What it keeps: the images of the ten most recent commits, which the staging workflow promotes from, and the
provisionplaceholder.What it deletes:
Releases are unaffected: promotion copies each image into its own
v1/<image>package.Permission: deleting package versions needs the workflow's admin role on the package. GitHub's support for workflow deletions is in public preview. Without the role, the job warns and stops.
Docs:
docs/contributing/releases.mdasks for the Admin role onv1-ci(Write stays for the release packages), and no longer says an organization administrator must create the packages, since whoever creates a package administers it.docs/contributing/testing.mddescribes the job.Validation
actionlintis clean, andfern checkreported 0 errors.v1-cipackage with my token, deleting nothing:provision;v1push after merge.After merge,
nemoclaw/v1-ci's Actions access forNVIDIA/NemoClawneeds the Admin role.