-
Notifications
You must be signed in to change notification settings - Fork 2.6k
Implement Repository Blobs upload resuming #2917
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
Conversation
The tests failure appears to be due to vendor issues, not related to this change. |
StatusCode: http.StatusOK, | ||
Headers: http.Header(map[string][]string{ | ||
"Content-Length": {fmt.Sprint(len(b1))}, | ||
"Last-Modified": {time.Now().Add(-1 * time.Second).Format(time.ANSIC)}, |
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.
Can timing for this test cause random failures?
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.
I've not seen any failure. The pattern is also used in several other places (I see 16 occurences in this file).
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.
LGTM
Please sign your commits following these rules: $ git clone -b "repository-blob-resume" git@github.com:dmathieu/distribution.git somewhere
$ cd somewhere
$ git rebase -i HEAD~842357576592
editor opens
change each 'pick' to 'edit'
save the file and quit
$ git commit --amend -s --no-edit
$ git rebase --continue # and repeat the amend for each commit
$ git push -f Amending updates the existing PR. You DO NOT need to open a new one. |
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.
LGTM
Looks like this needs to be rebased. |
Signed-off-by: Damien Mathieu <dmathieu@salesforce.com>
Codecov Report
@@ Coverage Diff @@
## master #2917 +/- ##
==========================================
- Coverage 60.59% 60.59% -0.01%
==========================================
Files 102 102
Lines 8025 8034 +9
==========================================
+ Hits 4863 4868 +5
- Misses 2512 2514 +2
- Partials 650 652 +2
Continue to review full report at Codecov.
|
This implements resuming a repository blobs upload.
I'm using
time.Now
asstartedAt
, as the one set whenCreate()
was called doesn't seem to be available. I'm happy to follow any guidance on using another value though.