Skip to content

perf: compute artifact checksums in the publishing CLI - #6

Merged
oglassdev merged 1 commit into
mainfrom
perf/client-artifact-checksums
Sep 21, 2026
Merged

oglassdev merged 1 commit into
mainfrom
perf/client-artifact-checksums

Conversation

@oglassdev

@oglassdev oglassdev commented Sep 21, 2026 •

Copy link
Copy Markdown
Contributor

Publishing currently makes the Worker reread every artifact from R2 and compute four hashes, consuming CPU proportional to artifact size. Compute all four hashes in the Go proxy's existing spooling pass and submit them with each upload instead. Completion checks stored size and multipart completeness without reading the artifact body; generated Maven metadata is still hashed by the Worker.

Artifact hashes are publisher-provided declarations. Single-part uploads retain R2 SHA-256 validation; multipart hashes are not independently verified. Retry declarations must keep their size and all hashes, and existing immutable release objects are never replaced by an identical declared retry. Clients and the Worker must be upgraded together; older pending publications must be restarted.

Validation: just ready passed (26 Worker tests, Go race tests, formatting, lint, type checks, and builds). Worker tests and type checking passed again after simplifying metadata hashing. Tests cover all four CLI digests, checksum serving, generated metadata hashes, invalid declarations, retry conflicts, stored-size mismatch, and multipart completion without body reads. Free-tier deployment still requires workload validation and removal of the paid CPU setting.


View with [code]smith Autofix with [code]smith
Need help on this PR? Tag @codesmith with what you need. Autofix is disabled.

@oglassdev
oglassdev merged commit c497b2c into main Sep 21, 2026
1 of 3 checks passed
@oglassdev
oglassdev deleted the perf/client-artifact-checksums branch September 21, 2026 05:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant