gigl.src.common.constants.ci#

Identifiers that tie GCP resources back to the GitHub Actions run that created them.

Attributes#

Functions#

cloud_build_tag_for_github_run(github_run_id)

Return the Cloud Build tag that marks a build as started by one GitHub Actions run.

Module Contents#

gigl.src.common.constants.ci.cloud_build_tag_for_github_run(github_run_id)[source]#

Return the Cloud Build tag that marks a build as started by one GitHub Actions run.

Cloud Build runs started for a CI run carry this tag, so the cancel script can find them.

Example

>>> cloud_build_tag_for_github_run("123456")
'gigl-ci-run-123456'
Parameters:

github_run_id (str) – The GitHub Actions run id.

Returns:

The tag string.

Return type:

str

gigl.src.common.constants.ci.GITHUB_RUN_ID_LABEL_KEY: Final[str] = 'github_run_id'[source]#