Skip to content

Commit

Permalink
[single node perf] Recalibrate and improve regression perf test
Browse files Browse the repository at this point in the history
Recalibrate for RG change
Update limits to be based on min_ratio / max_ratio of many runs
update module working set to 100
  • Loading branch information
igor-aptos committed Oct 8, 2024
1 parent 67f7ee6 commit f174199
Show file tree
Hide file tree
Showing 4 changed files with 191 additions and 108 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/execution-performance.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,6 @@ jobs:
GIT_SHA: ${{ github.event.pull_request.head.sha || github.sha }}
RUNNER_NAME: executor-benchmark-runner
# Run all tests only on the scheduled cadence, or explicitly requested
IS_FULL_RUN: ${{ github.event_name == 'schedule' || contains(github.event.pull_request.labels.*.name, 'CICD:run-execution-performance-full-test') }}
FLOW: ${{ (github.event_name == 'schedule' || contains(github.event.pull_request.labels.*.name, 'CICD:run-execution-performance-full-test')) && 'CONTINUOUS' || 'LAND_BLOCKING' }}
# Ignore target determination if on the scheduled cadence, or explicitly requested
IGNORE_TARGET_DETERMINATION: ${{ github.event_name == 'schedule' || contains(github.event.pull_request.labels.*.name, 'CICD:run-execution-performance-test') || contains(github.event.pull_request.labels.*.name, 'CICD:run-execution-performance-full-test') }}
50 changes: 32 additions & 18 deletions .github/workflows/workflow-run-execution-performance.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,16 +12,20 @@ on:
required: false
default: executor-benchmark-runner
type: string
IS_FULL_RUN:
FLOW:
required: false
default: false
type: boolean
description: Run complete version of the tests
default: CONTINUOUS
type: string
description: Which set of tests to run.
IGNORE_TARGET_DETERMINATION:
required: false
default: false
type: boolean
description: Ignore target determination and run the tests
SOURCE:
required: false
default: CI
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 @@ -36,18 +40,33 @@ on:
type: choice
options:
- executor-benchmark-runner
- benchmark-t2d-32
- benchmark-t2d-60
- benchmark-c3d-30
- benchmark-n4-32
- benchmark-c4-32
description: The name of the runner to use for the test.
IS_FULL_RUN:
FLOW:
required: false
default: false
type: boolean
description: Run complete version of the tests
default: LAND_BLOCKING
options:
- LAND_BLOCKING
- CONTINUOUS
- MAINNET
- MAINNET_LARGE_DB
type: choice
description: Which set of tests to run. MAINNET/MAINNET_LARGE_DB are for performance validation of mainnet nodes.
IGNORE_TARGET_DETERMINATION:
required: false
default: false
default: true
type: boolean
description: Ignore target determination and run the tests

SOURCE:
required: false
default: ADHOC
options:
- ADHOC
type: choice
jobs:
# This job determines which tests to run
test-target-determinator:
Expand All @@ -63,7 +82,7 @@ jobs:
# Run single node execution performance tests
single-node-performance:
needs: test-target-determinator
timeout-minutes: 60
timeout-minutes: 120
runs-on: ${{ inputs.RUNNER_NAME }}
steps:
- uses: actions/checkout@v4
Expand All @@ -78,13 +97,8 @@ jobs:

- name: Run single node execution benchmark in performance build mode
shell: bash
run: TABULATE_INSTALL=lib-only pip install tabulate && testsuite/single_node_performance.py
if: ${{ !inputs.IS_FULL_RUN && (inputs.IGNORE_TARGET_DETERMINATION || needs.test-target-determinator.outputs.run_execution_performance_test == 'true') }}

- name: Run full version of the single node execution benchmark in performance build mode
shell: bash
run: TABULATE_INSTALL=lib-only pip install tabulate && FLOW=CONTINUOUS testsuite/single_node_performance.py
if: ${{ inputs.IS_FULL_RUN && (inputs.IGNORE_TARGET_DETERMINATION || needs.test-target-determinator.outputs.run_execution_performance_test == 'true') }}
run: TABULATE_INSTALL=lib-only pip install tabulate && FLOW=${{ inputs.FLOW }} SOURCE=${{ inputs.SOURCE }} testsuite/single_node_performance.py
if: ${{ (inputs.IGNORE_TARGET_DETERMINATION || needs.test-target-determinator.outputs.run_execution_performance_test == 'true') }}

- run: echo "Skipping single node execution performance! Unrelated changes detected."
if: ${{ !inputs.IGNORE_TARGET_DETERMINATION && needs.test-target-determinator.outputs.run_execution_performance_test != 'true' }}
3 changes: 2 additions & 1 deletion testsuite/forge_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,8 @@


class HasAssertMultiLineEqual(Protocol):
def assertMultiLineEqual(self, first: str, second: str, msg: Any = ...) -> None: ...
def assertMultiLineEqual(self, first: str, second: str, msg: Any = ...) -> None:
...


def get_cwd() -> Path:
Expand Down
Loading

0 comments on commit f174199

Please sign in to comment.