-
Notifications
You must be signed in to change notification settings - Fork 202
[tests-only][full-ci] added test to restart and resume all stale uploads #11308
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
base: master
Are you sure you want to change the base?
Conversation
3c5069d
to
f0862c1
Compare
LGTM 👍 |
Given the config "POSTPROCESSING_DELAY" has been set to "10s" | ||
And user "Alice" has uploaded file with content "some content" to "textfile.txt" | ||
And the administrator has stopped the server | ||
And the administrator has created stale upload |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why are you using this step ? IMO you are testing resume command?
Given the config "POSTPROCESSING_DELAY" has been set to "10s" | ||
And user "Alice" has uploaded file with content "some content" to "textfile.txt" | ||
And the administrator has stopped the server | ||
And the administrator has created stale upload |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
An unfinished upload and a stale upload are different things. I have created a stale upload by deleting the .info file, and I doubt it is possible to resume/restart the upload file from which the .info file has been deleted.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
That could be the reason why the table in the response is empty. Maybe resume and restart is not possible for stale uploads.
in previous merged PR, i have doubt
seems not full proof because upload can finish in between getting uploadid and restarting upload |
If a file is listed in the response of the command then it confirms the command worked successfully as these commands are meant to output the list of uploads that match the criteria provided in the command. |
still not 100% guarnteed that it will never show flakiness |
I didn't get it, how this can be flaky? |
ok try it manually. List unfinished uploads and restart that . Again, run the CLI command to restart the same resource. What will be the output: its fail or pass? |
If we again restart the upload of same resource it will restart the upload process of that resource again. I think this PR is not the right place to discuss this. We should find the answer for the following point.
|
f0862c1
to
6975d0d
Compare
6975d0d
to
b461af0
Compare
|
Description
This PR adds test to restart and resume all the stale uploads using the CLI commands.
Currently the CLI command does not restart or resume any uploads are returns empty list, reported in #11296.
Related Issue
Types of changes
Checklist: