Skip to content

Commit

Permalink
Update runner to 2.308.0 (#14898)
Browse files Browse the repository at this point in the history
Update runner to 2.308.0.

Also fix the bug in `update_runner_version.py`

#14655
  • Loading branch information
Jerry Wu authored Aug 31, 2023
1 parent 3e5a226 commit 708cf77
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 5 deletions.
6 changes: 3 additions & 3 deletions build_tools/github_actions/runner/gcp/create_templates.sh
Original file line number Diff line number Diff line change
Expand Up @@ -51,9 +51,9 @@ VERSION="${SHORT_REF}-${SUFFIX}"
if (( TESTING!=0 )); then
VERSION="${VERSION}-testing"
fi
GITHUB_RUNNER_VERSION="${GITHUB_RUNNER_VERSION:-2.307.1}"
GITHUB_RUNNER_X64_ARCHIVE_DIGEST="${GITHUB_RUNNER_X64_ARCHIVE_DIGEST:-038c9e98b3912c5fd6d0b277f2e4266b2a10accc1ff8ff981b9971a8e76b5441}"
GITHUB_RUNNER_ARM64_ARCHIVE_DIGEST="${GITHUB_RUNNER_ARM64_ARCHIVE_DIGEST:-01edc84342ef4128a8f19bc2f33709b40f2f1c40e250e2a4c5e0adf620044ab3}"
GITHUB_RUNNER_VERSION="${GITHUB_RUNNER_VERSION:-2.308.0}"
GITHUB_RUNNER_X64_ARCHIVE_DIGEST="${GITHUB_RUNNER_X64_ARCHIVE_DIGEST:-9f994158d49c5af39f57a65bf1438cbae4968aec1e4fec132dd7992ad57c74fa}"
GITHUB_RUNNER_ARM64_ARCHIVE_DIGEST="${GITHUB_RUNNER_ARM64_ARCHIVE_DIGEST:-e39b3137fcaad3262e1def26d3e42cdd810c831a3c836deeb560a2266338b503}"
GITHUB_TOKEN_PROXY_URL="${GITHUB_TOKEN_PROXY_URL:-https://ght-proxy-openxla-zbhz5clunq-ue.a.run.app}"

if (( TESTING_SELF_DELETER==1 )); then
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
VERSION_LINE_FORMAT_STRING = 'GITHUB_RUNNER_VERSION="${GITHUB_RUNNER_VERSION:-%s}"'
DIGEST_VARIABLE_FORMAT_STRING = "GITHUB_RUNNER_%s_ARCHIVE_DIGEST"
DIGEST_LINE_FORMAT_STRING = (
DIGEST_VARIABLE_FORMAT_STRING + '="${GITHUB_RUNNER_X86_64_ARCHIVE_DIGEST:-%s}"'
DIGEST_VARIABLE_FORMAT_STRING + '="${GITHUB_RUNNER_%s_ARCHIVE_DIGEST:-%s}"'
)

DIGEST_SEARCH_PATTERN = r"^.*\bBEGIN.SHA linux-(?P<arch>\w+)\b.*\b(?P<digest>[a-fA-F0-9]{64})\b.*END.SHA linux-\w+\b.*$"
Expand Down Expand Up @@ -108,7 +108,10 @@ def error(*msg):
found = False
for arch in RUNNER_ARCHITECTURES:
if line.startswith(DIGEST_VARIABLE_FORMAT_STRING % arch.upper()):
print(DIGEST_LINE_FORMAT_STRING % (arch.upper(), arch_to_digest[arch]))
print(
DIGEST_LINE_FORMAT_STRING
% (arch.upper(), arch.upper(), arch_to_digest[arch])
)
found = True
break

Expand Down

0 comments on commit 708cf77

Please sign in to comment.