Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
23 changes: 16 additions & 7 deletions .github/workflows/Api-Benchmark-baseline.yml
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ jobs:
is_pr: 'false'

api-benchmark-baseline-schedule:
name: Api benchmark baseline
name: Api benchmark baseline with schedule
strategy:
matrix:
run-labels: [api-bm-20, api-bm-27]
Expand All @@ -62,17 +62,26 @@ jobs:
baseline: 'true'
run-labels: ${{ matrix.run-labels }}

api-benchmark-baseline-pr:
name: Api benchmark baseline
api-benchmark-baseline-pr-20:
name: Api benchmark baseline with PR on 20
if: github.event_name == 'workflow_dispatch' && github.event.inputs.job-name == 'api-benchmark'
strategy:
matrix:
run-labels: [api-bm-20, api-bm-27]
uses: ./.github/workflows/_Api-Benchmark.yml
needs: [clone, build-docker]
with:
docker_build_image: ${{ needs.build-docker.outputs.docker_build_image }}
baseline: 'true'
MANUALLY_PR_ID: ${{ inputs.PR_ID }}
MANUALLY_COMMIT_ID: ${{ inputs.COMMIT_ID }}
run-labels: ${{ matrix.run-labels }}
run-labels: api-bm-20

api-benchmark-baseline-pr-27:
name: Api benchmark baseline with PR on 27
if: github.event_name == 'workflow_dispatch' && github.event.inputs.job-name == 'api-benchmark'
uses: ./.github/workflows/_Api-Benchmark.yml
needs: [clone, build-docker]
with:
docker_build_image: ${{ needs.build-docker.outputs.docker_build_image }}
baseline: 'true'
MANUALLY_PR_ID: ${{ inputs.PR_ID }}
MANUALLY_COMMIT_ID: ${{ inputs.COMMIT_ID }}
run-labels: api-bm-27
2 changes: 1 addition & 1 deletion .github/workflows/_Api-Benchmark.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ env:
PADDLE_ROOT: /paddle
TASK: paddle-CI-${{ github.event.pull_request.number }}-api-benchmark
ci_scripts: /paddle/ci
BRANCH: ${{ github.event.pull_request.base.ref }}
BRANCH: ${{ github.event.pull_request.base.ref || github.ref_name }}
CI_name: api-benchmark
no_proxy: "bcebos.com,apiin.im.baidu.com,gitee.com,aliyun.com,.baidu.com,.tuna.tsinghua.edu.cn"

Expand Down