Skip to content

snapshot: add snapshot contents uploader #890

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

Merged
merged 3 commits into from
Nov 28, 2022

Conversation

bobheadxi
Copy link
Member

@bobheadxi bobheadxi commented Nov 28, 2022

Adds a command, src snapshot upload, that checks that all snapshot resources have been created and initiates parallel uploads for them with native usage of the Cloud Storage client.

This is a change from the previous plan to use signed URLs - a robust upload client does not exist for it, so we opt to generate service accounts instead to make use of the native Cloud Storage client that implements buffering/chunking/etc internally.

Closes https://github.com/sourcegraph/customer/issues/1613

Test plan

upload

image

@bobheadxi
Copy link
Member Author

Current dependencies on/for this PR:

This comment was auto-generated by Graphite.

Copy link
Member

@michaellzc michaellzc left a comment

Choose a reason for hiding this comment

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

lgtm

Base automatically changed from src-snapshot-pgdump-templater to main November 28, 2022 22:48
@bobheadxi bobheadxi force-pushed the 11-28-snapshot_add_snapshot_contents_uploader branch from ac9ce35 to 8dd6e5e Compare November 28, 2022 22:51
@bobheadxi bobheadxi merged commit fa50cb7 into main Nov 28, 2022
@bobheadxi bobheadxi deleted the 11-28-snapshot_add_snapshot_contents_uploader branch November 28, 2022 23:01
scjohns pushed a commit that referenced this pull request Apr 24, 2023
Adds a command, src snapshot upload, that checks that all snapshot resources have been created and initiates parallel uploads for them with native usage of the Cloud Storage client.

Co-authored-by: Michael Lin <[email protected]>
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.

3 participants