Skip to content

Commit

Permalink
Delete unused TPU CI files (#15611)
Browse files Browse the repository at this point in the history
Co-authored-by: Akihiro Nitta <nitta@akihironitta.com>
Co-authored-by: Jirka Borovec <6035284+Borda@users.noreply.github.com>
  • Loading branch information
3 people committed Nov 11, 2022
1 parent 8c9b688 commit a3edbec
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 49 deletions.
1 change: 1 addition & 0 deletions .github/checkgroup.yml
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
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
File renamed without changes.
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.

0 comments on commit a3edbec

Please sign in to comment.