-
Notifications
You must be signed in to change notification settings - Fork 816
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
perf: fulfill promises to upload files to S3 concurrently #4575
perf: fulfill promises to upload files to S3 concurrently #4575
Conversation
It looks like the original member of the open source community who created #4158 opened a PR of their own to resolve this issue: #4508. After taking a look at it, I'm not sure if their work is correct. I'd like to hear what everyone else thinks.
I confirmed through local testing with |
Codecov Report
@@ Coverage Diff @@
## master #4575 +/- ##
==========================================
- Coverage 61.57% 61.04% -0.53%
==========================================
Files 333 333
Lines 14550 14704 +154
Branches 2764 2782 +18
==========================================
+ Hits 8959 8976 +17
- Misses 5164 5299 +135
- Partials 427 429 +2
Continue to review full report at Codecov.
|
I am fine with closing my PR...it wasn't working, and I have had other stuff on my plate... |
packages/amplify-category-auth/provider-utils/awscloudformation/utils/trigger-file-uploader.js
Outdated
Show resolved
Hide resolved
packages/amplify-category-hosting/lib/S3AndCloudFront/helpers/file-uploader.js
Outdated
Show resolved
Hide resolved
55184fe
to
37333cf
Compare
…s-amplify#4575)" This reverts commit 96d1914.
* feat(amplify-provider-awscloudformation): add region ca-central-1 * fix test * Revert "Add region ca-central-1 (#4796)" This reverts commit c8b6bd8. * Revert "feat: add check for extra command line args provided with amplify delete (#4576)" This reverts commit 82d1093. * Revert "perf: fulfill promises to upload files to S3 concurrently (#4575)" This reverts commit 96d1914. * Revert "fix(cli): remove unnecessary stack trace log when adding services (#4610)" This reverts commit 5bee574. * Revert "fix test" This reverts commit 63c3c78. Co-authored-by: UnleashedMind <zhoweimi@186590ce137f.ant.amazon.com>
* feat(amplify-provider-awscloudformation): add region ca-central-1 * fix test * Revert "Add region ca-central-1 (aws-amplify#4796)" This reverts commit af29f35. * Revert "feat: add check for extra command line args provided with amplify delete (aws-amplify#4576)" This reverts commit 48b27b7. * Revert "perf: fulfill promises to upload files to S3 concurrently (aws-amplify#4575)" This reverts commit 9fbee8a. * Revert "fix(cli): remove unnecessary stack trace log when adding services (aws-amplify#4610)" This reverts commit 56efb32. * Revert "fix test" This reverts commit 50a8073fbbdb56931191912938fb50f542197832. Co-authored-by: UnleashedMind <zhoweimi@186590ce137f.ant.amazon.com>
* feat(amplify-provider-awscloudformation): add region ca-central-1 * fix test * Revert "Add region ca-central-1 (aws-amplify#4796)" This reverts commit af29f35. * Revert "feat: add check for extra command line args provided with amplify delete (aws-amplify#4576)" This reverts commit 48b27b7. * Revert "perf: fulfill promises to upload files to S3 concurrently (aws-amplify#4575)" This reverts commit 9fbee8a. * Revert "fix(cli): remove unnecessary stack trace log when adding services (aws-amplify#4610)" This reverts commit 56efb32. * Revert "fix test" This reverts commit 50a8073fbbdb56931191912938fb50f542197832. Co-authored-by: UnleashedMind <zhoweimi@186590ce137f.ant.amazon.com>
* feat(amplify-provider-awscloudformation): add region ca-central-1 * fix test * Revert "Add region ca-central-1 (aws-amplify#4796)" This reverts commit af29f35. * Revert "feat: add check for extra command line args provided with amplify delete (aws-amplify#4576)" This reverts commit 48b27b7. * Revert "perf: fulfill promises to upload files to S3 concurrently (aws-amplify#4575)" This reverts commit 9fbee8a. * Revert "fix(cli): remove unnecessary stack trace log when adding services (aws-amplify#4610)" This reverts commit 56efb32. * Revert "fix test" This reverts commit 50a8073fbbdb56931191912938fb50f542197832. Co-authored-by: UnleashedMind <zhoweimi@186590ce137f.ant.amazon.com>
This pull request has been automatically locked since there hasn't been any recent activity after it was closed. Please open a new issue for related bugs. Looking for a help forum? We recommend joining the Amplify Community Discord server |
Issue #, if available:
#4158
Description of changes:
When uploading multiple files to S3 after running
$ amplify publish
, those uploads are handled one after the other when they could be handled concurrently. Rather than fulfilling promises to upload each file sequentially, this PR proposes that we let the node runtime handle fulfilling those promises concurrently withPromise.all()
.By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.