Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
51 commits
Select commit Hold shift + click to select a range
37975bb
Add optional export post-state step to c-chain-reexecution custom action
aaronbuchwald Aug 13, 2025
3f740d7
Add workflow input for push-post-state dir to manual trigger
aaronbuchwald Aug 13, 2025
aed111d
Conditionally use R/W AWS role if pushing post-state
aaronbuchwald Aug 13, 2025
ea6d104
Add validation step to check valid s3 destination and avoid overwrite
aaronbuchwald Aug 13, 2025
1e7d10f
Fix push post state param
aaronbuchwald Aug 13, 2025
8e83f05
add pr trigger to test archive state
aaronbuchwald Aug 13, 2025
d059d49
fix param
aaronbuchwald Aug 13, 2025
24f6f55
fix action
aaronbuchwald Aug 13, 2025
1ccd5ee
fix dst var
aaronbuchwald Aug 13, 2025
2a3b012
reduce end block
aaronbuchwald Aug 13, 2025
b1cd03d
explicitly add exec data dir param
aaronbuchwald Aug 13, 2025
74f39f7
Pass env explicitly to task and add TODO to fix this
aaronbuchwald Aug 13, 2025
8f306f4
Set shell to bash
aaronbuchwald Aug 14, 2025
07ad5b0
Update custom action to use relative path for benchmark output file t…
aaronbuchwald Aug 14, 2025
94347bc
Update to use s5cmd instead of aws s3
aaronbuchwald Aug 14, 2025
9c005ac
Add support for passing config to cchain reexecution test
aaronbuchwald Aug 18, 2025
5178a1a
Add config input to custom action
aaronbuchwald Aug 18, 2025
272c1e1
Add optional input to reexecution arc workflow dispatch for vm config
aaronbuchwald Aug 18, 2025
99e9d48
Add firewood as predefined config
aaronbuchwald Aug 18, 2025
604ab1b
Merge branch 'master' into aaronbuchwald/reexecute-benchmark-configs
aaronbuchwald Aug 19, 2025
3d81d9a
Add matrix of configs and conditional trigger for manual workflow
aaronbuchwald Aug 19, 2025
21bfce3
pass config to task
aaronbuchwald Aug 19, 2025
026e1de
Define matrix for arc jobs
aaronbuchwald Aug 19, 2025
838adb5
fix needs
aaronbuchwald Aug 19, 2025
10a421a
handle multiline string
aaronbuchwald Aug 19, 2025
e98e50a
fix lint and improve config flag handling
aaronbuchwald Aug 20, 2025
56acd1b
Update JSON configs passed to ARC
aaronbuchwald Aug 20, 2025
eb70b33
Switch from running on arc to blacksmith
aaronbuchwald Aug 20, 2025
2ef1430
fix blacksmith migration
aaronbuchwald Aug 20, 2025
dd4b67a
Update benchmark readme to explain config and CI
aaronbuchwald Aug 20, 2025
2e7fd66
Merge branch 'master' into aaronbuchwald/reexecute-benchmark-configs
aaronbuchwald Aug 20, 2025
f2c3fa3
Address copilot comments
aaronbuchwald Aug 20, 2025
8b672dd
Address comments
aaronbuchwald Aug 20, 2025
68c739e
Switch from blacksmith and gh to native and image workflows
aaronbuchwald Aug 21, 2025
aecca0f
Merge branch 'master' into aaronbuchwald/reexecute-benchmark-configs
aaronbuchwald Aug 21, 2025
978fdc3
Fix broken link
aaronbuchwald Aug 21, 2025
1ae0fd8
Merge branch 'master' into aaronbuchwald/reexecute-benchmark-configs
aaronbuchwald Aug 21, 2025
54611d1
Document triggering via GH CLI
aaronbuchwald Aug 21, 2025
43847e6
fix arc label
aaronbuchwald Aug 22, 2025
687fb46
Unquote EOF
aaronbuchwald Aug 22, 2025
c951e01
Rename source block dir to block dir to disambiguate block from copy src
aaronbuchwald Aug 22, 2025
3b89ef1
Add src suffix to disambiguate copy source from execution dirs
aaronbuchwald Aug 22, 2025
8f4cf15
fix default values in taskfile
aaronbuchwald Aug 22, 2025
b497634
Merge branch 'master' into aaronbuchwald/add-dir-src-suffix
aaronbuchwald Aug 26, 2025
161c9ac
Address comments
aaronbuchwald Aug 26, 2025
0affbf0
Update flag naming
aaronbuchwald Aug 26, 2025
e5fa6bf
Update Taskfile.yml
aaronbuchwald Aug 26, 2025
d517150
Address comments
aaronbuchwald Aug 27, 2025
5a1f321
Update tests/reexecute/c/vm_reexecute_test.go
aaronbuchwald Aug 27, 2025
1abca54
Merge branch 'master' into aaronbuchwald/add-dir-src-suffix
aaronbuchwald Aug 27, 2025
be71412
Merge branch 'master' into aaronbuchwald/add-dir-src-suffix
aaronbuchwald Aug 28, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 6 additions & 6 deletions .github/actions/c-chain-reexecution-benchmark/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,10 @@ inputs:
end-block:
description: 'The end block for the benchmark.'
default: '250000'
source-block-dir:
block-dir-src:
description: 'The source block directory. Supports S3 directory/zip and local directories.'
default: 's3://avalanchego-bootstrap-testing/cchain-mainnet-blocks-1m-ldb/**'
current-state-dir:
current-state-dir-src:
description: 'The current state directory. Supports S3 directory/zip and local directories.'
default: 's3://avalanchego-bootstrap-testing/cchain-current-state-hashdb-full-100/**'
aws-role:
Expand Down Expand Up @@ -66,8 +66,8 @@ runs:
echo "BENCHMARK_OUTPUT_FILE=output.txt"
echo "START_BLOCK=${{ inputs.start-block }}"
echo "END_BLOCK=${{ inputs.end-block }}"
echo "SOURCE_BLOCK_DIR=${{ inputs.source-block-dir }}"
echo "CURRENT_STATE_DIR=${{ inputs.current-state-dir }}"
echo "BLOCK_DIR_SRC=${{ inputs.block-dir-src }}"
echo "CURRENT_STATE_DIR_SRC=${{ inputs.current-state-dir-src }}"
} >> $GITHUB_ENV
- name: Configure AWS Credentials
uses: aws-actions/configure-aws-credentials@v4
Expand All @@ -82,8 +82,8 @@ runs:
./scripts/run_task.sh reexecute-cchain-range-with-copied-data \
CONFIG=${{ inputs.config }} \
EXECUTION_DATA_DIR=${{ env.EXECUTION_DATA_DIR }} \
SOURCE_BLOCK_DIR=${{ env.SOURCE_BLOCK_DIR }} \
CURRENT_STATE_DIR=${{ env.CURRENT_STATE_DIR }} \
BLOCK_DIR_SRC=${{ env.BLOCK_DIR_SRC }} \
CURRENT_STATE_DIR_SRC=${{ env.CURRENT_STATE_DIR_SRC }} \
START_BLOCK=${{ env.START_BLOCK }} \
END_BLOCK=${{ env.END_BLOCK }} \
LABELS=${{ env.LABELS }} \
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,16 +6,16 @@
"config": "default",
"start-block": 101,
"end-block": 250000,
"source-block-dir": "s3://avalanchego-bootstrap-testing/cchain-mainnet-blocks-1m-ldb/**",
"current-state-dir": "s3://avalanchego-bootstrap-testing/cchain-current-state-hashdb-full-100/**"
"block-dir-src": "s3://avalanchego-bootstrap-testing/cchain-mainnet-blocks-1m-ldb/**",
"current-state-dir-src": "s3://avalanchego-bootstrap-testing/cchain-current-state-hashdb-full-100/**"
},
{
"runner": "avalanche-avalanchego-runner-2ti",
"config": "default",
"start-block": 101,
"end-block": 250000,
"source-block-dir": "s3://avalanchego-bootstrap-testing/cchain-mainnet-blocks-1m-ldb/**",
"current-state-dir": "s3://avalanchego-bootstrap-testing/cchain-current-state-hashdb-full-100/**"
"block-dir-src": "s3://avalanchego-bootstrap-testing/cchain-mainnet-blocks-1m-ldb/**",
"current-state-dir-src": "s3://avalanchego-bootstrap-testing/cchain-current-state-hashdb-full-100/**"
}
]
}
Expand Down
14 changes: 7 additions & 7 deletions .github/workflows/c-chain-reexecution-benchmark-container.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,11 +16,11 @@ on:
description: 'The end block for the benchmark.'
required: false
default: 250000
source-block-dir:
block-dir-src:
description: 'The source block directory. Supports S3 directory/zip and local directories.'
required: false
default: s3://avalanchego-bootstrap-testing/cchain-mainnet-blocks-1m-ldb/**
current-state-dir:
current-state-dir-src:
description: 'The current state directory. Supports S3 directory/zip and local directories.'
required: false
default: s3://avalanchego-bootstrap-testing/cchain-current-state-hashdb-full-100/**
Expand Down Expand Up @@ -49,11 +49,11 @@ jobs:
if [[ "${{ github.event_name }}" == "workflow_dispatch" ]]; then
{
echo "matrix<<EOF"
printf '{ "include": [{ "start-block": "%s", "end-block": "%s", "source-block-dir": "%s", "current-state-dir": "%s", "config": "%s", "runner": "%s" }] }' \
printf '{ "include": [{ "start-block": "%s", "end-block": "%s", "block-dir-src": "%s", "current-state-dir-src": "%s", "config": "%s", "runner": "%s" }] }' \
"${{ github.event.inputs.start-block }}" \
"${{ github.event.inputs.end-block }}" \
"${{ github.event.inputs.source-block-dir }}" \
"${{ github.event.inputs.current-state-dir }}" \
"${{ github.event.inputs.block-dir-src }}" \
"${{ github.event.inputs.current-state-dir-src }}" \
"${{ github.event.inputs.config }}" \
"${{ github.event.inputs.runner }}"
echo EOF
Expand Down Expand Up @@ -96,8 +96,8 @@ jobs:
config: ${{ matrix.config }}
start-block: ${{ matrix.start-block }}
end-block: ${{ matrix.end-block }}
source-block-dir: ${{ matrix.source-block-dir }}
current-state-dir: ${{ matrix.current-state-dir }}
block-dir-src: ${{ matrix.block-dir-src }}
current-state-dir-src: ${{ matrix.current-state-dir-src }}
prometheus-username: ${{ secrets.PROMETHEUS_ID || '' }}
prometheus-password: ${{ secrets.PROMETHEUS_PASSWORD || '' }}
push-github-action-benchmark: ${{ github.event_name == 'schedule' }}
Expand Down
24 changes: 12 additions & 12 deletions .github/workflows/c-chain-reexecution-benchmark-gh-native.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,24 +6,24 @@
"config": "default",
"start-block": 101,
"end-block": 250000,
"source-block-dir": "s3://avalanchego-bootstrap-testing/cchain-mainnet-blocks-1m-ldb/**",
"current-state-dir": "s3://avalanchego-bootstrap-testing/cchain-current-state-hashdb-full-100/**"
"block-dir-src": "s3://avalanchego-bootstrap-testing/cchain-mainnet-blocks-1m-ldb/**",
"current-state-dir-src": "s3://avalanchego-bootstrap-testing/cchain-current-state-hashdb-full-100/**"
},
{
"runner": "blacksmith-4vcpu-ubuntu-2404",
"config": "default",
"start-block": 101,
"end-block": 250000,
"source-block-dir": "s3://avalanchego-bootstrap-testing/cchain-mainnet-blocks-1m-ldb/**",
"current-state-dir": "s3://avalanchego-bootstrap-testing/cchain-current-state-hashdb-full-100/**"
"block-dir-src": "s3://avalanchego-bootstrap-testing/cchain-mainnet-blocks-1m-ldb/**",
"current-state-dir-src": "s3://avalanchego-bootstrap-testing/cchain-current-state-hashdb-full-100/**"
},
{
"runner": "blacksmith-4vcpu-ubuntu-2404",
"config": "archive",
"start-block": 101,
"end-block": 250000,
"source-block-dir": "s3://avalanchego-bootstrap-testing/cchain-mainnet-blocks-1m-ldb/**",
"current-state-dir": "s3://avalanchego-bootstrap-testing/cchain-current-state-hashdb-archive-100/**"
"block-dir-src": "s3://avalanchego-bootstrap-testing/cchain-mainnet-blocks-1m-ldb/**",
"current-state-dir-src": "s3://avalanchego-bootstrap-testing/cchain-current-state-hashdb-archive-100/**"
}
]
},
Expand All @@ -34,24 +34,24 @@
"config": "default",
"start-block": 101,
"end-block": 250000,
"source-block-dir": "s3://avalanchego-bootstrap-testing/cchain-mainnet-blocks-1m-ldb/**",
"current-state-dir": "s3://avalanchego-bootstrap-testing/cchain-current-state-hashdb-full-100/**"
"block-dir-src": "s3://avalanchego-bootstrap-testing/cchain-mainnet-blocks-1m-ldb/**",
"current-state-dir-src": "s3://avalanchego-bootstrap-testing/cchain-current-state-hashdb-full-100/**"
},
{
"runner": "blacksmith-4vcpu-ubuntu-2404",
"config": "archive",
"start-block": 101,
"end-block": 250000,
"source-block-dir": "s3://avalanchego-bootstrap-testing/cchain-mainnet-blocks-1m-ldb/**",
"current-state-dir": "s3://avalanchego-bootstrap-testing/cchain-current-state-hashdb-archive-100/**"
"block-dir-src": "s3://avalanchego-bootstrap-testing/cchain-mainnet-blocks-1m-ldb/**",
"current-state-dir-src": "s3://avalanchego-bootstrap-testing/cchain-current-state-hashdb-archive-100/**"
},
{
"runner": "blacksmith-4vcpu-ubuntu-2404",
"config": "firewood",
"start-block": 101,
"end-block": 250000,
"source-block-dir": "s3://avalanchego-bootstrap-testing/cchain-mainnet-blocks-1m-ldb/**",
"current-state-dir": "s3://avalanchego-bootstrap-testing/cchain-current-state-firewood-100/**"
"block-dir-src": "s3://avalanchego-bootstrap-testing/cchain-mainnet-blocks-1m-ldb/**",
"current-state-dir-src": "s3://avalanchego-bootstrap-testing/cchain-current-state-firewood-100/**"
}
]
}
Expand Down
14 changes: 7 additions & 7 deletions .github/workflows/c-chain-reexecution-benchmark-gh-native.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,11 +16,11 @@ on:
description: 'The end block for the benchmark.'
required: false
default: 250000
source-block-dir:
block-dir-src:
description: 'The source block directory. Supports S3 directory/zip and local directories.'
required: false
default: s3://avalanchego-bootstrap-testing/cchain-mainnet-blocks-1m-ldb/**
current-state-dir:
current-state-dir-src:
description: 'The current state directory. Supports S3 directory/zip and local directories.'
required: false
default: s3://avalanchego-bootstrap-testing/cchain-current-state-hashdb-full-100/**
Expand All @@ -46,11 +46,11 @@ jobs:
if [[ "${{ github.event_name }}" == "workflow_dispatch" ]]; then
{
echo "matrix<<EOF"
printf '{ "include": [{ "start-block": "%s", "end-block": "%s", "source-block-dir": "%s", "current-state-dir": "%s", "config": "%s", "runner": "%s" }] }\n' \
printf '{ "include": [{ "start-block": "%s", "end-block": "%s", "block-dir-src": "%s", "current-state-dir-src": "%s", "config": "%s", "runner": "%s" }] }\n' \
"${{ github.event.inputs.start-block }}" \
"${{ github.event.inputs.end-block }}" \
"${{ github.event.inputs.source-block-dir }}" \
"${{ github.event.inputs.current-state-dir }}" \
"${{ github.event.inputs.block-dir-src }}" \
"${{ github.event.inputs.current-state-dir-src }}" \
"${{ github.event.inputs.config }}" \
"${{ github.event.inputs.runner }}"
echo EOF
Expand Down Expand Up @@ -82,8 +82,8 @@ jobs:
config: ${{ matrix.config }}
start-block: ${{ matrix.start-block }}
end-block: ${{ matrix.end-block }}
source-block-dir: ${{ matrix.source-block-dir }}
current-state-dir: ${{ matrix.current-state-dir }}
block-dir-src: ${{ matrix.block-dir-src }}
current-state-dir-src: ${{ matrix.current-state-dir-src }}
prometheus-username: ${{ secrets.PROMETHEUS_ID || '' }}
prometheus-password: ${{ secrets.PROMETHEUS_PASSWORD || '' }}
push-github-action-benchmark: ${{ github.event_name == 'schedule' }}
Expand Down
28 changes: 14 additions & 14 deletions Taskfile.yml
Original file line number Diff line number Diff line change
Expand Up @@ -88,12 +88,12 @@ tasks:
export-cchain-block-range:
desc: Export range of C-Chain blocks from source to target directory.
vars:
SOURCE_BLOCK_DIR: '{{.SOURCE_BLOCK_DIR}}'
TARGET_BLOCK_DIR: '{{.TARGET_BLOCK_DIR}}'
BLOCK_DIR_SRC: '{{.BLOCK_DIR_SRC}}'
BLOCK_DIR_DST: '{{.BLOCK_DIR_DST}}'
START_BLOCK: '{{.START_BLOCK}}'
END_BLOCK: '{{.END_BLOCK}}'
cmds:
- cmd: go test -timeout=0 -run=TestExportBlockRange github.com/ava-labs/avalanchego/tests/reexecute/c --source-block-dir={{.SOURCE_BLOCK_DIR}} --target-block-dir={{.TARGET_BLOCK_DIR}} --start-block={{.START_BLOCK}} --end-block={{.END_BLOCK}}
- cmd: go test -timeout=0 -run=TestExportBlockRange github.com/ava-labs/avalanchego/tests/reexecute/c --block-dir-src={{.BLOCK_DIR_SRC}} --block-dir-dst={{.BLOCK_DIR_DST}} --start-block={{.START_BLOCK}} --end-block={{.END_BLOCK}}

export-dir-to-s3:
desc: Copies a directory to s3
Expand Down Expand Up @@ -131,16 +131,16 @@ tasks:
desc: Imports the C-Chain block and state data to re-execute. Defaults to import the first 200 and the current state created with the default config of the C-Chain (hashdb).
vars:
EXECUTION_DATA_DIR: '{{.EXECUTION_DATA_DIR}}'
SOURCE_BLOCK_DIR: '{{.SOURCE_BLOCK_DIR | default "s3://avalanchego-bootstrap-testing/cchain-mainnet-blocks-200-ldb/**"}}'
CURRENT_STATE_DIR: '{{.CURRENT_STATE_DIR | default "s3://avalanchego-bootstrap-testing/cchain-current-state-hashdb-full-100/**"}}'
BLOCK_DIR_SRC: '{{.BLOCK_DIR_SRC | default "s3://avalanchego-bootstrap-testing/cchain-mainnet-blocks-200-ldb/**"}}'
CURRENT_STATE_DIR_SRC: '{{.CURRENT_STATE_DIR_SRC | default "s3://avalanchego-bootstrap-testing/cchain-current-state-hashdb-full-100/**"}}'
cmds:
- task: import-s3-to-dir
vars:
SRC: '{{.SOURCE_BLOCK_DIR}}'
SRC: '{{.BLOCK_DIR_SRC}}'
DST: '{{.EXECUTION_DATA_DIR}}/blocks'
- task: import-s3-to-dir
vars:
SRC: '{{.CURRENT_STATE_DIR}}'
SRC: '{{.CURRENT_STATE_DIR_SRC}}'
DST: '{{.EXECUTION_DATA_DIR}}/current-state'

import-s3-to-dir:
Expand Down Expand Up @@ -185,15 +185,15 @@ tasks:
desc: Re-execute a range of C-Chain blocks.
vars:
CURRENT_STATE_DIR: '{{.CURRENT_STATE_DIR}}'
SOURCE_BLOCK_DIR: '{{.SOURCE_BLOCK_DIR}}'
BLOCK_DIR: '{{.BLOCK_DIR}}'
CONFIG: '{{.CONFIG | default ""}}'
START_BLOCK: '{{.START_BLOCK}}'
END_BLOCK: '{{.END_BLOCK}}'
LABELS: '{{.LABELS | default ""}}'
BENCHMARK_OUTPUT_FILE: '{{.BENCHMARK_OUTPUT_FILE | default ""}}'
cmd: |
CURRENT_STATE_DIR={{.CURRENT_STATE_DIR}} \
SOURCE_BLOCK_DIR={{.SOURCE_BLOCK_DIR}} \
BLOCK_DIR={{.BLOCK_DIR}} \
CONFIG={{.CONFIG}} \
START_BLOCK={{.START_BLOCK}} \
END_BLOCK={{.END_BLOCK}} \
Expand All @@ -205,21 +205,21 @@ tasks:
desc: Combines import-cchain-reexecute-range and reexecute-cchain-range
vars:
EXECUTION_DATA_DIR: '{{.EXECUTION_DATA_DIR}}'
SOURCE_BLOCK_DIR: '{{.SOURCE_BLOCK_DIR | default "s3://avalanchego-bootstrap-testing/cchain-mainnet-blocks-1m-ldb/"}}'
CURRENT_STATE_DIR: '{{.CURRENT_STATE_DIR | default "s3://avalanchego-bootstrap-testing/cchain-current-state-hashdb-full-100/"}}'
BLOCK_DIR_SRC: '{{.BLOCK_DIR_SRC | default "s3://avalanchego-bootstrap-testing/cchain-mainnet-blocks-1m-ldb/**"}}'
CURRENT_STATE_DIR_SRC: '{{.CURRENT_STATE_DIR_SRC | default "s3://avalanchego-bootstrap-testing/cchain-current-state-hashdb-full-100/**"}}'
START_BLOCK: '{{.START_BLOCK | default "101"}}'
END_BLOCK: '{{.END_BLOCK | default "250000"}}'
LABELS: '{{.LABELS | default ""}}'
BENCHMARK_OUTPUT_FILE: '{{.BENCHMARK_OUTPUT_FILE | default ""}}'
cmds:
- task: import-cchain-reexecute-range
vars:
SOURCE_BLOCK_DIR: '{{.SOURCE_BLOCK_DIR}}'
CURRENT_STATE_DIR: '{{.CURRENT_STATE_DIR}}'
BLOCK_DIR_SRC: '{{.BLOCK_DIR_SRC}}'
CURRENT_STATE_DIR_SRC: '{{.CURRENT_STATE_DIR_SRC}}'
EXECUTION_DATA_DIR: '{{.EXECUTION_DATA_DIR}}'
- task: reexecute-cchain-range
vars:
SOURCE_BLOCK_DIR: '{{.EXECUTION_DATA_DIR}}/blocks'
BLOCK_DIR: '{{.EXECUTION_DATA_DIR}}/blocks'
CURRENT_STATE_DIR: '{{.EXECUTION_DATA_DIR}}/current-state'
CONFIG: '{{.CONFIG}}'
START_BLOCK: '{{.START_BLOCK}}'
Expand Down
6 changes: 3 additions & 3 deletions scripts/benchmark_cchain_range.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,19 +4,19 @@ set -euo pipefail

# This script runs the C-Chain re-execution benchmark with a single iteration.
# It expects the following environment variables to be set:
# SOURCE_BLOCK_DIR: Path or S3 URL to the source block directory or zip.
# BLOCK_DIR: Path or S3 URL to the block directory or zip.
# CURRENT_STATE_DIR: Path or S3 URL to the current state directory or zip.
# START_BLOCK: The starting block height (exclusive).
# END_BLOCK: The ending block height (inclusive).
# LABELS (optional): Comma-separated key=value pairs for metric labels.
# BENCHMARK_OUTPUT_FILE (optional): If set, benchmark output is also written to this file.

: "${SOURCE_BLOCK_DIR:?SOURCE_BLOCK_DIR must be set}"
: "${BLOCK_DIR:?BLOCK_DIR must be set}"
: "${CURRENT_STATE_DIR:?CURRENT_STATE_DIR must be set}"
: "${START_BLOCK:?START_BLOCK must be set}"
: "${END_BLOCK:?END_BLOCK must be set}"

cmd="go test -timeout=0 -v -benchtime=1x -bench=BenchmarkReexecuteRange -run=^$ github.com/ava-labs/avalanchego/tests/reexecute/c --source-block-dir=\"${SOURCE_BLOCK_DIR}\" --target-dir=\"${CURRENT_STATE_DIR}\" ${CONFIG:+--config=\"${CONFIG}\"} --start-block=\"${START_BLOCK}\" --end-block=\"${END_BLOCK}\" ${LABELS:+--labels=\"${LABELS}\"}"
cmd="go test -timeout=0 -v -benchtime=1x -bench=BenchmarkReexecuteRange -run=^$ github.com/ava-labs/avalanchego/tests/reexecute/c --block-dir=\"${BLOCK_DIR}\" --current-state-dir=\"${CURRENT_STATE_DIR}\" ${CONFIG:+--config=\"${CONFIG}\"} --start-block=\"${START_BLOCK}\" --end-block=\"${END_BLOCK}\" ${LABELS:+--labels=\"${LABELS}\"}"

if [ -n "${BENCHMARK_OUTPUT_FILE:-}" ]; then
eval "$cmd" | tee "${BENCHMARK_OUTPUT_FILE}"
Expand Down
Loading
Loading