Add workflow dispatch trigger to nightly perf (#10900)

This commit is contained in:
Yuwen Hu 2024-04-28 09:54:30 +08:00 committed by GitHub
parent ddfdaec137
commit 7c290d3f92
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -28,7 +28,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.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' || 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
@ -153,12 +153,12 @@ jobs:
python ../../../test/benchmark/check_results.py -c test1 -y ../../../test/benchmark/arc-perf-test.yaml python ../../../test/benchmark/check_results.py -c test1 -y ../../../test/benchmark/arc-perf-test.yaml
python ../../../test/benchmark/check_results.py -c test2 -y ../../../test/benchmark/arc-perf-transformers-434.yaml python ../../../test/benchmark/check_results.py -c test2 -y ../../../test/benchmark/arc-perf-transformers-434.yaml
find . -name "*test*.csv" -delete find . -name "*test*.csv" -delete
if [ ${{ github.event.schedule}} ]; then if [ ${{ github.event.schedule}} || [ ${{ github.event_name }} == "workflow_dispatch" ]; then
curl -T ./*.csv ${LLM_FTP_URL}/llm/nightly_perf/gpu/ curl -T ./*.csv ${LLM_FTP_URL}/llm/nightly_perf/gpu/
fi fi
llm-performance-test-on-spr: llm-performance-test-on-spr:
if: ${{ github.event.schedule || 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' || 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
@ -230,7 +230,7 @@ jobs:
done done
llm-performance-test-on-core: llm-performance-test-on-core:
if: ${{ github.event.schedule || 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' || 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
@ -297,12 +297,12 @@ jobs:
python -m pip install pandas==1.5.3 python -m pip install pandas==1.5.3
python csv_to_html.py -f $CSV_SAVE_PATH python csv_to_html.py -f $CSV_SAVE_PATH
cd ../../dev/benchmark/all-in-one/ cd ../../dev/benchmark/all-in-one/
if [ ${{ github.event.schedule}} ]; then if [ ${{ github.event.schedule}} || [ ${{ github.event_name }} == "workflow_dispatch" ]; then
curl -T ./*.csv ${LLM_FTP_URL}/llm/nightly_perf/core_${{ matrix.platform }}/ curl -T ./*.csv ${LLM_FTP_URL}/llm/nightly_perf/core_${{ matrix.platform }}/
fi fi
llm-performance-test-on-igpu: llm-performance-test-on-igpu:
if: ${{ github.event.schedule || 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' || 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
@ -868,7 +868,7 @@ jobs:
shell: cmd shell: cmd
run: | run: |
cd %CSV_SAVE_PATH% cd %CSV_SAVE_PATH%
IF "${{ github.event_name }}"=="schedule" ( IF "${{ github.event_name }}"=="schedule" OR "${{ github.event_name }}"=="workflow_dispatch" (
for %%f in (*.html) do ( for %%f in (*.html) do (
curl -T "%%f" %FTP_IGPU_NIGHTLY_PERF_PATH% curl -T "%%f" %FTP_IGPU_NIGHTLY_PERF_PATH%
) )