Skip to content

Commit 46f4728

Browse files
authored
Make TPU test optional but blocking for PRs
1 parent d61cbaf commit 46f4728

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

scripts/test-template-aws.j2

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -361,6 +361,7 @@ steps:
361361
command: nvidia-smi && bash .buildkite/run-gh200-test.sh
362362
{% endif %}
363363

364+
{% if branch == "main" %}
364365
- label: "TPU Test"
365366
depends_on: ~
366367
soft_fail: True
@@ -369,3 +370,16 @@ steps:
369370
commands:
370371
- yes | docker system prune -a
371372
- if [[ -f ".buildkite/run-tpu-test.sh" ]]; then bash .buildkite/run-tpu-test.sh; fi
373+
{% else %}
374+
- label: "Run TPU Test"
375+
depends_on: ~
376+
key: block-tpu-test
377+
378+
- label: "TPU Test"
379+
depends_on: block-tpu-test
380+
agents:
381+
queue: tpu_queue
382+
commands:
383+
- yes | docker system prune -a
384+
- if [[ -f ".buildkite/run-tpu-test.sh" ]]; then bash .buildkite/run-tpu-test.sh; fi
385+
{% endif %}

0 commit comments

Comments
 (0)