|
42 | 42 | type: string
|
43 | 43 |
|
44 | 44 | jobs:
|
45 |
| - pathways: |
46 |
| - runs-on: ["self-hosted", "${{ inputs.device_type }}", "${{ inputs.device_name }}"] |
47 |
| - steps: |
48 |
| - - uses: actions/checkout@v4 |
49 |
| - - name: Start containers using script |
50 |
| - run: | |
51 |
| - bash docker_build_pathways_containers.sh |
52 |
| - # run: |
| 45 | + # pathways: |
53 | 46 | # runs-on: ["self-hosted", "${{ inputs.device_type }}", "${{ inputs.device_name }}"]
|
54 |
| - # container: |
55 |
| - # image: gcr.io/tpu-prod-env-multipod/maxtext_${{ github.run_id }}:tpu |
56 |
| - # volumes: |
57 |
| - # - /home/runner/actions-runner/_work/maxtext/maxtext:/deps |
58 |
| - # env: |
59 |
| - # XLA_PYTHON_CLIENT_MEM_FRACTION: ${{ inputs.xla_python_client_mem_fraction }} |
60 |
| - # TF_FORCE_GPU_ALLOW_GROWTH: ${{ inputs.tf_force_gpu_allow_growth }} |
61 |
| - # # JAX_PLATFORMS: "proxy" |
62 |
| - # # JAX_BACKEND_TARGET: "grpc://localhost:29000" |
63 |
| - # options: ${{ inputs.container_resource_option }} |
64 | 47 | # steps:
|
65 | 48 | # - uses: actions/checkout@v4
|
66 |
| - # - name: Run Tests |
| 49 | + # - name: Start containers using script |
67 | 50 | # run: |
|
68 |
| - # export JAX_PLATFORMS="proxy" |
69 |
| - # export JAX_BACKEND_TARGET="grpc://localhost:29000" |
70 |
| - # echo $JAX_BACKEND_TARGET |
71 |
| - # echo "Set Pathways env variables" |
72 |
| - # python3 -m pytest -s ${{ inputs.test_directory }} -m "${{ inputs.pytest_marker }}" |
| 51 | + # bash docker_build_pathways_containers.sh |
| 52 | + run: |
| 53 | + runs-on: ["self-hosted", "${{ inputs.device_type }}", "${{ inputs.device_name }}"] |
| 54 | + container: |
| 55 | + # image: gcr.io/tpu-prod-env-multipod/maxtext_${{ github.run_id }}:tpu |
| 56 | + image: gcr.io/tpu-prod-env-multipod/maxtext_jax_stable_stack:latest |
| 57 | + volumes: |
| 58 | + - /home/runner/actions-runner/_work/maxtext/maxtext:/deps |
| 59 | + env: |
| 60 | + XLA_PYTHON_CLIENT_MEM_FRACTION: ${{ inputs.xla_python_client_mem_fraction }} |
| 61 | + TF_FORCE_GPU_ALLOW_GROWTH: ${{ inputs.tf_force_gpu_allow_growth }} |
| 62 | + # JAX_PLATFORMS: "proxy" |
| 63 | + # JAX_BACKEND_TARGET: "grpc://localhost:29000" |
| 64 | + options: ${{ inputs.container_resource_option }} |
| 65 | + steps: |
| 66 | + - uses: actions/checkout@v4 |
| 67 | + # - name: Install Docker Compose and configure docker |
| 68 | + # run: | |
| 69 | + # # apt-get -y install docker |
| 70 | + # # apt-get -y install docker-compose-plugin |
| 71 | + # docker compose version |
| 72 | + # gcloud auth configure-docker us-docker.pkg.dev --quiet |
| 73 | + # - name: Start containers using script |
| 74 | + # run: | |
| 75 | + # bash docker_build_pathways_containers.sh |
| 76 | + - name: Set up Docker Compose |
| 77 | + uses: docker/setup-buildx-action@v2 |
| 78 | + with: |
| 79 | + driver-opts: image=moby/buildkit:v0.11.2-rootless |
| 80 | + |
| 81 | + - name: Build and run Docker Compose |
| 82 | + uses: docker/compose-action@v3 |
| 83 | + with: |
| 84 | + compose-file: /utils_pathways/docker-compose.yml # Path to your docker-compose.yml |
| 85 | + up: true # Start the containers |
| 86 | + down: true # Ensure containers are stopped after the job (important!) |
| 87 | + - name: Run Tests with Pathways backend |
| 88 | + run: | |
| 89 | + export JAX_PLATFORMS="proxy" |
| 90 | + export JAX_BACKEND_TARGET="grpc://localhost:29000" |
| 91 | + echo "Set Pathways env variables" |
| 92 | + echo $JAX_BACKEND_TARGET |
| 93 | + cd MaxText/ |
| 94 | + python3 -m pytest -s ${{ inputs.test_directory }} -m "${{ inputs.pytest_marker }}" |
0 commit comments