Skip to content

Commit 5548135

Browse files
committed
Minor change to test validate ci.
1 parent c5cd398 commit 5548135

File tree

1 file changed

+11
-22
lines changed

1 file changed

+11
-22
lines changed

.github/workflows/Validate-GPU.yml

Lines changed: 11 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -1,35 +1,28 @@
11
name: Validate-GPU
22

33
on:
4-
workflow_call:
5-
inputs:
6-
docker_build_image:
7-
type: string
8-
required: true
9-
clone_dir:
10-
type: string
11-
required: false
12-
default: 'Paddle'
13-
can-skip:
14-
type: string
15-
required: false
4+
pull_request:
5+
branches:
6+
- develop
167

178
env:
189
PR_ID: ${{ github.event.pull_request.number }}
1910
COMMIT_ID: ${{ github.event.pull_request.head.sha }}
20-
work_dir: /workspace
11+
work_dir: /GraphNet
12+
TASK: GraphNet-CI-${{ github.event.pull_request.number }}-Validate
2113
BRANCH: ${{ github.event.pull_request.base.ref }}
2214
CI_name: validate-gpu
2315
CFS_DIR: /home/data/cfs
2416
no_proxy: "bcebos.com,apiin.im.baidu.com,gitee.com,aliyun.com,.baidu.com,.tuna.tsinghua.edu.cn"
17+
docker_image: "ccr-2vdh3abv-pub.cnc.bj.baidubce.com/ci/paddle:4251d0b615371e0d0ed9040d7455e2b4" # cuda11.7
2518

2619
defaults:
2720
run:
2821
shell: bash
2922

3023
jobs:
31-
cinn:
32-
name: CINN
24+
validate:
25+
name: Validate
3326
if: ${{ inputs.can-skip != 'true' }}
3427
runs-on:
3528
group: BD_BJ-V100
@@ -40,30 +33,26 @@ jobs:
4033
run: |
4134
container_name=${TASK}-${core_index}-$(date +%Y%m%d-%H%M%S)
4235
echo "container_name=${container_name}" >> ${{ github.env }}
43-
docker_image=${{ inputs.docker_build_image }}
44-
docker container ls -a --filter "name=paddle-CI-*-api-benchmark-${core_index}*" --format "{{.ID}}" | xargs -r docker rm -f
45-
docker container ls -a --filter "name=api_benchmark_ci_baseline_" --format "{{.ID}} {{.CreatedAt}}" | awk '$2 <= "'$(date -d '1 day ago' +'%Y-%m-%d')'" {print $1}' | xargs -r docker rm -f
36+
docker container ls -a --filter "name=GraphNet-CI-*-Validate-${core_index}*" --format "{{.ID}}" | xargs -r docker rm -f
4637
docker run -d -t --gpus all --name ${container_name} --shm-size=128g \
4738
-v "/home/data/cfs:/home/data/cfs" \
4839
-v "/home/data/cfs/.cache:/root/.cache" \
4940
-v "/home/data/cfs/.ccache:/root/.ccache" \
5041
-v "/dev/shm:/dev/shm" \
5142
-v ${{ github.workspace }}/../../..:${{ github.workspace }}/../../.. \
52-
-v ${{ github.workspace }}:/paddle \
43+
-v ${{ github.workspace }}:${work_dir} \
5344
-e python \
5445
-e core_index \
5546
-e BRANCH \
5647
-e PR_ID \
5748
-e COMMIT_ID \
5849
-e work_dir \
59-
-e PADDLE_ROOT \
60-
-e ci_scripts \
6150
-e no_proxy \
6251
-e CI_name \
6352
-e CACHE_DIR \
6453
-e GITHUB_API_TOKEN \
6554
-e CFS_DIR \
66-
-w /paddle --network host ${docker_image}
55+
-w ${work_dir} --network host ${docker_image}
6756
6857
- name: Download Paddle and PaddleTest
6958
env:

0 commit comments

Comments
 (0)