Repository navigation
app/: renderer API, bulk downloads, public gallery and retention (sc-8900) - #81
Merged
Merged
Conversation
ndbroadbent
force-pushed
the
laravel-render
branch
from
December 2, 2026 15:31
0c60d4f to
df066e3
Compare
ndbroadbent
force-pushed
the
laravel-read
branch
from
December 2, 2026 15:31
775c0dc to
d731f76
Compare
ndbroadbent
force-pushed
the
laravel-render
branch
from
December 2, 2026 15:35
df066e3 to
b0e5464
Compare
ndbroadbent
force-pushed
the
laravel-read
branch
from
December 2, 2026 15:35
d731f76 to
2252452
Compare
VisualCIdocspring/visualci · build #392 · 333 unchanged · no changes This PR vs base: 22 changed, 2 added since #306, across 7 builds Updated as builds change. Agents can review with VisualCI's MCP tools. |
ndbroadbent
added a commit
that referenced
this pull request
Dec 2, 2026
… 2,000, bounded sizes, hex fingerprints, capped text) and takes only PNGs this render uploaded, proving an already stored one by uploading it to a key of its own; more than 5,000 uploads refused; claims match RENDERER_VERSION exactly, which is required; a render out of attempts fails at the next claim and its builds go on
ndbroadbent
added a commit
that referenced
this pull request
Dec 2, 2026
…er project (a 429 past it), building claimed with one conditional update so it runs once, a 14-minute limit on writing the archive, and snapshot names that become the same path get their own directories (a_b, a_b~2)
ndbroadbent
added a commit
that referenced
this pull request
Dec 2, 2026
…om Cloudflare's ranges (configurable), behind the cluster's trusted proxies; at most 50,000 credits per project a day; published galleries cached while their newest build and baseline stay the same; purges cover screenshots that dropped out, alert when they use up their tries (gallery_purges_failed in /status), and gallery::purge_project for turning a gallery off
ndbroadbent
added a commit
that referenced
this pull request
Dec 2, 2026
…day keeps its overlay (diffs.used_at); registering renews a blob, which isn't marked for a day after; a marked blob something names again is kept; and no deleting mark outlives its run (cleared after each batch and at the start of a run)
ndbroadbent
force-pushed
the
laravel-read
branch
from
December 2, 2026 16:05
2252452 to
e64c946
Compare
ndbroadbent
force-pushed
the
laravel-render
branch
from
December 2, 2026 16:05
191c747 to
d87e621
Compare
ndbroadbent
added a commit
that referenced
this pull request
Dec 2, 2026
…day keeps its overlay (diffs.used_at); registering renews a blob, which isn't marked for a day after; a marked blob something names again is kept; and no deleting mark outlives its run (cleared after each batch and at the start of a run)
ndbroadbent
added a commit
that referenced
this pull request
Dec 2, 2026
… 2,000, bounded sizes, hex fingerprints, capped text) and takes only PNGs this render uploaded, proving an already stored one by uploading it to a key of its own; more than 5,000 uploads refused; claims match RENDERER_VERSION exactly, which is required; a render out of attempts fails at the next claim and its builds go on
ndbroadbent
added a commit
that referenced
this pull request
Dec 2, 2026
…er project (a 429 past it), building claimed with one conditional update so it runs once, a 14-minute limit on writing the archive, and snapshot names that become the same path get their own directories (a_b, a_b~2)
ndbroadbent
force-pushed
the
laravel-read
branch
from
December 2, 2026 16:25
e64c946 to
b127bf4
Compare
ndbroadbent
added a commit
that referenced
this pull request
Dec 2, 2026
…om Cloudflare's ranges (configurable), behind the cluster's trusted proxies; at most 50,000 credits per project a day; published galleries cached while their newest build and baseline stay the same; purges cover screenshots that dropped out, alert when they use up their tries (gallery_purges_failed in /status), and gallery::purge_project for turning a gallery off
ndbroadbent
added a commit
that referenced
this pull request
Dec 2, 2026
…day keeps its overlay (diffs.used_at); registering renews a blob, which isn't marked for a day after; a marked blob something names again is kept; and no deleting mark outlives its run (cleared after each batch and at the start of a run)
ndbroadbent
force-pushed
the
laravel-render
branch
from
December 2, 2026 16:25
4ec0ca8 to
921b45c
Compare
ndbroadbent
force-pushed
the
laravel-read
branch
from
December 2, 2026 16:52
b127bf4 to
bbfb172
Compare
ndbroadbent
force-pushed
the
laravel-render
branch
2 times, most recently
from
December 2, 2026 20:28
690255f to
c1e784a
Compare
ndbroadbent
force-pushed
the
laravel-read
branch
from
December 2, 2026 20:28
bbfb172 to
0ba68db
Compare
ndbroadbent
force-pushed
the
laravel-render
branch
from
December 2, 2026 20:39
c1e784a to
ee2d05d
Compare
ndbroadbent
force-pushed
the
laravel-read
branch
2 times, most recently
from
December 2, 2026 20:52
3e184b9 to
b00fdbd
Compare
…mpletion that wakes the project's waiting builds; every route checks its token whatever the Host
…ber}/downloads and GET /api/v1/downloads/{id}, read through effective_snapshots and pages::of_many; multipart uploads in the blob store
…om BuildChanged, and gallery credits as one row per project and day
…es unreferenced texts after a day) and the nightly check that no group resolves to no rows, as scheduled commands with heartbeats
…t; /status counts groups with no rows; downloads crop with mcp::images
… test's body on the heap; domain modules in order
…names (a build registering while a prune runs isn't in its keep sets), and an object whose blob row came back after the delete
… 2,000, bounded sizes, hex fingerprints, capped text) and takes only PNGs this render uploaded, proving an already stored one by uploading it to a key of its own; more than 5,000 uploads refused; claims match RENDERER_VERSION exactly, which is required; a render out of attempts fails at the next claim and its builds go on
…b is marked before its object goes and its row only while still marked, and registering it again clears the mark and asks for the file; reused renders' images and texts, and texts stored again, stay a day
…er project (a 429 past it), building claimed with one conditional update so it runs once, a 14-minute limit on writing the archive, and snapshot names that become the same path get their own directories (a_b, a_b~2)
…om Cloudflare's ranges (configurable), behind the cluster's trusted proxies; at most 50,000 credits per project a day; published galleries cached while their newest build and baseline stay the same; purges cover screenshots that dropped out, alert when they use up their tries (gallery_purges_failed in /status), and gallery::purge_project for turning a gallery off
…n and version, which production requires
…day keeps its overlay (diffs.used_at); registering renews a blob, which isn't marked for a day after; a marked blob something names again is kept; and no deleting mark outlives its run (cleared after each batch and at the start of a run)
…ngth), so it takes exactly that many bytes
… its own: a snapshot named like another's page (x/page-2) or file (x/head.png) is suffixed ~2
…mes as a page image, checked again under the row's lock
…for an alert on a rise
ndbroadbent
force-pushed
the
laravel-render
branch
from
December 2, 2026 21:03
ee2d05d to
d7607f5
Compare
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.
Ports the renderer API, bulk downloads, the public gallery and retention to the Laravel Rust app (sc-8900). Based on
laravel-read.Renderer API (
/internal/renderer/…: metrics, claim, a render's uploads, complete)METRICS_TOKEN; empty turns them off). The renderer token doesn't read metrics, and the metrics token doesn't claim renders.X-Render-Token).ProcessBuildfor the processing builds of the render's project (project_id), not by scanningsource_fingerprint.Bulk downloads (
POST /api/v1/builds/{id or number}/downloads,GET /api/v1/downloads/{id})effective_snapshotsand pages throughpages::of_many, so a build that reads groups from another build downloads them too.BlobStore). It's built by thedownloads.buildjob, and a download is reused within the hour.Public gallery (
/g/<org>/<project>.json,/g/<org>/<project>/<path>)galleryrow per organization, project and UTC day, added to with an upsert on the unique index. Not one row per image.BuildChangedlistener queues thegallery.purgejob when Cloudflare is configured.Retention (
retention:prune, daily)build_groups.source_build_id) before keeping snapshots, renders and blobs from them.groups:check(nightly) fails when a sourced group resolves to no rows./statusreports the count asempty_groups.VISUALCI_RETENTION_HEARTBEATandVISUALCI_GROUPS_CHECK_HEARTBEAT. Expiry is the builds sweep that's already there.Tests:
tests/renderer.rs,tests/downloads.rs,tests/gallery.rs,tests/retention.rs. The full app suite passes with--lockedon docspring-dev; clippy and fmt are clean.Not ported: the email sweep from today's
builds:expire(notify::deliver_pending), which belongs to the emails side.