Skip to content

Commit fdfd38f

Browse files
swgu98Luckycheng222
authored andcommitted
[CI] api-benchmark baseline fix docker down (PaddlePaddle#74800)
* api baseline * api baseline
1 parent f04492f commit fdfd38f

File tree

2 files changed

+4
-36
lines changed

2 files changed

+4
-36
lines changed

.github/workflows/Api-Benchmark-baseline.yml

Lines changed: 0 additions & 33 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,6 @@ on:
1818
- others
1919
schedule:
2020
- cron: '0 21 * * *'
21-
- cron: '0 22 * * 3'
2221

2322
permissions: read-all
2423

@@ -77,35 +76,3 @@ jobs:
7776
MANUALLY_PR_ID: ${{ inputs.PR_ID }}
7877
MANUALLY_COMMIT_ID: ${{ inputs.COMMIT_ID }}
7978
run-labels: ${{ matrix.run-labels }}
80-
81-
test1:
82-
runs-on: ubuntu-latest
83-
if: github.event.schedule == '0 0 * * *'
84-
steps:
85-
- name: Test
86-
run: |
87-
echo "test1"
88-
89-
test2:
90-
runs-on: ubuntu-latest
91-
if: github.event.schedule == '0 21 * * *'
92-
steps:
93-
- name: Test
94-
run: |
95-
echo "test2"
96-
97-
test3:
98-
runs-on: ubuntu-latest
99-
if: github.event.schedule == '0 22 * * 3'
100-
steps:
101-
- name: Test
102-
run: |
103-
echo "test3"
104-
105-
test4:
106-
runs-on: ubuntu-latest
107-
if: github.event.schedule == '0 21 * * 1'
108-
steps:
109-
- name: Test
110-
run: |
111-
echo "test4"

.github/workflows/_Api-Benchmark.yml

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ jobs:
7676
- name: Check docker image and run container
7777
env:
7878
python: "python3.10"
79-
GIT_PR_ID: ${{ github.event.pull_request.number }}
79+
GIT_PR_ID: ${{ github.event.pull_request.number || '0' }}
8080
GITHUB_API_TOKEN: ${{ secrets.GITHUB_TOKEN }}
8181
RUN_ID: ${{ github.run_id }}
8282
wheel_link: https://paddle-github-action.bj.bcebos.com/PR/build/${{ github.event.pull_request.number }}/${{ github.event.pull_request.head.sha }}/paddlepaddle_gpu-0.0.0-cp310-cp310-linux_x86_64.whl
@@ -134,13 +134,14 @@ jobs:
134134
cp /paddle/PTSTools/Uploader/apibm_config.yml .
135135
source ${{ github.workspace }}/../../../proxy
136136
if [[ "${{ inputs.baseline }}" == "true" ]];then
137+
set -e
137138
if [[ "${{ inputs.MANUALLY_PR_ID }}" == "" ]]; then
138-
export pr_wheel_link=https://paddle-github-action.bj.bcebos.com/PR/build/${{ github.event.pull_request.number }}/${{ github.event.pull_request.head.sha }}/paddlepaddle_gpu-0.0.0-cp310-cp310-linux_x86_64.whl
139+
export pr_wheel_link=https://paddle-github-action.bj.bcebos.com/PR/build/$PR_ID/$COMMIT_ID/paddlepaddle_gpu-0.0.0-cp310-cp310-linux_x86_64.whl
139140
else
140141
export pr_wheel_link=https://paddle-github-action.bj.bcebos.com/PR/build/${{ inputs.MANUALLY_PR_ID }}/${{ inputs.MANUALLY_COMMIT_ID }}/paddlepaddle_gpu-0.0.0-cp310-cp310-linux_x86_64.whl
141142
fi
142143
${python} -m pip install $pr_wheel_link
143-
${python} runner_ci_action.py --yaml ../yaml/api_benchmark_fp32.yml --baseline_whl_link $pr_wheel_link
144+
${python} runner_ci_multipro_action.py --yaml ../yaml/sort_api_benchmark_fp32.yml --core_index ${core_index} --baseline_whl_link $pr_wheel_link
144145
exit 0
145146
fi
146147
${python} -m pip install $wheel_link

0 commit comments

Comments
 (0)