Skip to content

Fix upload chunk retries - #305

Merged
dhadka merged 2 commits into
masterfrom
fix-upload-chunk
May 11, 2020
Merged

dhadka merged 2 commits into
masterfrom
fix-upload-chunk

Conversation

@dhadka

@dhadka dhadka commented May 11, 2020

Copy link
Copy Markdown
Contributor

Fixes retry logic for uploadChunk. Previously, it would not reset the read stream back to the start of the chunk, causing the retry to fail because it starts reading the chunk from the wrong offset.

Fixes #298

@konradpabjan konradpabjan left a comment •

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice find!

Artifact upload is using an identical pattern for chunked uploads and I suspect this exact issue is effecting us since retries aren't working as expected.

LGTM 👍

@dhadka
dhadka merged commit 5ddc028 into master May 11, 2020
@dhadka
dhadka deleted the fix-upload-chunk branch May 11, 2020 21:58
richardxia added a commit to chipsalliance/rocket-chip that referenced this pull request May 16, 2020
richardxia added a commit to chipsalliance/rocket-chip that referenced this pull request May 21, 2020
richardxia added a commit to chipsalliance/rocket-chip that referenced this pull request May 21, 2020
* Use newer actions/cache for improved reliability.

Per actions/cache#141 (comment), several
of the recent commits have improved reliability:

- actions/cache#306
- actions/cache#300
- actions/cache#305

* Use version of actions/cache with fixed arguments for zstd on Ubuntu 16.04.
@joshmgross joshmgross mentioned this pull request May 29, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Chunk upload retry does not reset the read stream

3 participants