From de14d2672f90bcea0544bea6967919793867c83b Mon Sep 17 00:00:00 2001 From: Balaji Arun Date: Fri, 16 Jun 2023 09:46:58 -0700 Subject: [PATCH] [GHA] Use spot VM for executor-performance (#8677) * [GHA] Use spot VM for executor-performance * test * duplicate spot runner * point workflow to main --- .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 67216ee58e3f6..970839dca8eec 100644 --- a/.github/workflows/execution-performance.yaml +++ b/.github/workflows/execution-performance.yaml @@ -7,4 +7,12 @@ jobs: uses: aptos-labs/aptos-core/.github/workflows/workflow-run-execution-performance.yaml@main 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: aptos-labs/aptos-core/.github/workflows/workflow-run-execution-performance.yaml@main + 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 4e28733022147..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: executor-benchmark-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: executor-benchmark-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: executor-benchmark-runner + runs-on: ${{ inputs.RUNNER_NAME }} steps: - uses: actions/checkout@93ea575cb5d8a053eaa0ac8fa3b40d7e05a33cc8 # pin@v3 with: