Skip to content

Commit

Permalink
Replace openxla with iree-org in Github runner configs and scripts (i…
Browse files Browse the repository at this point in the history
…ree-org#17065)

Change template to set up runners for iree-org.

Tested with testing runners and a repo in iree-org.

skip-ci: Not tested in CI
  • Loading branch information
Jerry Wu authored Apr 19, 2024
1 parent 5ed2fec commit 6295074
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ set -euo pipefail

source /runner-root/config/functions.sh

nice_curl https://raw.githubusercontent.com/openxla/iree/main/build_tools/docker/prod_digests.txt \
nice_curl https://raw.githubusercontent.com/iree-org/iree/main/build_tools/docker/prod_digests.txt \
--output /tmp/prod_digests.txt

# Basically everything uses a derivative of one of these
Expand Down
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 @@ -22,8 +22,8 @@ CPU_IMAGE="${CPU_IMAGE:-github-runner-cpu-2023-06-02-1685725199}"
ARM64_IMAGE="${ARM64_IMAGE:-github-runner-arm64-2023-11-01-1698857095}"
DISK_SIZE_GB="${DISK_SIZE_GB:-1000}"

PROD_TEMPLATE_CONFIG_REPO="${PROD_TEMPLATE_CONFIG_REPO:-openxla/iree}"
GITHUB_RUNNER_SCOPE="${GITHUB_RUNNER_SCOPE:-openxla}"
PROD_TEMPLATE_CONFIG_REPO="${PROD_TEMPLATE_CONFIG_REPO:-iree-org/iree}"
GITHUB_RUNNER_SCOPE="${GITHUB_RUNNER_SCOPE:-iree-org}"

TEMPLATE_CONFIG_REPO="${TEMPLATE_CONFIG_REPO:-${PROD_TEMPLATE_CONFIG_REPO}}"
TEMPLATE_CONFIG_REF="${TEMPLATE_CONFIG_REF:-$(git rev-parse HEAD)}"
Expand Down Expand Up @@ -54,7 +54,7 @@ fi
GITHUB_RUNNER_VERSION="${GITHUB_RUNNER_VERSION:-2.315.0}"
GITHUB_RUNNER_X64_ARCHIVE_DIGEST="${GITHUB_RUNNER_X64_ARCHIVE_DIGEST:-6362646b67613c6981db76f4d25e68e463a9af2cc8d16e31bfeabe39153606a0}"
GITHUB_RUNNER_ARM64_ARCHIVE_DIGEST="${GITHUB_RUNNER_ARM64_ARCHIVE_DIGEST:-d9d58b178eca5fb65d93d151f3b62bde967f8cbec7c72e9b0976e9312b7f7dda}"
GITHUB_TOKEN_PROXY_URL="${GITHUB_TOKEN_PROXY_URL:-https://ght-proxy-openxla-zbhz5clunq-ue.a.run.app}"
GITHUB_TOKEN_PROXY_URL="${GITHUB_TOKEN_PROXY_URL:-https://ght-proxy-zbhz5clunq-ue.a.run.app}"

if (( TESTING_SELF_DELETER==1 )); then
INSTANCE_SELF_DELETER_URL="https://instance-self-deleter-testing-zbhz5clunq-uc.a.run.app"
Expand Down
4 changes: 2 additions & 2 deletions build_tools/github_actions/runner/gcp/image_setup.sh
Original file line number Diff line number Diff line change
Expand Up @@ -279,8 +279,8 @@ EOF
nice_curl \
--remote-name-all \
--output-dir "${script_dir}" \
https://raw.githubusercontent.com/openxla/iree/main/build_tools/scripts/check_vulkan.sh \
https://raw.githubusercontent.com/openxla/iree/main/build_tools/scripts/check_cuda.sh
https://raw.githubusercontent.com/iree-org/iree/main/build_tools/scripts/check_vulkan.sh \
https://raw.githubusercontent.com/iree-org/iree/main/build_tools/scripts/check_cuda.sh

chmod +x "${script_dir}/check_vulkan.sh" "${script_dir}/check_cuda.sh"

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ MIG="gh-runner-${GROUP}-${TYPE}-${REGION}"

function remove_idle_runners() {
local -a to_delete=($(gh api --paginate -H "Accept: application/vnd.github+json" \
/orgs/openxla/actions/runners?per_page=100 \
/orgs/iree-org/actions/runners?per_page=100 \
| jq --raw-output \
".runners | .[]
| select(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ CREATION_CUTOFF="$(( "$(date +%s)" - STARTUP_DURATION ))"

function get_online_runners() {
gh api --paginate -H "Accept: application/vnd.github+json" \
/orgs/openxla/actions/runners?per_page=100 \
/orgs/iree-org/actions/runners?per_page=100 \
| jq --raw-output \
".runners | .[]
| select(
Expand Down

0 comments on commit 6295074

Please sign in to comment.