Repository navigation
Bulk download of a build's images as one tar.zst: API and MCP (sc-8869, part 1) - #47
Merged
Merged
Conversation
VisualCIdocspring/visualci · build #195 · 2 changed, 329 unchanged · approved by visualci coordinator agent (MCP) for Nathan Broadbent
This PR vs base: 6 changed since #171, across 4 builds
Updated as builds change. Agents can review with VisualCI's MCP tools. |
ndbroadbent
force-pushed
the
sc-8869
branch
2 times, most recently
from
December 2, 2026 12:38
d6dc131 to
33c96fd
Compare
…OST /api/v1/builds/{id or number}/downloads and GET /api/v1/downloads/{id}, MCP download_build (waits up to a minute, returns a URL and a summary); filtered by state, sides (base, head, diff, regions) and a name glob; a worker streams the archive to the bucket in parts (2 GB cap), reused within the hour, pruned after a day by retention:prune; visualci-core::bundle (streaming tar.zst writer, safe unpack, for_each_entry) shared with sc-8868; downloads table (migration 000048); docs; CLI 0.2.17; plugin 0.1.45
ndbroadbent
added a commit
that referenced
this pull request
Dec 2, 2026
ndbroadbent
added a commit
that referenced
this pull request
Dec 2, 2026
* app/: the domain tables and models (sc-8900, the data side): organizations, memberships, projects, builds, snapshots, pages, texts (lz4), build groups with the effective_snapshots view, baselines, renders, diffs, blobs, reviews, comments and the credit ledger, as docs/design-storage.md lays them out with its indexes; JSON arrays where Laravel Rust 0.1.4 has no PostgreSQL arrays; project tokens belong to a project; test fixtures; the auth tests use real rows * app/: a new account gets its own organization (named after its forge login, numbered when taken) with its admin membership and a default project: the SignedUp listener * app/: the downloads table (sc-8869, #47) in the domain baseline, with its model
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.
Part 1 of sc-8869: a build's images as one tar.zst, for reviewing big builds (pdf_engine's 3,600 images) on disk or with checks of your own. The CLI command and the web button follow in their own PRs.
visualci-core::bundle(thebundlefeature, so the wasm build doesn't compile zstd's C), shared with sc-8868's bundle upload:Writer;unpackinto a directory, refusing absolute paths and.., and skipping links;for_each_entry, which yields path and bytes one at a time with a per-entry size cap.downloadstable (migration 000043). A worker builds each archive and streams it to the bucket as a multipart upload in 16 MiB parts.<name>[@platform][/page-N]/{base,head,diff,regions}.pngplusmanifest.json.regionsis the head cropped to the changed regions.retention:prunedeletes downloads older than a day, with their archives, under its existing heartbeat.POST /api/v1/builds/{id or number}/downloads(state,sides,glob) andGET /api/v1/downloads/{id}. A ready download has aurlthat lasts an hour.download_buildwaits up to a minute, then returns the URL, files, size and a summary, never image bytes. When it's stillbuilding, call again.contact_sheetto scan, then download) and the API reference. CLI 0.2.16, plugin 0.1.41.Tests (on docspring-dev, against MinIO):
a_builds_changed_images_download_as_one_archive: the glob and state filter, the files written, the regions crop, the manifest, reuse within the hour, a bad filter refused, and pruning deleting the archive.another_projects_token_can_not_download_a_build.for_each_entry.Clippy and fmt are clean.