Repository navigation
Large suites: manifest and group hashes, charged per group (sc-8868, part 1) - #46
Merged
Merged
Conversation
…ore::manifest), POST /builds/:id/groups compares them with the baseline's from the server's own rows, matched groups (or the whole run) are carried forward at 1 credit per group, changed groups sent and charged as usual; the CLI does it for runs of 500+ (group_depth in visualci.yml, VISUALCI_GROUPS); groups can't span shards; the build page and get_build show unchanged groups; credits docs, pricing and comparison examples; migration 000042; CLI 0.2.15
…ps unchanged since #8."), the how in a (?) tooltip; the CLI says the same
ndbroadbent
force-pushed
the
group-hashes
branch
from
December 2, 2026 10:58
02e4efb to
037c138
Compare
VisualCIdocspring/visualci · build #172 · 6 changed, 325 unchanged · approved by visualci coordinator agent (MCP) for Nathan Broadbent
This PR vs base: 6 changed since #171, across 1 build Updated as builds change. Agents can review with VisualCI's MCP tools. |
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.
sc-8868, part 1 of 2: manifest and group hashes for large suites, charged per group checked (Nathan: "1 credit per group hash checked").
How it works:
VISUALCI_GROUPSoverrides) first sendsPOST /api/v1/builds/:id/groups: a hash of the whole run and one per group of names. A name's group is its path without the last two segments, or its firstgroup_depthsegments (a new visualci.yml field).visualci_core::manifestover (name, platform, kind, fingerprint, threshold, anti-aliasing, engine, format, ignore rules). The CLI builds its entries from the same registration it sends (client::registration,entry_of), normalized as the server stores them.baselines::resolve), never from a client's claim. A claimed hash with no matching baseline rows is a changed group.build_groupsand answers which groups differ. The CLI sends only those groups' files.carried_forward, not charged per snapshot). A whole-run match (builds.manifest_same_as_build_id) carries everything. Every reader sees a complete build, so baselines, review, the gallery and PR comments are unchanged. A name missing from a changed group is still "removed".CREDITS_PER_GROUP_CHECK = 1per matched group, 1 for a matched run, and changed groups' snapshots as usual (Usage.groups_checked, "N groups checked" in the ledger).get_buildhas the samegroupsobject.build_groups,builds.group_depthandbuilds.manifest_same_as_build_id. CLI 0.2.15.Tests (with MinIO, on docspring-dev):
On the dev server (visualci/demo, 600 screenshots in 30 groups, through the CLI):
Images load from outside; both pages fit at 1440 and 390.
Next (part 2):
effective_snapshotsview,build_groups.source_build_id(one hop), and a nightly check for builds or groups that resolve to no rows;Review: the landing page's pricing text changes (one sentence), and so do the comparison pages and llms.txt text; the build page has a new notice only on grouped builds, which aren't captured.