Unverified Commit a7790a92 authored by Hongxin Liu's avatar Hongxin Liu Committed by GitHub
Browse files

[devops] fix example test ci (#5504)

parent 131f32a0
...@@ -46,7 +46,7 @@ jobs: ...@@ -46,7 +46,7 @@ jobs:
matrix: ${{fromJson(needs.manual_check_matrix_preparation.outputs.matrix)}} matrix: ${{fromJson(needs.manual_check_matrix_preparation.outputs.matrix)}}
container: container:
image: hpcaitech/pytorch-cuda:2.1.0-12.1.0 image: hpcaitech/pytorch-cuda:2.1.0-12.1.0
options: --gpus all --rm -v /data/scratch/examples-data:/data/ options: --gpus all --rm -v /data/scratch/examples-data:/data/ -v /dev/shm
timeout-minutes: 15 timeout-minutes: 15
steps: steps:
- name: 📚 Checkout - name: 📚 Checkout
...@@ -60,5 +60,3 @@ jobs: ...@@ -60,5 +60,3 @@ jobs:
echo "Testing ${dir} now" echo "Testing ${dir} now"
cd "${PWD}/examples/${dir}" cd "${PWD}/examples/${dir}"
bash test_ci.sh bash test_ci.sh
env:
NCCL_SHM_DISABLE: 1
...@@ -78,7 +78,7 @@ jobs: ...@@ -78,7 +78,7 @@ jobs:
matrix: ${{fromJson(needs.detect-changed-example.outputs.matrix)}} matrix: ${{fromJson(needs.detect-changed-example.outputs.matrix)}}
container: container:
image: hpcaitech/pytorch-cuda:2.1.0-12.1.0 image: hpcaitech/pytorch-cuda:2.1.0-12.1.0
options: --gpus all --rm -v /data/scratch/examples-data:/data/ options: --gpus all --rm -v /data/scratch/examples-data:/data/ -v /dev/shm
timeout-minutes: 20 timeout-minutes: 20
concurrency: concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}-run-example-${{ matrix.directory }} group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}-run-example-${{ matrix.directory }}
...@@ -95,5 +95,3 @@ jobs: ...@@ -95,5 +95,3 @@ jobs:
example_dir=${{ matrix.directory }} example_dir=${{ matrix.directory }}
cd "${PWD}/examples/${example_dir}" cd "${PWD}/examples/${example_dir}"
bash test_ci.sh bash test_ci.sh
env:
NCCL_SHM_DISABLE: 1
...@@ -35,6 +35,7 @@ jobs: ...@@ -35,6 +35,7 @@ jobs:
matrix: ${{fromJson(needs.matrix_preparation.outputs.matrix)}} matrix: ${{fromJson(needs.matrix_preparation.outputs.matrix)}}
container: container:
image: hpcaitech/pytorch-cuda:2.1.0-12.1.0 image: hpcaitech/pytorch-cuda:2.1.0-12.1.0
options: --gpus all --rm -v /data/scratch/examples-data:/data/ -v /dev/shm
timeout-minutes: 10 timeout-minutes: 10
steps: steps:
- name: 📚 Checkout - name: 📚 Checkout
...@@ -50,8 +51,6 @@ jobs: ...@@ -50,8 +51,6 @@ jobs:
echo "Testing ${example_dir} now" echo "Testing ${example_dir} now"
cd "${PWD}/examples/${example_dir}" cd "${PWD}/examples/${example_dir}"
bash test_ci.sh bash test_ci.sh
env:
NCCL_SHM_DISABLE: 1
- name: Notify Lark - name: Notify Lark
id: message-preparation id: message-preparation
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment