Skip to content

Replay-verify on archive: Testnet #627

Replay-verify on archive: Testnet

Replay-verify on archive: Testnet #627

# This defines a workflow to replay transactions on the given chain with the latest aptos node software.
# In order to trigger it go to the Actions Tab of the Repo, click "replay-verify" and then "Run Workflow".
#
# On PR, a single test case will run. On workflow_dispatch, you may specify the CHAIN_NAME to verify.
name: "Replay-verify on archive: Testnet"
on:
# Allow triggering manually
workflow_dispatch:
inputs:
GIT_SHA:
required: false
type: string
description: The git commit to use. If not specified, it will use the latest commit on current branch.
IMAGE_PROFILE:
required: false
type: string
default: performance
description: Build the image with this `--profile` option. Use `performance` if not specified.
START_VERSION:
required: false
type: string
description: Optional version to start replaying. If not specified, replay-verify will determine start version itself.
END_VERSION:
required: false
type: string
description: Optional version to end replaying. If not specified, replay-verify will determine end version itself.
DRY_RUN:
required: false
type: boolean
description: If true, the workflow will not run replay verify nor build images.
default: false
pull_request:
paths:
- ".github/workflows/replay-verify-testnet.yaml"
- ".github/workflows/workflow-run-replay-verify-on-archive.yaml"
# schedule: # NOTE: the schedule is dictated by PIES
permissions:
contents: read
id-token: write #required for GCP Workload Identity federation which we use to login into Google Artifact Registry
issues: read
pull-requests: read
# cancel redundant builds
concurrency:
# cancel redundant builds on PRs (only on PR, not on branches)
group: ${{ github.workflow }}-${{ (github.event_name == 'pull_request' && github.ref) || github.sha }}-${{ inputs.GIT_SHA || 'latest' }}
cancel-in-progress: true
jobs:
replay:
if: github.event_name == 'workflow_dispatch'
uses: ./.github/workflows/workflow-run-replay-verify-on-archive.yaml
secrets: inherit
with:
NETWORK: "testnet"
GIT_SHA: ${{ inputs.GIT_SHA }}
IMAGE_PROFILE: ${{ inputs.IMAGE_PROFILE }}
START_VERSION: ${{ inputs.START_VERSION }}
END_VERSION: ${{ inputs.END_VERSION }}
DRY_RUN: ${{ inputs.DRY_RUN || false }}