Blobs

Big, immutable things go to one store, src/blob/store.ts (step 2 of #4481). Its keys are paths and its contents are bytes; it has no other idea of structure. The refs and metadata that name those bytes stay in the database.

Two shapes, one store

s3Store (any S3-compatible endpoint: R2, S3, B2) and dirStore are both BlobStores. withRetries keeps one a BlobStore: sizes, ranges and opening a stream are retried the way a get is, and a Blob put gets a deadline that follows its size.

At the boundary

A key with .. or . segments, a leading / or a control byte is refused. So is a range that is not whole, non-negative bytes in order, and a presign that is not a GET or PUT valid for 1 s to 7 days. The bucket's secret never appears in a presigned URL; only its signature does.

Not here yet

Archiving finished run logs and attachments onto the store, big git blobs by OID and the cold-tier lifecycle are later steps of #4481, each with its own issue.

↑↓ navigate ↵ open ⌘↵ its app esc close

Keyboard shortcuts

Docs