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

Updating deploy script for downloading internal_issue_tracker module from GCS #4702

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

javanlacerda
Copy link
Contributor

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.

Signed-off-by: Javan Lacerda <[email protected]>
@javanlacerda javanlacerda requested review from jonathanmetzman, oliverchang and vitorguidi and removed request for jonathanmetzman February 22, 2025 00:11
@javanlacerda javanlacerda force-pushed the javan.download_issuer_tracker branch from eb01d54 to 7c13b92 Compare February 22, 2025 23:37
Signed-off-by: Javan Lacerda <[email protected]>
@javanlacerda javanlacerda force-pushed the javan.download_issuer_tracker branch from 7c13b92 to 634e4d9 Compare February 23, 2025 21:44
Copy link
Collaborator

@jonathanmetzman jonathanmetzman left a 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
Copy link
Collaborator

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
Copy link
Collaborator

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(
Copy link
Collaborator

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":
Copy link
Collaborator

Choose a reason for hiding this comment

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

nit: single quotes.

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