Repository navigation
perf(upload): skip the second validation of a capture web folder, store PNGs in the zip - #121
Merged
Merged
Conversation
…re PNGs in the zip Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
epinnock
marked this pull request as ready for review
November 15, 2026 15:22
…config, tests Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
Merged
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.
What
capture webwrites<dir>.scry-validated.json(outside the bundle) after its validation passes: sorted file list with size and mtime, sha256 of scf.json, deployer version, vendored validator version.upload DIRrecomputes that fingerprint (stat walk + one file read, ~60 ms on 1,728 stories) and skips its validation only on an exact match AND when staging left scf.json byte-identical. No record, any change, another deployer/validator version, a .zip input or--include-sourceruns the full validation. New--validateforces it. The log says which path ran.scry-build-processing-service/src/pipeline/zip-safety.tsinflateStoredEntry, and its archiver-compat test covers STORED).Measured (E6, full1728 real capture, 3,457 files, this box)
upload DIR --dry-run--validateNote: the zip is 7.7 MB larger. At the roughly 1 MB/s uplink in the report that costs about 7 s of PUT, about what the zip saves. The gain from the zip part depends on the runner's uplink.
Release: no behaviour change
🤖 Generated with Claude Code