Skip to content

Commit 28ca64a

Browse files
committed
Separate pallas test into a separate test shard
1 parent 358c862 commit 28ca64a

File tree

3 files changed

+14
-3
lines changed

3 files changed

+14
-3
lines changed

.github/workflows/_tpu_ci.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@ jobs:
2323
- test/tpu/run_tests.sh
2424
- test/tpu/run_expensive_test_1.sh
2525
- test/tpu/run_expensive_test_2.sh
26+
- test/tpu/run_pallas_test.sh
2627
steps:
2728
- name: Checkout actions
2829
if: inputs.has_code_changes == 'true'

test/tpu/run_pallas_test.sh

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
#!/bin/bash
2+
set -xue
3+
CDIR="$(cd "$(dirname "$0")" ; pwd -P)"
4+
TEST_CDIR="$(dirname "$CDIR")"
5+
6+
# This test takes ~370 seconds to run
7+
python3 "$TEST_CDIR/test_pallas.py" -v
8+
9+
# This test takes ~15 seconds to run
10+
python3 "$TEST_CDIR/test_pallas_spmd.py"
11+
12+
# This test takes ~15 seconds to run
13+
XLA_DISABLE_FUNCTIONALIZATION=1 python3 "$TEST_CDIR/test_pallas_spmd.py"

test/tpu/run_tests.sh

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -81,9 +81,6 @@ run_test "$_TEST_DIR/test_assume_pure.py"
8181
run_test "$_TEST_DIR/test_assume_pure_spmd.py"
8282
run_test "$_TEST_DIR/test_as_stride_use_slice.py"
8383
run_xla_hlo_debug run_test "$_TEST_DIR/scan/test_scan_debug.py"
84-
run_test "$_TEST_DIR/test_pallas.py" -v
85-
run_test "$_TEST_DIR/test_pallas_spmd.py"
86-
XLA_DISABLE_FUNCTIONALIZATION=1 run_test "$_TEST_DIR/test_pallas_spmd.py"
8784
run_test "$_TEST_DIR/test_splash_attention.py"
8885
run_test "$_TEST_DIR/test_profiler_session.py"
8986
run_test "$_TEST_DIR/test_input_output_aliases.py"

0 commit comments

Comments
 (0)