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

Support GCS #3905

Merged
merged 33 commits into from
Dec 14, 2021
Merged

Support GCS #3905

merged 33 commits into from
Dec 14, 2021

Conversation

epicfaace
Copy link
Member

@epicfaace epicfaace commented Dec 8, 2021

Fixes #3904. Depends on #3828 to be merged first.

codalab/lib/bundle_store.py Outdated Show resolved Hide resolved
@epicfaace epicfaace changed the base branch from master to bundle-store-cli December 12, 2021 23:12

def upgrade():
# ### commands auto generated by Alembic - please adjust! ###
op.alter_column('bundle_store', 'storage_type', type_=sa.String(255), existing_type=sa.Enum("disk", "azure_blob"), nullable=True)
Copy link
Member Author

Choose a reason for hiding this comment

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

This is a one-time change. Realized that it's difficult to modify enums so I changed the columns to just be Text types instead, so we don't need migrations for future expansions of supporting new storage types.

@epicfaace
Copy link
Member Author

@percyliang FYI this PR is about the unit of work required to support a new storage type that Apache Beam supports. Relatively straightforward and minimal -- a similar PR could add support for S3.

@epicfaace epicfaace mentioned this pull request Dec 13, 2021
4 tasks
Base automatically changed from bundle-store-cli to master December 14, 2021 15:30
@epicfaace epicfaace marked this pull request as ready for review December 14, 2021 15:55
First, make sure the `CODALAB_GOOGLE_APPLICATION_CREDENTIALS` env var is set on the server that runs the REST server. It should be set to a path to a credentials JSON file.

```
export CODALAB_GOOGLE_APPLICATION_CREDENTIALS=/path/to/credentials.json
Copy link
Member Author

Choose a reason for hiding this comment

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

@teetone Flagging this for you -- you'll need to set up this environment variable when setting up GCP on codalab.stanford.edu.

@mergify mergify bot merged commit c2514fa into master Dec 14, 2021
@mergify mergify bot deleted the gcp branch December 14, 2021 19:08
@jzwang43 jzwang43 mentioned this pull request Dec 15, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Support GCP for bundle storage
2 participants