Skip to content

fix(desktop-gpui): count only uploaded parts in share progress - #3059

Merged
richiemcilroy merged 3 commits into
CapSoftware:mainfrom
yashranaway:fix/gpui-upload
Oct 24, 2026
Merged

richiemcilroy merged 3 commits into
CapSoftware:mainfrom
yashranaway:fix/gpui-upload

Conversation

@yashranaway

@yashranaway yashranaway commented Oct 24, 2026 •

Copy link
Copy Markdown
Contributor

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.

RetriggerView in GreptileConfidence 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.

  • Share progress advances only when an upload part succeeds.

Reviews (2) · Last reviewed commit: "test(desktop-gpui): assert progress valu..." · Reviewed by Greptile

@vercel

vercel Bot commented Oct 24, 2026

Copy link
Copy Markdown
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.

Comment thread apps/desktop-gpui/src/upload/multipart_tests.rs Outdated
@richiemcilroy

Copy link
Copy Markdown
Member

Thanks, the progress change looks right. One test gap:

  1. failed_part_is_retried_after_the_rest_and_upload_completes now only records the started-part counts and drops the old final-value check, so it would still pass if the retry branch stopped adding to uploaded_bytes. Please assert the progress values too, including 0.9 and 0.99 after the two successful retries.

Once that's in, we'll re-run the Greptile review. It needs a 5/5 plus green CI to merge.

@yashranaway

Copy link
Copy Markdown
Contributor Author

@greptileai review

@yashranaway

Copy link
Copy Markdown
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.

@richiemcilroy
richiemcilroy merged commit 95bceef into CapSoftware:main Oct 24, 2026
43 of 45 checks passed
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.

2 participants