Repository navigation
Mirror: linux/amd64 copies only (12.3 GB → 1.3 GB), at the per-repo path; prune unlisted copies - #222
Open
ndbroadbent wants to merge 2 commits into
Open
ndbroadbent wants to merge 2 commits into
ndbroadbent wants to merge 2 commits into
Conversation
…ror; prune unlisted copies after a week crane copied every platform of each multi-arch image: 12.3 GB of private (billed) package storage for 1.3 GB CI uses (caddy alone 4.9 GB, mostly Windows images). mirror.txt now pins each source's linux/amd64 manifest, so only that is copied. The copies move to the per-repo path every DocSpring repo will use (<org>/<repo>/mirror/<name>, so each repo's workflow owns its packages); CI switches to them in a follow-up once this has run on main. A new step removes versions no longer listed once they're a week old.
…hen listing fails From review: a bump or rename would otherwise delete the copy main's ci.yml still pins (versions older than a week are judged by updated_at, not by when they stopped being listed). Also: say that removed lines' packages are deleted by hand, and that the copies are amd64-only.
ndbroadbent
added a commit
that referenced
this pull request
Dec 4, 2026
…og when it fails #217 didn't end the baselines flake: run 47389263799 (#222) still got NoSuchBucket on first uploads, after HEAD bucket had answered. Every failure was in the burst of concurrent creates as the one test binary starts, so the fixture now creates the bucket once per process (a tokio OnceCell), and a failed app job prints the store's log.
This branch has not been deployed
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.
Cuts the base-image mirror's private package storage (billed per GB-month beyond the org's included Packages storage) from about 12.3 GB to 1.3 GB. It also moves the mirror to the per-repo path that every DocSpring repo will use.
Why:
crane copyof a multi-arch index copies every platform. CI's runners only ever pull linux/amd64. Sizes per image, measured from Docker Hub's manifests:Changes:
.github/mirror.txt: each digest is now the source's linux/amd64 image manifest, so crane copies only that. It's still a content pin to the same bytes Docker Hub serves. The format is unchanged.ghcr.io/docspring/visualci/mirror/<name>(<org>/<repo>/mirror/<name>). Each repo's own workflow creates, and so owns, its packages, which gives it read access with no manual grants. The cigen coordinator asked for the same format, path and step names in every repo, so a later cigen module can generate them.mirror.yml: a new step, "Remove copies no longer listed", deletes package versions that aren't in the list once they're a week old. Branches still pinned to an old copy have time to rebase, and storage stops growing with each bump.What follows:
ghcr.io/docspring/mirror/*packages (the 12.3 GB).This PR changes only the mirror workflow and its list, so CI still pulls the current copies.
actionlint is clean.
Review fixes (second commit):
.github,scriptsordocker. Without that, a bump or rename could delete the copy main's ci.yml still pins: versions are aged byupdated_at, not by when they stopped being listed.