From 4e77004d329e73275d57dc6ae4ac6b2597c97781 Mon Sep 17 00:00:00 2001 From: atalman Date: Fri, 4 Oct 2024 07:55:13 -0700 Subject: [PATCH] add_version_simplify --- .../workflows/userbenchmark-a100-release.yml | 17 ++++------------- userbenchmark/release-test/version.txt | 1 + 2 files changed, 5 insertions(+), 13 deletions(-) create mode 100644 userbenchmark/release-test/version.txt diff --git a/.github/workflows/userbenchmark-a100-release.yml b/.github/workflows/userbenchmark-a100-release.yml index ec433a1e0..27fb59ed1 100644 --- a/.github/workflows/userbenchmark-a100-release.yml +++ b/.github/workflows/userbenchmark-a100-release.yml @@ -39,22 +39,13 @@ jobs: set -x . "${SETUP_SCRIPT}" # remove old results + release_version=$(cat ./.userbenchmark/release-test/version.txt) if [ -d benchmark-output ]; then rm -Rf benchmark-output; fi pushd benchmark if [ -d .userbenchmark ]; then rm -Rf .userbenchmark; fi - MANUAL_WORKFLOW="release-test" - if [ -z "${MANUAL_WORKFLOW}" ]; then - # Figure out what userbenchmarks we should run, and run it - python ./.github/scripts/userbenchmark/schedule-benchmarks.py --platform ${PLATFORM_NAME} - if [ -d ./.userbenchmark ]; then - cp -r ./.userbenchmark ../benchmark-output - else - mkdir ../benchmark-output - fi - else - python run_benchmark.py release-test - cp -r ./.userbenchmark/release-test ../benchmark-output - fi + python run_benchmark.py release-test -c ${release_version} + cp -r ./.userbenchmark/release-test ../benchmark-output + - name: Upload artifact uses: actions/upload-artifact@v3 with: diff --git a/userbenchmark/release-test/version.txt b/userbenchmark/release-test/version.txt new file mode 100644 index 000000000..437459cd9 --- /dev/null +++ b/userbenchmark/release-test/version.txt @@ -0,0 +1 @@ +2.5.0