From 1dc46b159a111a713a4b6beb3678b1c4f185eb52 Mon Sep 17 00:00:00 2001 From: Balaji Arun Date: Wed, 14 Jun 2023 17:58:38 -0700 Subject: [PATCH] duplicate spot runner --- .github/workflows/execution-performance.yaml | 10 +++++++++- .../workflow-run-execution-performance.yaml | 18 +++++++++++++++--- 2 files changed, 24 insertions(+), 4 deletions(-) diff --git a/.github/workflows/execution-performance.yaml b/.github/workflows/execution-performance.yaml index b044369437ce0..e3fe56c55e91a 100644 --- a/.github/workflows/execution-performance.yaml +++ b/.github/workflows/execution-performance.yaml @@ -7,4 +7,12 @@ jobs: uses: ./.github/workflows/workflow-run-execution-performance.yaml secrets: inherit with: - GIT_SHA: ${{ github.event.pull_request.head.sha || github.sha }} \ No newline at end of file + GIT_SHA: ${{ github.event.pull_request.head.sha || github.sha }} + RUNNER_NAME: executor-benchmark-runner + + spot-runner-execution-performance: + uses: ./.github/workflows/workflow-run-execution-performance.yaml + secrets: inherit + with: + GIT_SHA: ${{ github.event.pull_request.head.sha || github.sha }} + RUNNER_NAME: spot-runner \ No newline at end of file diff --git a/.github/workflows/workflow-run-execution-performance.yaml b/.github/workflows/workflow-run-execution-performance.yaml index 0d4afe99a4538..fcb5c6f8ffb89 100644 --- a/.github/workflows/workflow-run-execution-performance.yaml +++ b/.github/workflows/workflow-run-execution-performance.yaml @@ -8,6 +8,10 @@ on: required: true type: string description: The git SHA1 to test. + RUNNER_NAME: + required: false + default: executor-benchmark-runner + type: string # This allows the workflow to be triggered manually from the Github UI or CLI # NOTE: because the "number" type is not supported, we default to 720 minute timeout workflow_dispatch: @@ -16,11 +20,19 @@ on: required: true type: string description: The git SHA1 to test. + RUNNER_NAME: + required: false + default: executor-benchmark-runner + type: choice + options: + - spot-runner + - executor-benchmark-runner + description: The name of the runner to use for the test. jobs: sequential-execution-performance: timeout-minutes: 30 - runs-on: spot-runner + runs-on: ${{ inputs.RUNNER_NAME }} steps: - uses: actions/checkout@93ea575cb5d8a053eaa0ac8fa3b40d7e05a33cc8 # pin@v3 with: @@ -36,7 +48,7 @@ jobs: parallel-execution-performance: timeout-minutes: 60 - runs-on: spot-runner + runs-on: ${{ inputs.RUNNER_NAME }} steps: - uses: actions/checkout@93ea575cb5d8a053eaa0ac8fa3b40d7e05a33cc8 # pin@v3 with: @@ -52,7 +64,7 @@ jobs: single-node-performance: timeout-minutes: 60 - runs-on: spot-runner + runs-on: ${{ inputs.RUNNER_NAME }} steps: - uses: actions/checkout@93ea575cb5d8a053eaa0ac8fa3b40d7e05a33cc8 # pin@v3 with: