Skip to content

Commit 27fbae0

Browse files
committed
New changes to help run tests.
1 parent 62f10b7 commit 27fbae0

File tree

3 files changed

+26
-9
lines changed

3 files changed

+26
-9
lines changed

.github/workflows/RunTests.yml

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -35,14 +35,14 @@ jobs:
3535
- name: Cleanup old docker images
3636
run: docker system prune --all --force
3737

38-
tpu_image:
39-
needs: prelim
40-
uses: ./.github/workflows/build_upload_internal.yml
41-
with:
42-
device_type: tpu_pathways
43-
device_name: v4-8
44-
build_mode: stable_stack
45-
base_image: us-docker.pkg.dev/cloud-tpu-images/jax-stable-stack/tpu:latest
38+
# tpu_image:
39+
# needs: prelim
40+
# uses: ./.github/workflows/build_upload_internal.yml
41+
# with:
42+
# device_type: tpu_pathways
43+
# device_name: v4-8
44+
# build_mode: stable_stack
45+
# base_image: us-docker.pkg.dev/cloud-tpu-images/jax-stable-stack/tpu:latest
4646

4747
tpu_pathways_image:
4848
needs: prelim

.github/workflows/run_tests_internal.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -62,5 +62,6 @@ jobs:
6262
export JAX_PLATFORMS="proxy" ; export JAX_BACKEND_TARGET="grpc://localhost:29000" ; echo "Set Pathways env variables"
6363
- name: Run Tests
6464
run: |
65+
export JAX_PLATFORMS="proxy" ; export JAX_BACKEND_TARGET="grpc://localhost:29000" ; echo "Set Pathways env variables" ;
6566
cd MaxText
6667
python3 -m pytest -s ${{ inputs.test_directory }} -m "${{ inputs.pytest_marker }}"

docker_build_pathways_containers.sh

Lines changed: 17 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,19 @@
1+
#!/bin/bash
2+
3+
# Copyright 2023 Google LLC
4+
#
5+
# Licensed under the Apache License, Version 2.0 (the "License");
6+
# you may not use this file except in compliance with the License.
7+
# You may obtain a copy of the License at
8+
#
9+
# https://www.apache.org/licenses/LICENSE-2.0
10+
#
11+
# Unless required by applicable law or agreed to in writing, software
12+
# distributed under the License is distributed on an "AS IS" BASIS,
13+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14+
# See the License for the specific language governing permissions and
15+
# limitations under the License.
16+
117
apt-get install docker-compose-plugin
218
docker compose version
319
gcloud auth configure-docker us-docker.pkg.dev --quiet
@@ -6,7 +22,7 @@ cd utils_pathways
622
docker compose down
723
sleep 2
824
docker compose up &
9-
sleep 5
25+
sleep 15
1026
docker compose ps
1127

1228
export JAX_PLATFORMS="proxy"

0 commit comments

Comments
 (0)