Skip to content

refactor(libstore): add sizeHint parameter to upsertFile()#14333

Merged
Ericson2314 merged 1 commit intoNixOS:masterfrom
lovesegfault:upsert-size-hint
Oct 24, 2025
Merged

refactor(libstore): add sizeHint parameter to upsertFile()#14333
Ericson2314 merged 1 commit intoNixOS:masterfrom
lovesegfault:upsert-size-hint

Conversation

@lovesegfault
Copy link
Member

Motivation

Add a sizeHint parameter to BinaryCacheStore::upsertFile() to enable
size-based upload decisions in implementations. This lays the groundwork
for reintroducing S3 multipart upload support.

Context

Part-Of: #14330


Add 👍 to pull requests you find important.

The Nix maintainer team uses a GitHub project board to schedule and track reviews.

@github-actions github-actions bot added the store Issues and pull requests concerning the Nix store label Oct 23, 2025
@lovesegfault lovesegfault changed the title refactor(libstore): add optional sizeHint parameter to upsertFile() refactor(libstore): add sizeHint parameter to upsertFile() Oct 23, 2025
@lovesegfault lovesegfault requested a review from xokdvium October 23, 2025 03:55
Copy link
Member

@edolstra edolstra left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM other than the function argument issue.

Add a sizeHint parameter to BinaryCacheStore::upsertFile() to enable
size-based upload decisions in implementations. This lays the groundwork
for reintroducing S3 multipart upload support.
@Ericson2314 Ericson2314 enabled auto-merge October 24, 2025 19:20
@Ericson2314 Ericson2314 added this pull request to the merge queue Oct 24, 2025
Merged via the queue into NixOS:master with commit 1a9ba0d Oct 24, 2025
16 checks passed
@lovesegfault lovesegfault deleted the upsert-size-hint branch October 24, 2025 20:15
@edolstra edolstra mentioned this pull request Dec 9, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

store Issues and pull requests concerning the Nix store

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants