Skip to content

Add new CI scripts as part of JAX CI Rework #37

Add new CI scripts as part of JAX CI Rework

Add new CI scripts as part of JAX CI Rework #37

Workflow file for this run

name: Run Bazel CPU tests (RBE)
on:
pull_request:
branches:
- main
workflow_dispatch:
inputs:
halt-for-connection:
description: 'Should this workflow run wait for a remote connection?'
type: choice
required: true
default: 'no'
options:
- 'yes'
- 'no'
jobs:
run_bazel_rbe_cpu_tests:
continue-on-error: true
defaults:
run:
# Explicitly set the shell to bash to override the default Windows environment, i.e, cmd.
shell: bash
strategy:
matrix:
runner: ["windows-x86-n2-64", "linux-x86-n2-64", "linux-arm64-t2a-48"]
runs-on: ${{ matrix.runner }}
container: ${{ (contains(matrix.runner, 'linux-x86') && 'us-central1-docker.pkg.dev/tensorflow-sigs/tensorflow/build:670606426-python3.12') ||
(contains(matrix.runner, 'linux-arm64') && 'us-central1-docker.pkg.dev/tensorflow-sigs/tensorflow/linux-arm64-arc-container:latest') ||
(contains(matrix.runner, 'windows-x86') && null) }}
env:
# Disable running `run_docker_container.sh`. JAX self-hosted runners already run in a Docker
# container.
JAXCI_RUN_DOCKER_CONTAINER: 0
JAXCI_HERMETIC_PYTHON_VERSION: "3.12"
steps:
- uses: actions/checkout@v3
# Halt for testing
- name: Wait For Connection
uses: google-ml-infra/actions/ci_connection@main
with:
halt-dispatch-input: ${{ inputs.halt-for-connection }}
- name: Run Bazel CPU Tests
run: ./ci/run_bazel_test_cpu_rbe.sh