Run single python version for v4-8 and min & max for v5e-8 for TPU tests in nightly/release test workflow #5779
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Cloud TPU CI (presubmit) | |
# | |
# This job currently runs as a non-blocking presubmit. It is experimental and is currently being | |
# tested to get to a stable state before we enable it as a blocking presubmit. | |
name: CI - Cloud TPU (presubmit) | |
on: | |
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' | |
pull_request: | |
branches: | |
- main | |
push: | |
branches: | |
- main | |
- 'release/**' | |
# This should also be set to read-only in the project settings, but it's nice to | |
# document and enforce the permissions here. | |
permissions: | |
contents: read | |
concurrency: | |
group: ${{ github.workflow }}-${{ github.head_ref || github.ref }} | |
# Don't cancel in-progress jobs for main/release branches. | |
cancel-in-progress: ${{ !contains(github.ref, 'release/') && github.ref != 'main' }} | |
jobs: | |
build-jax-artifacts: | |
if: github.event.repository.fork == false | |
uses: ./.github/workflows/build_artifacts.yml | |
strategy: | |
fail-fast: false # don't cancel all jobs on failure | |
matrix: | |
artifact: ["jax", "jaxlib"] | |
with: | |
runner: "linux-x86-n2-16" | |
artifact: ${{ matrix.artifact }} | |
python: "3.10" | |
clone_main_xla: 1 | |
upload_artifacts_to_gcs: true | |
gcs_upload_uri: 'gs://general-ml-ci-transient/jax-github-actions/jax/${{ github.workflow }}/${{ github.run_number }}/${{ github.run_attempt }}' | |
run-pytest-tpu: | |
if: github.event.repository.fork == false | |
needs: [build-jax-artifacts] | |
uses: ./.github/workflows/pytest_tpu.yml | |
# Begin Presubmit Naming Check - name modification requires internal check to be updated | |
name: "TPU test (jaxlib=head, v5e-8)" | |
with: | |
runner: "linux-x86-ct5lp-224-8tpu" | |
cores: "8" | |
tpu-type: "v5e-8" | |
python: "3.10" | |
libtpu-version-type: "nightly" | |
gcs_download_uri: ${{ needs.build-jax-artifacts.outputs.gcs_upload_uri }} | |
# End Presubmit Naming Check github-tpu-presubmits |