Repository navigation
CLI: fingerprint snapshots on every core, and --verbose timings (sc-8999) - #109
Merged
Merged
Conversation
Member
Author
|
Closing without merging: the CLI won't decode images at all. It will hash files and the server will fingerprint them, after the cutover (sc-8999). No 0.2.18 release. |
Member
Author
|
Reopened: we're keeping this after all, since it's already built. The server-side fingerprinting is still planned for after the cutover (sc-8999). |
…mings (sc-8999) visualci upload decoded each PNG one at a time to fingerprint it: 68 s for 144 unchanged screenshots on our CI. client::registrations now fingerprints a batch across the machine's cores (std::thread::scope over chunks), in order, with the first failing file's error as before; the large-suite group check does the same. --verbose prints the time for hashing, each API call and the uploads. CLI 0.2.18.
ndbroadbent
force-pushed
the
cli-parallel-fingerprint
branch
from
December 3, 2026 04:00
0a88a86 to
81aad91
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.
visualci uploaddecoded every PNG one at a time to fingerprint it (image_hash::fingerprint_bytes): 68 s for 144 unchanged screenshots on our CI.client::registrationsdecodes and fingerprints a batch across the machine's cores (std::thread::scopeover chunks, no new dependency). Results keep the snapshots' order, and an unreadable file gives the same error as before (the first one in order).add_snapshotsuses it per 500-snapshot batch, so memory use is unchanged.send_snapshots, 500+ snapshots) hashes in parallel the same way.--verbose(global) prints how long hashing, each API call and the uploads take. Documented in the CLI reference.parallel_registrations_match_the_sequential_onesbuilds 40 distinct PNGs plus text and inline snapshots, checks the parallel results equal the sequentialregistrationcalls exactly, and checks the error names the first missing file.Part 2 (the server telling the CLI which sha256s it already has, so unchanged files skip decoding) needs app/ and waits until after the cutover.
Also removes a doc comment on
loginthat was repeated three times on one line.Open in [code]smith · Need help on this PR? Tag
@codesmith-botwith what you need.