Repository navigation
fix(desktop-gpui): count only uploaded parts in share progress - #3059
Merged
Merged
Conversation
Contributor
|
@yashranaway is attempting to deploy a commit to the Cap Software Inc Team on Vercel. A member of the Team first needs to authorize it. |
Member
|
Thanks, the progress change looks right. One test gap:
Once that's in, we'll re-run the Greptile review. It needs a 5/5 plus green CI to merge. |
Contributor
Author
|
@greptileai review |
Contributor
Author
|
@richiemcilroy done in 4ba677c. the retry test now asserts every progress value along with the started part count, ending in 0.9 and 0.99 for the two retries. i checked it fails if the retry branch stops adding to uploaded_bytes. greptile is 5/5. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
share uploads go part by part and retry failed parts at the end, but progress moved forward for every part it read, whether or not that part actually uploaded. so with a flaky connection the bar could sit at 99% with parts still missing, and a failed share would hit 99% right before erroring out.
progress now only moves when a part is accepted, including when a retry succeeds, so on a normal upload it looks exactly the same as before. test makes one part fail twice and checks progress stops at what really got uploaded.


Confidence Score: 5/5
The PR appears safe to merge; no blocking issues remain.Summary
Share progress now counts only successfully uploaded bytes, including successful retries.
Reviews (2) · Last reviewed commit: "test(desktop-gpui): assert progress valu..." · Reviewed by Greptile