-
Notifications
You must be signed in to change notification settings - Fork 203
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
@tus/s3-store: fix unhandled promise rejection #728
Conversation
🦋 Changeset detectedLatest commit: 7b3f8de The changes in this PR will be included in the next version bump. This PR includes changesets to release 1 package
Not sure what this means? Click here to learn what changesets are. Click here if you're a maintainer who wants to add another changeset to this PR |
WalkthroughThe PR patches the S3Store module by improving error and promise management during multipart uploads. It ensures that upload part failures are fully handled by explicitly destroying streams, catching errors during permit releases, and waiting for all promises to settle. Additionally, the PR introduces a pretest script to compile TypeScript files before running tests and updates test cases (including syntax refactoring and an added failure scenario) to improve coverage. Changes
Possibly related PRs
📜 Recent review detailsConfiguration used: .coderabbit.yml 📒 Files selected for processing (4)
🔇 Additional comments (9)
✨ Finishing Touches
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. 🪧 TipsChatThere are 3 ways to chat with CodeRabbit:
Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments. CodeRabbit Commands (Invoked using PR comments)
Other keywords and placeholders
Documentation and Community
|
I also have fix for this. I will create draft PR so we can compare solutions. |
Sounds good, this is not done yet anyway |
@mitjap I want to release the major version soon. Should I take this over the finish line, do a release, and then a major release or are you showing your version soon? |
* main: [ci] release (#721) @tus/s3-store: fix unhandled promise rejection (#728) Bump @aws-sdk/client-s3 from 3.717.0 to 3.758.0 (#733) Bump @types/node from 22.10.1 to 22.13.7 (#734) Bump typescript from 5.6.2 to 5.8.2 (#731) @tus/azure-store: fix non-ASCII characters error on metadata (#725) Fix package-lock.json
Ref: #722
Referencing the issue instead of closing it as it also discusses letting stores handle context cancellation (which frees a lock) instead of handlers. I'm not sure whether this is needed yet so not closing the issue but this PR does fix a bug.