Skip to content
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

[RB] Stream large writes to prevent grpc errors #6377

Merged
merged 1 commit into from
Apr 16, 2024
Merged

Conversation

maggie-lou
Copy link
Contributor

@maggie-lou maggie-lou commented Apr 16, 2024

The ci runner bundle has gotten too large, so we were seeing errors like ResourceExhausted desc = grpc: received message larger than max (50464990 vs. 50000000) when trying to upload it to the cache. Use a bytestream write instead to handle large blobs.

Customers have previously reported similar errors, so hopefully this helps there too: https://buildbuddy-corp.slack.com/archives/C057TAUAQ7P/p1701803746816029?thread_ts=1701800129.129309&cid=C057TAUAQ7P

This PR also changes the hosted runner to use blake3 to generate digests. Hopefully this will help performance with these huge blobs

Related issues: Fixes https://github.com/buildbuddy-io/buildbuddy-internal/issues/3263

@maggie-lou maggie-lou changed the title [RB] Stream large writes through bytestream to prevent grpc errors [RB] Stream large writes to prevent grpc errors Apr 16, 2024
@maggie-lou maggie-lou marked this pull request as ready for review April 16, 2024 15:24
@maggie-lou maggie-lou merged commit f225408 into master Apr 16, 2024
16 of 18 checks passed
@maggie-lou maggie-lou deleted the upload_big_file branch April 16, 2024 15:40
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.

None yet

2 participants