Skip to content

Commit b77573d

Browse files
committed
upload and download artifacts from gcs bucket
1 parent 08ef29a commit b77573d

File tree

1 file changed

+32
-38
lines changed

1 file changed

+32
-38
lines changed

.github/workflows/pytest_gpu.yml

Lines changed: 32 additions & 38 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,38 @@ jobs:
4242
run: ./ci/build_artifacts.sh "jax-cuda-plugin"
4343
- name: Build jax-cuda-pjrt
4444
run: ./ci/build_artifacts.sh "jax-cuda-pjrt"
45+
- name: Upload artifacts to GCS bucket
46+
run: gsutil -m rsync -d -r gs://general-ml-ci-transient/jax-github-actions/${{ github.workflow }}/${{ github.run_id }}/${{ github.run_attempt }}
47+
48+
run_tests:
49+
needs: build_artifacts
50+
strategy:
51+
matrix:
52+
test_env: [
53+
{cuda_version: "12.3", runner: "linux-x86-g2-48-l4-4gpu",
54+
image: "gcr.io/tensorflow-testing/nosla-cuda12.3-cudnn9.1-ubuntu20.04-manylinux2014-multipython:latest"},
55+
{cuda_version: "12.1", runner: "linux-x86-g2-48-l4-4gpu",
56+
image: "gcr.io/tensorflow-testing/nosla-cuda12.1-cudnn9.1-ubuntu20.04-manylinux2014-multipython:latest"},
57+
]
58+
python: ["3.10"]
59+
60+
runs-on: ${{ matrix.test_env.runner }}
61+
container:
62+
image: ${{ matrix.test_env.image }}
63+
64+
name: "Pytest GPU (Test on CUDA ${{ matrix.test_env.cuda_version }})"
65+
env:
66+
JAXCI_HERMETIC_PYTHON_VERSION: ${{ matrix.python }}
67+
68+
steps:
69+
- uses: actions/checkout@v3
70+
# Halt for testing
71+
- name: Wait For Connection
72+
uses: google-ml-infra/actions/ci_connection@main
73+
with:
74+
halt-dispatch-input: ${{ inputs.halt-for-connection }}
75+
- name: Download the artifacts built in the "build_artifacts" job
76+
run: gsutil -m cp -r gs://general-ml-ci-transient/jax-github-actions/${{ github.workflow }}/${{ github.run_id }}/${{ github.run_attempt }} $(pwd)/dist
4577
- name: Install pytest
4678
env:
4779
JAXCI_PYTHON: python${{ matrix.python }}
@@ -52,41 +84,3 @@ jobs:
5284
run: $JAXCI_PYTHON -m pip install -r build/requirements.in
5385
- name: Run Pytest GPU tests
5486
run: ./ci/run_pytest_gpu.sh
55-
56-
# run_tests:
57-
# needs: build_artifacts
58-
# strategy:
59-
# matrix:
60-
# test_env: [
61-
# {cuda_version: "12.3", runner: "linux-x86-g2-48-l4-4gpu",
62-
# image: "gcr.io/tensorflow-testing/nosla-cuda12.3-cudnn9.1-ubuntu20.04-manylinux2014-multipython:latest"},
63-
# {cuda_version: "12.1", runner: "linux-x86-g2-48-l4-4gpu",
64-
# image: "gcr.io/tensorflow-testing/nosla-cuda12.1-cudnn9.1-ubuntu20.04-manylinux2014-multipython:latest"},
65-
# ]
66-
# python: ["3.10"]
67-
68-
# runs-on: ${{ matrix.test_env.runner }}
69-
# container:
70-
# image: ${{ matrix.test_env.image }}
71-
72-
# name: "Pytest GPU (Test on CUDA ${{ matrix.test_env.cuda_version }})"
73-
# env:
74-
# JAXCI_HERMETIC_PYTHON_VERSION: ${{ matrix.python }}
75-
76-
# steps:
77-
# - uses: actions/checkout@v3
78-
# # Halt for testing
79-
# - name: Wait For Connection
80-
# uses: google-ml-infra/actions/ci_connection@main
81-
# with:
82-
# halt-dispatch-input: ${{ inputs.halt-for-connection }}
83-
# - name: Install pytest
84-
# env:
85-
# JAXCI_PYTHON: python${{ matrix.python }}
86-
# run: $JAXCI_PYTHON -m pip install pytest
87-
# - name: Install dependencies
88-
# env:
89-
# JAXCI_PYTHON: python${{ matrix.python }}
90-
# run: $JAXCI_PYTHON -m pip install -r build/requirements.in
91-
# - name: Run Pytest GPU tests
92-
# run: ./ci/run_pytest_gpu.sh

0 commit comments

Comments
 (0)