-
-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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 support for chunked uploads. #1208
Added support for chunked uploads. #1208
Conversation
44bc553
to
6821bfa
Compare
Codecov Report
@@ Coverage Diff @@
## master #1208 +/- ##
==========================================
+ Coverage 57.50% 62.32% +4.81%
==========================================
Files 32 40 +8
Lines 4594 5417 +823
==========================================
+ Hits 2642 3376 +734
- Misses 1729 1776 +47
- Partials 223 265 +42
📣 Codecov can now indicate which changes are the most critical in Pull Requests. Learn more |
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.
Thank you for implementing this, I actually don't using the artifact feature myself.
I trust your tests with uploading / downloading large random data, far better than before.
bfc42a0
to
b6ae8b2
Compare
@ChristopherHX may you please take a look at this extra commit, that should fix the problem I introduced earlier (appending to instead of overwriting stale artifacts): b6ae8b2 |
BTW I use this dirty code to parse the actual values of the range request: https://github.com/ChristopherHX/runner.server/blob/main/src/Runner.Server/Controllers/ArtifactController.cs#L150-L155 |
Yep, thanks! I also thought about further improving the parsing of Content-Range, however, given that my Go knowledge is basically non-existent, I decided to keep the parsing to the bare minimum that is probably enough "for now"... |
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.
Thank you for implementing this
This is follow-up for #1206, eventually addressing #677 (comment).
It implements a naive handler that just appends every chunk, assuming that upload-artifact does the chunk upload sequentially.
It passes the tests introduced for chunked uploads, that were failing in #1206, so I wonder if it might be enough for starters.