Make manually-triggered perf test able to choose which test to run (#11324)
This commit is contained in:
parent
1978f63f6b
commit
a2a5890b48
1 changed files with 25 additions and 4 deletions
29
.github/workflows/llm_performance_tests.yml
vendored
29
.github/workflows/llm_performance_tests.yml
vendored
|
|
@ -20,6 +20,27 @@ on:
|
||||||
# - "python/llm/test/benchmark/**"
|
# - "python/llm/test/benchmark/**"
|
||||||
# - "python/llm/dev/benchmark/all-in-one/**"
|
# - "python/llm/dev/benchmark/all-in-one/**"
|
||||||
workflow_dispatch:
|
workflow_dispatch:
|
||||||
|
inputs:
|
||||||
|
arc:
|
||||||
|
description: "If trigger performance test on Arc"
|
||||||
|
required: false
|
||||||
|
type: boolean
|
||||||
|
default: true
|
||||||
|
spr:
|
||||||
|
description: "If trigger performance test on SPR"
|
||||||
|
required: false
|
||||||
|
type: boolean
|
||||||
|
default: true
|
||||||
|
core:
|
||||||
|
description: "If trigger performance test on Core"
|
||||||
|
required: false
|
||||||
|
type: boolean
|
||||||
|
default: true
|
||||||
|
igpu:
|
||||||
|
description: "If trigger performance test on iGPU"
|
||||||
|
required: false
|
||||||
|
type: boolean
|
||||||
|
default: true
|
||||||
workflow_call:
|
workflow_call:
|
||||||
|
|
||||||
# A workflow run is made up of one or more jobs that can run sequentially or in parallel
|
# A workflow run is made up of one or more jobs that can run sequentially or in parallel
|
||||||
|
|
@ -28,7 +49,7 @@ jobs:
|
||||||
# uses: ./.github/workflows/llm-binary-build.yml
|
# uses: ./.github/workflows/llm-binary-build.yml
|
||||||
|
|
||||||
llm-performance-test-on-arc:
|
llm-performance-test-on-arc:
|
||||||
if: ${{ github.event.schedule || github.event_name == 'workflow_dispatch' || github.event.inputs.artifact == 'llm-performance-test-on-arc' || github.event.inputs.artifact == 'all' }} # please comment it for PR tests
|
if: ${{ github.event.schedule || ( github.event_name == 'workflow_dispatch' && inputs.arc ) || github.event.inputs.artifact == 'llm-performance-test-on-arc' || github.event.inputs.artifact == 'all' }} # please comment it for PR tests
|
||||||
# needs: llm-cpp-build # please uncomment it for PR tests
|
# needs: llm-cpp-build # please uncomment it for PR tests
|
||||||
strategy:
|
strategy:
|
||||||
fail-fast: false
|
fail-fast: false
|
||||||
|
|
@ -226,7 +247,7 @@ jobs:
|
||||||
|
|
||||||
|
|
||||||
llm-performance-test-on-spr:
|
llm-performance-test-on-spr:
|
||||||
if: ${{ github.event.schedule || github.event_name == 'workflow_dispatch' || github.event.inputs.artifact == 'llm-performance-test-on-spr' || github.event.inputs.artifact == 'all' }} # please comment it for PR tests
|
if: ${{ github.event.schedule || ( github.event_name == 'workflow_dispatch' && inputs.spr ) || github.event.inputs.artifact == 'llm-performance-test-on-spr' || github.event.inputs.artifact == 'all' }} # please comment it for PR tests
|
||||||
# needs: llm-cpp-build # please uncomment it for PR tests
|
# needs: llm-cpp-build # please uncomment it for PR tests
|
||||||
strategy:
|
strategy:
|
||||||
fail-fast: false
|
fail-fast: false
|
||||||
|
|
@ -298,7 +319,7 @@ jobs:
|
||||||
done
|
done
|
||||||
|
|
||||||
llm-performance-test-on-core:
|
llm-performance-test-on-core:
|
||||||
if: ${{ github.event.schedule || github.event_name == 'workflow_dispatch' || github.event.inputs.artifact == 'llm-performance-test-on-core' || github.event.inputs.artifact == 'all' }} # please comment it for PR tests
|
if: ${{ github.event.schedule || ( github.event_name == 'workflow_dispatch' && inputs.core ) || github.event.inputs.artifact == 'llm-performance-test-on-core' || github.event.inputs.artifact == 'all' }} # please comment it for PR tests
|
||||||
# needs: llm-cpp-build # please uncomment it for PR tests
|
# needs: llm-cpp-build # please uncomment it for PR tests
|
||||||
strategy:
|
strategy:
|
||||||
fail-fast: false
|
fail-fast: false
|
||||||
|
|
@ -371,7 +392,7 @@ jobs:
|
||||||
fi
|
fi
|
||||||
|
|
||||||
llm-performance-test-on-igpu:
|
llm-performance-test-on-igpu:
|
||||||
if: ${{ github.event.schedule || github.event_name == 'workflow_dispatch' || github.event.inputs.artifact == 'llm-performance-test-on-igpu' || github.event.inputs.artifact == 'all' }} # please comment it for PR tests
|
if: ${{ github.event.schedule || ( github.event_name == 'workflow_dispatch' && inputs.igpu ) || github.event.inputs.artifact == 'llm-performance-test-on-igpu' || github.event.inputs.artifact == 'all' }} # please comment it for PR tests
|
||||||
# needs: llm-cpp-build # please uncomment it for PR tests
|
# needs: llm-cpp-build # please uncomment it for PR tests
|
||||||
strategy:
|
strategy:
|
||||||
fail-fast: false
|
fail-fast: false
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue