-
Notifications
You must be signed in to change notification settings - Fork 566
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
Updating deploy script for downloading internal_issue_tracker module from GCS #4702
base: master
Are you sure you want to change the base?
Updating deploy script for downloading internal_issue_tracker module from GCS #4702
Conversation
Signed-off-by: Javan Lacerda <[email protected]>
eb01d54
to
7c13b92
Compare
Signed-off-by: Javan Lacerda <[email protected]>
7c13b92
to
634e4d9
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Do we still need to land this?
@@ -161,6 +161,14 @@ def sub_config(self, path): | |||
|
|||
return Config(root=new_root) | |||
|
|||
# it returns that the config is for internal, external or google |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nit: start with a capital letter and end with a period.
@@ -161,6 +161,14 @@ def sub_config(self, path): | |||
|
|||
return Config(root=new_root) | |||
|
|||
# it returns that the config is for internal, external or google | |||
# TODO: add and get this information from the project.yaml file |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nit: Put a username or issue number here. e.g. TODO(metzman):
@@ -238,6 +238,12 @@ def _deploy_zip(bucket_name, zip_path, test_deployment=False): | |||
os.path.basename(zip_path))) | |||
|
|||
|
|||
def _download_zip(bucket_name, gcs_file_path, target_path): | |||
"""Download zip from GCS.""" | |||
common.execute( |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nit: f-string
# code to be able to open the clusterfuzz-config code. | ||
# This workaround manages to download the internal_issue_tracker module from | ||
# GCS during the deployment. | ||
if config.get_target() == "google": |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nit: single quotes.
It is updating the butler deploy to download and unpack the internal_issue_tracker module from GCS for Google project deployments.
It's being needed because there's some sensitive code into the internal_issue_tracker module and we want to open the clusterfuzz-config code.
It was tested by running the butler deploy locally with the internal_issue_tracker module deleted, and it managed to "recreate" the module properly.