Repository navigation
app/: the CI API's builds, against today's answers (sc-8900) - #62
Merged
Merged
Conversation
ndbroadbent
force-pushed
the
laravel-api
branch
from
December 2, 2026 13:31
16b1219 to
271079d
Compare
VisualCIdocspring/visualci · build #276 · 331 unchanged · no changes This PR vs base: nothing since #217, across 4 builds Updated as builds change. Agents can review with VisualCI's MCP tools. |
ndbroadbent
force-pushed
the
laravel-ingest
branch
from
December 2, 2026 13:53
a3db8b0 to
68a31ab
Compare
ndbroadbent
force-pushed
the
laravel-api
branch
from
December 2, 2026 13:55
271079d to
47be2d2
Compare
ndbroadbent
added a commit
that referenced
this pull request
Dec 2, 2026
…keys whose deletes would scan (baselines.review_id and approved_by, builds.created_by_user_id, comments.user_id, comment_threads.resolved_by); credit_transactions.build_id and a gallery day key; snapshot registration as one conditional upsert (a race between two files is a 409 for one of them), resetting a carried row; limits on commits, parent commits, branch, name, nonce, content type and meta; every snapshot validated before any is written; today's 401 messages; the personal organization takes the next slug on a race; credits::usage, plans, allowance and spend
ndbroadbent
force-pushed
the
laravel-api
branch
from
December 2, 2026 14:16
47be2d2 to
8a4aca5
Compare
…nonces, environments, visualci.yml, warnings), GET /api/v1/builds/{id}, POST …/snapshots (validation, the 409 for other content, render reuse, presigned uploads, group keys), POST …/finalize (shards, allow_empty, empty_reason); today's error JSON; per-build settings, blob records and the credit ledger ported; tests against today's answers (tests/golden, recorded from the Loco server's request tests)
ndbroadbent
force-pushed
the
laravel-api
branch
from
December 2, 2026 14:48
8a4aca5 to
cb7fee4
Compare
ndbroadbent
added a commit
that referenced
this pull request
Dec 2, 2026
…keys whose deletes would scan (baselines.review_id and approved_by, builds.created_by_user_id, comments.user_id, comment_threads.resolved_by); credit_transactions.build_id and a gallery day key; snapshot registration as one conditional upsert (a race between two files is a 409 for one of them), resetting a carried row; limits on commits, parent commits, branch, name, nonce, content type and meta; every snapshot validated before any is written; today's 401 messages; the personal organization takes the next slug on a race; credits::usage, plans, allowance and spend
ndbroadbent
added a commit
that referenced
this pull request
Dec 2, 2026
…keys whose deletes would scan (baselines.review_id and approved_by, builds.created_by_user_id, comments.user_id, comment_threads.resolved_by); credit_transactions.build_id and a gallery day key; snapshot registration as one conditional upsert (a race between two files is a 409 for one of them), resetting a carried row; limits on commits, parent commits, branch, name, nonce, content type and meta; every snapshot validated before any is written; today's 401 messages; the personal organization takes the next slug on a race; credits::usage, plans, allowance and spend
ndbroadbent
added a commit
that referenced
this pull request
Dec 2, 2026
…keys whose deletes would scan (baselines.review_id and approved_by, builds.created_by_user_id, comments.user_id, comment_threads.resolved_by); credit_transactions.build_id and a gallery day key; snapshot registration as one conditional upsert (a race between two files is a 409 for one of them), resetting a carried row; limits on commits, parent commits, branch, name, nonce, content type and meta; every snapshot validated before any is written; today's 401 messages; the personal organization takes the next slug on a race; credits::usage, plans, allowance and spend
ndbroadbent
added a commit
that referenced
this pull request
Dec 2, 2026
…keys whose deletes would scan (baselines.review_id and approved_by, builds.created_by_user_id, comments.user_id, comment_threads.resolved_by); credit_transactions.build_id and a gallery day key; snapshot registration as one conditional upsert (a race between two files is a 409 for one of them), resetting a carried row; limits on commits, parent commits, branch, name, nonce, content type and meta; every snapshot validated before any is written; today's 401 messages; the personal organization takes the next slug on a race; credits::usage, plans, allowance and spend
ndbroadbent
added a commit
that referenced
this pull request
Dec 2, 2026
…71) * app/: review fixes for #54 and #62 (sc-8900): indexes on the foreign keys whose deletes would scan (baselines.review_id and approved_by, builds.created_by_user_id, comments.user_id, comment_threads.resolved_by); credit_transactions.build_id and a gallery day key; snapshot registration as one conditional upsert (a race between two files is a 409 for one of them), resetting a carried row; limits on commits, parent commits, branch, name, nonce, content type and meta; every snapshot validated before any is written; today's 401 messages; the personal organization takes the next slug on a race; credits::usage, plans, allowance and spend * app/: the renderer version comes from RENDERER_VERSION, as production's server image sets it; build output under app/target/ is no longer tracked
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.
Stacked on #59 (storage), which is on #54 (domain tables).
Endpoints, with today's request bodies, answers and error JSON (
{"error": …, "description": …}, and a 422invalid bodyfor an unreadable or unknown field):POST /api/v1/builds: numbering under a project lock, nonces for shards, environments,visualci.ymlvalidation, warnings for a ci_mode the file can't loosen and for a build from another repository.GET /api/v1/builds/{id}.POST /api/v1/builds/{id}/snapshots:group_keyfrom the build's grouping.POST /api/v1/builds/{id}/finalize: shards,allow_emptyandempty_reason.ApiProjectresolves the request's project from a project token, or from a personal token plusX-VisualCI-Project(members and admins).Domain, ported:
visualci.ymlover the project);add_creditsandadd_purchased_credits, for subdomains' billing.The contract.
tests/goldenholds the 129 answers today's Loco request tests record (VISUALCI_JSON_SNAPSHOTS).tests/golden/mod.rschecks a response against one with the same placeholders. The API tests here match today'spost-builds,post-snapshotsandpost-snapshots-invalid-kind.Not yet:
compare, groups, the snapshot list, downloads;blocked, the credits notice, which lands with charging in the processing slice (it's null meanwhile).Tests: all of
cargo testpasses, and clippy is clean.