Skip to content

Commit a7790a9

Browse files
authored
[devops] fix example test ci (#5504)
1 parent 131f32a commit a7790a9

File tree

3 files changed

+3
-8
lines changed

3 files changed

+3
-8
lines changed

.github/workflows/example_check_on_dispatch.yml

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ jobs:
4646
matrix: ${{fromJson(needs.manual_check_matrix_preparation.outputs.matrix)}}
4747
container:
4848
image: hpcaitech/pytorch-cuda:2.1.0-12.1.0
49-
options: --gpus all --rm -v /data/scratch/examples-data:/data/
49+
options: --gpus all --rm -v /data/scratch/examples-data:/data/ -v /dev/shm
5050
timeout-minutes: 15
5151
steps:
5252
- name: 📚 Checkout
@@ -60,5 +60,3 @@ jobs:
6060
echo "Testing ${dir} now"
6161
cd "${PWD}/examples/${dir}"
6262
bash test_ci.sh
63-
env:
64-
NCCL_SHM_DISABLE: 1

.github/workflows/example_check_on_pr.yml

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ jobs:
7878
matrix: ${{fromJson(needs.detect-changed-example.outputs.matrix)}}
7979
container:
8080
image: hpcaitech/pytorch-cuda:2.1.0-12.1.0
81-
options: --gpus all --rm -v /data/scratch/examples-data:/data/
81+
options: --gpus all --rm -v /data/scratch/examples-data:/data/ -v /dev/shm
8282
timeout-minutes: 20
8383
concurrency:
8484
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}-run-example-${{ matrix.directory }}
@@ -95,5 +95,3 @@ jobs:
9595
example_dir=${{ matrix.directory }}
9696
cd "${PWD}/examples/${example_dir}"
9797
bash test_ci.sh
98-
env:
99-
NCCL_SHM_DISABLE: 1

.github/workflows/example_check_on_schedule.yml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,7 @@ jobs:
3535
matrix: ${{fromJson(needs.matrix_preparation.outputs.matrix)}}
3636
container:
3737
image: hpcaitech/pytorch-cuda:2.1.0-12.1.0
38+
options: --gpus all --rm -v /data/scratch/examples-data:/data/ -v /dev/shm
3839
timeout-minutes: 10
3940
steps:
4041
- name: 📚 Checkout
@@ -50,8 +51,6 @@ jobs:
5051
echo "Testing ${example_dir} now"
5152
cd "${PWD}/examples/${example_dir}"
5253
bash test_ci.sh
53-
env:
54-
NCCL_SHM_DISABLE: 1
5554
5655
- name: Notify Lark
5756
id: message-preparation

0 commit comments

Comments
 (0)