Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .github/checkgroup.yml
Original file line number Diff line number Diff line change
Expand Up @@ -99,6 +99,7 @@ subprojects:
#- id: "pytorch-lightning: TPU workflow"
# paths:
# - ".github/workflows/tpu-tests.yml"
# - "dockers/base-xla/*"
# - "requirements/lite/**"
# - "src/lightning_lite/**"
# - "tests/tests_lite/**"
Expand Down
9 changes: 5 additions & 4 deletions .github/workflows/tpu-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ on:
types: [opened, reopened, ready_for_review, synchronize] # added `ready_for_review` since draft is skipped
paths:
- ".github/workflows/tpu-tests.yml"
- "dockers/base-xla/*"
- "requirements/lite/**"
- "src/lightning_lite/**"
- "tests/tests_lite/**"
Expand All @@ -33,7 +34,7 @@ jobs:
if: github.event.pull_request.draft == false
env:
PYTHON_VER: 3.7
timeout-minutes: 100 # should match the timeout in `tpu_test_cases.jsonnet`
timeout-minutes: 100 # should match the timeout in `tpu_workflow.jsonnet`

steps:
- uses: actions/checkout@v3
Expand Down Expand Up @@ -64,9 +65,9 @@ jobs:
PR_NUMBER: ${{ github.event.pull_request.number }}
SHA: ${{ github.event.pull_request.head.sha }}
run: |
python -c "fname = 'dockers/tpu-tests/tpu_test_cases.jsonnet' ; data = open(fname).read().replace('{PYTORCH_VERSION}', '$XLA_VER')
python -c "fname = 'dockers/base-xla/tpu_workflow.jsonnet' ; data = open(fname).read().replace('{PYTORCH_VERSION}', '$XLA_VER')
data = data.replace('{PYTHON_VERSION}', '$PYTHON_VER').replace('{PR_NUMBER}', '$PR_NUMBER').replace('{SHA}', '$SHA') ; open(fname, 'w').write(data)"
cat dockers/tpu-tests/tpu_test_cases.jsonnet
cat dockers/base-xla/tpu_workflow.jsonnet
shell: bash

- uses: google-github-actions/auth@v0
Expand All @@ -82,7 +83,7 @@ jobs:
- name: Deploy cluster
run: |
export PATH=$PATH:$HOME/go/bin
job_name=$(jsonnet -J ml-testing-accelerators/ dockers/tpu-tests/tpu_test_cases.jsonnet | kubectl create -f -)
job_name=$(jsonnet -J ml-testing-accelerators/ dockers/base-xla/tpu_workflow.jsonnet | kubectl create -f -)
job_name=${job_name#job.batch/}
job_name=${job_name% created}
pod_name=$(kubectl get po -l controller-uid=`kubectl get job $job_name -o "jsonpath={.metadata.labels.controller-uid}"` | awk 'match($0,!/NAME/) {print $1}')
Expand Down
37 changes: 0 additions & 37 deletions dockers/tpu-tests/Dockerfile

This file was deleted.

8 changes: 0 additions & 8 deletions dockers/tpu-tests/docker-entrypoint.sh

This file was deleted.