Repository navigation
app/: processing builds, with groups read from the build that holds them (sc-8900) - #73
Merged
Merged
Conversation
VisualCIdocspring/visualci · build #375 · 331 unchanged · no changes This PR vs base: nothing since #248, across 8 builds Updated as builds change. Agents can review with VisualCI's MCP tools. |
ndbroadbent
force-pushed
the
laravel-process
branch
from
December 2, 2026 14:48
5765590 to
a5a5183
Compare
ndbroadbent
force-pushed
the
laravel-review-fixes
branch
from
December 2, 2026 14:48
80bb73e to
bae5d1f
Compare
ndbroadbent
added a commit
that referenced
this pull request
Dec 2, 2026
…hort transaction of its own and stops for credits outside any, so the organization's row isn't locked through a run and billing's listeners see committed data; a failed run keeps what it charged; the builds sweep every five minutes (expire abandoned builds, close idle local ones, run again builds processing with no progress for 10 minutes, fail them after 6 hours) with a heartbeat; GET /status with the data side's numbers
ndbroadbent
force-pushed
the
laravel-review-fixes
branch
from
December 2, 2026 15:16
bae5d1f to
8dc1a78
Compare
ndbroadbent
force-pushed
the
laravel-process
branch
from
December 2, 2026 15:16
6ba4dd6 to
d5d26f4
Compare
ndbroadbent
force-pushed
the
laravel-review-fixes
branch
from
December 2, 2026 15:31
8dc1a78 to
1781ab2
Compare
ndbroadbent
force-pushed
the
laravel-process
branch
2 times, most recently
from
December 2, 2026 15:35
af8746d to
a46b226
Compare
ndbroadbent
force-pushed
the
laravel-review-fixes
branch
from
December 2, 2026 16:05
1e9be20 to
fb2e492
Compare
ndbroadbent
force-pushed
the
laravel-process
branch
from
December 2, 2026 16:05
a46b226 to
bf06f21
Compare
ndbroadbent
force-pushed
the
laravel-review-fixes
branch
from
December 2, 2026 16:22
fb2e492 to
22232f1
Compare
ndbroadbent
force-pushed
the
laravel-process
branch
from
December 2, 2026 16:25
bf06f21 to
1866f91
Compare
ndbroadbent
force-pushed
the
laravel-review-fixes
branch
from
December 2, 2026 16:46
22232f1 to
03a6547
Compare
ndbroadbent
force-pushed
the
laravel-process
branch
from
December 2, 2026 16:52
1866f91 to
4bf084a
Compare
…ince, merged pull requests), comparison page by page with page rows only for changes and texts by hash, renders and diffs cached by content, the visualci.yml item, the matching hint, carry-forward, groups read from the build that holds them (before writing, and after comparison for unchanged groups), conclude, charging per build with a group check as one credit, the out-of-credits stop, expire_abandoned; the ProcessBuild job (one run per build at a time, debounced); POST …/groups, …/compare and GET …/snapshots; BuildChanged, CreditsSpent, CreditsRanOut and BuildStoppedForCredits events for the other side's listeners
…hort transaction of its own and stops for credits outside any, so the organization's row isn't locked through a run and billing's listeners see committed data; a failed run keeps what it charged; the builds sweep every five minutes (expire abandoned builds, close idle local ones, run again builds processing with no progress for 10 minutes, fail them after 6 hours) with a heartbeat; GET /status with the data side's numbers
…ule (crate::heartbeat, on main)
…olders joins the holder build on the project), with a test
ndbroadbent
force-pushed
the
laravel-process
branch
from
December 2, 2026 20:28
4bf084a to
3673a53
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.
Stacked on #71 (review fixes), on #62 (build API), on #59 (storage).
Processing a finalized build (
domain::processing::process, run by theProcessBuildjob):domain::baselines): the anchor build, approvals since, merged pull requests. Every build is read througheffective_snapshots.domain::compare). Page rows are stored only when the comparison found something, and texts are stored by hash (domain::pages).build_id, and a group check (or a whole manifest) counts as one credit. Then the out-of-credits stop: billing'sCreditsRanOutlisteners get a chance to reload first.API:
POST …/groups,POST …/compare(early comparison for local runs) andGET …/snapshots. Build creation first gives up on the project's abandoned builds (expire_abandoned, as today).Job:
ProcessBuildruns one at a time per build (advisory lock), in one transaction, debounced per build (3 s, at most 30 s), so a build's renders finishing together trigger one run.Events for subdomains' listeners:
BuildChanged,CreditsSpent,CreditsRanOut,BuildStoppedForCredits.Tests (
tests/processing.rs, against RustFS):The whole suite passed ten times in a row. That's after fixing a flake: the blob store's HTTP client is now one per application from the container, because a process-wide client failed once a test's runtime ended (fixed in #59).
Not here: the read paths (build and snapshot detail, review, comments) and MCP come next.