Skip to content

Commit

Permalink
[GHA] Use spot VM for executor-performance (#8677)
Browse files Browse the repository at this point in the history
* [GHA] Use spot VM for executor-performance

* test

* duplicate spot runner

* point workflow to main
  • Loading branch information
ibalajiarun authored and vusirikala committed Jun 21, 2023
1 parent edf7ed0 commit de14d26
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 4 deletions.
10 changes: 9 additions & 1 deletion .github/workflows/execution-performance.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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 }}
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
18 changes: 15 additions & 3 deletions .github/workflows/workflow-run-execution-performance.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand All @@ -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:
Expand All @@ -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:
Expand All @@ -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:
Expand Down

0 comments on commit de14d26

Please sign in to comment.