-
Notifications
You must be signed in to change notification settings - Fork 3
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
Added retry capability for uploading files #1233
Conversation
32bf5db
to
546010b
Compare
Probably we also need to retry folder creation of recursive uploads |
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #1233 +/- ##
==========================================
+ Coverage 16.85% 22.52% +5.66%
==========================================
Files 9 12 +3
Lines 445 2482 +2037
Branches 77 47 -30
==========================================
+ Hits 75 559 +484
- Misses 367 1923 +1556
+ Partials 3 0 -3 ☔ View full report in Codecov by Sentry. |
@susnux I will try to do that. Any idea why Cypress is failing? How can I debug/fix that?
|
Its flaky just needs to be restarted, known issue of Cypress (but if you dont pay money they do not care 😔 ). |
5 restarts and still failing? 🤔 |
546010b
to
bf36060
Compare
maybe failure caused by adding of a new dependency. But I didn't get how to fix that by googling. Also as you can see from the video - it works on my machine. cypress-local.mp4Please help to debug it 🙏 Here more info cypress-io/cypress#25913 |
bf36060
to
a8edad0
Compare
Signed-off-by: Konstantin Myakshin <molodchick@gmail.com>
a8edad0
to
2571ef9
Compare
Yes this is that mentioned error, one long standing Cypress bug... |
Thank you for merging 🤝 @susnux @skjnldsv can we bump a new version? Because I need integrate it into https://github.com/nextcloud/server as well |
Yes there is another feature we will release, so would schedule a release tomorrow or Thursday. |
You can observe how it works on the video below. I've tested library changes using
npm link
. For failure simulation I've added next snippet toremote.php
:Also as you can see sha256 hash is the same for the uploaded and original files. So, files are not corrupted during retries. Later on we can configure how many retries available.
nextcloud-retry-upload.mp4