From 7c290d3f92a4a8e85bfb8a604f51aa22484e7f42 Mon Sep 17 00:00:00 2001 From: Yuwen Hu <54161268+Oscilloscope98@users.noreply.github.com> Date: Sun, 28 Apr 2024 09:54:30 +0800 Subject: [PATCH] Add workflow dispatch trigger to nightly perf (#10900) --- .github/workflows/llm_performance_tests.yml | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/.github/workflows/llm_performance_tests.yml b/.github/workflows/llm_performance_tests.yml index 48cc7dc7..e2b28426 100644 --- a/.github/workflows/llm_performance_tests.yml +++ b/.github/workflows/llm_performance_tests.yml @@ -28,7 +28,7 @@ jobs: # uses: ./.github/workflows/llm-binary-build.yml 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 strategy: 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 test2 -y ../../../test/benchmark/arc-perf-transformers-434.yaml 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/ fi 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 strategy: fail-fast: false @@ -230,7 +230,7 @@ jobs: done 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 strategy: fail-fast: false @@ -297,12 +297,12 @@ jobs: python -m pip install pandas==1.5.3 python csv_to_html.py -f $CSV_SAVE_PATH 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 }}/ fi 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 strategy: fail-fast: false @@ -868,7 +868,7 @@ jobs: shell: cmd run: | 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 ( curl -T "%%f" %FTP_IGPU_NIGHTLY_PERF_PATH% )