Skip to content

fix: configurable part size#1116

Merged
ferhatelmas merged 2 commits into
masterfrom
ferhat/100mb
May 21, 2026
Merged

fix: configurable part size#1116
ferhatelmas merged 2 commits into
masterfrom
ferhat/100mb

Conversation

@ferhatelmas
Copy link
Copy Markdown
Member

What kind of change does this PR introduce?

Bug fix

What is the current behavior?

No configuration for part size.

What is the new behavior?

Environment configurable part size

Copilot AI review requested due to automatic review settings May 21, 2026 07:53
@ferhatelmas ferhatelmas requested a review from a team as a code owner May 21, 2026 07:53
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

Adds an environment-configurable multipart upload partSize for the S3 backend, wiring a new config value through getConfig() into the AWS SDK Upload usage so operators can tune multipart behavior without code changes.

Changes:

  • Introduces storageS3UploadPartSize config (env: STORAGE_S3_UPLOAD_PART_SIZE) with a default (16MiB) and a minimum clamp (5MiB).
  • Passes the configured partSize into @aws-sdk/lib-storage’s Upload constructor for multipart uploads.
  • Updates S3 backend unit tests to assert partSize is passed through (default path).

Reviewed changes

Copilot reviewed 3 out of 3 changed files in this pull request and generated 1 comment.

File Description
src/storage/backend/s3/adapter.ts Plumbs new config value into AWS multipart Upload partSize.
src/storage/backend/s3/adapter.test.ts Adds assertions that Upload receives partSize (currently only default covered).
src/config.ts Adds storageS3UploadPartSize config parsing with default + minimum clamp.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread src/storage/backend/s3/adapter.test.ts
@coveralls
Copy link
Copy Markdown

coveralls commented May 21, 2026

Coverage Report for CI Build 26215966261

Coverage decreased (-0.006%) to 74.98%

Details

  • Coverage decreased (-0.006%) from the base build.
  • Patch coverage: 2 of 2 lines across 1 file are fully covered (100%).
  • No coverage regressions found.

Uncovered Changes

No uncovered changes found.

Coverage Regressions

No coverage regressions found.


Coverage Stats

Coverage Status
Relevant Lines: 10361
Covered Lines: 8181
Line Coverage: 78.96%
Relevant Branches: 5994
Covered Branches: 4082
Branch Coverage: 68.1%
Branches in Coverage %: Yes
Coverage Strength: 369.89 hits per line

💛 - Coveralls

@fenos fenos enabled auto-merge (squash) May 21, 2026 08:48
@ferhatelmas ferhatelmas disabled auto-merge May 21, 2026 08:50
Signed-off-by: ferhat elmas <elmas.ferhat@gmail.com>
@ferhatelmas ferhatelmas merged commit 934a3e4 into master May 21, 2026
19 checks passed
@ferhatelmas ferhatelmas deleted the ferhat/100mb branch May 21, 2026 08:58
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.

4 participants