-
Notifications
You must be signed in to change notification settings - Fork 3.7k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[CI] Adjust the replay verify job (#5849)
* [replay-verify] Add adjust the CI task * fixup! [replay-verify] Add adjust the CI task
- Loading branch information
1 parent
d0e0a26
commit 9ad772f
Showing
7 changed files
with
114 additions
and
22 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
runs: | ||
using: composite | ||
steps: | ||
- uses: ./.github/actions/rust-setup | ||
- name: install dependencies | ||
shell: bash | ||
run: | | ||
echo "${HOME}/bin/" >> $GITHUB_PATH # default INSTALL_DIR to path | ||
scripts/dev_setup.sh -b -i awscli # install individual tool awscli in batch mode | ||
sudo apt-get update -y && sudo apt-get install -y expect | ||
- name: Build CLI binaries in release mode | ||
shell: bash | ||
run: cargo build --release -p aptos-backup-cli --bin replay-verify --bin db-backup | ||
- name: query latest version in backup, at the same time, pre-heat metadata cache | ||
shell: bash | ||
run: | | ||
set -o nounset -o errexit -o pipefail | ||
target/release/db-backup one-shot query backup-storage-state \ | ||
--metadata-cache-dir ./metadata-cache \ | ||
command-adapter --config terraform/helm/fullnode/files/backup/$CONFIG_TEMPLATE_NAME \ | ||
| echo LATEST_VERSION=`grep -Po '(?<=latest_transaction_version: )\d+'` \ | ||
| tee -a $GITHUB_ENV | ||
- name: run verify-modules in parallel | ||
shell: bash | ||
run: | | ||
mkdir local | ||
cp -r metadata-cache local/ | ||
unbuffer target/release/replay-verify \ | ||
--validate-modules \ | ||
--concurrent-downloads 16 \ | ||
--replay-concurrency-level 4 \ | ||
--metadata-cache-dir ./local/metadata-cache \ | ||
--target-db-dir ./local/db \ | ||
--start-version $LATEST_VERSION \ | ||
command-adapter --config terraform/helm/fullnode/files/backup/s3-public.yaml 2>&1 \ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
# This defines a workflow to verify all modules that have been published on chain with the latest aptos node software. | ||
# In order to trigger it go to the Actions Tab of the Repo, click "Verify Modules" and then "Run Workflow". | ||
|
||
name: "Verify Modules" | ||
on: | ||
# Allow triggering manually | ||
workflow_dispatch: | ||
inputs: | ||
GIT_SHA: | ||
required: false | ||
type: string | ||
description: The git SHA1 to test. If not specified, Forge will check the latest commits on the current branch | ||
pull_request: | ||
paths: | ||
- ".github/workflows/nightly-replay-verify.yaml" | ||
|
||
env: | ||
BUCKET: aptos-mainnet-backup-backup-831a69a8 | ||
SUB_DIR: e1 | ||
CONFIG_TEMPLATE_NAME: s3-public.yaml | ||
|
||
jobs: | ||
replay-transactions: | ||
timeout-minutes: 10 | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@93ea575cb5d8a053eaa0ac8fa3b40d7e05a33cc8 # pin@v3 | ||
with: | ||
ref: ${{ inputs.GIT_SHA }} | ||
fetch-depth: 0 # get all the history because cargo xtest --change-since origin/main requires it. | ||
- uses: ./.github/actions/verify-modules |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
# This defines a workflow to verify all modules that have been published on chain with the latest aptos node software. | ||
# In order to trigger it go to the Actions Tab of the Repo, click "Verify Modules" and then "Run Workflow". | ||
|
||
name: "Verify Modules" | ||
on: | ||
# Allow triggering manually | ||
workflow_dispatch: | ||
inputs: | ||
GIT_SHA: | ||
required: false | ||
type: string | ||
description: The git SHA1 to test. If not specified, Forge will check the latest commits on the current branch | ||
pull_request: | ||
paths: | ||
- ".github/workflows/nightly-replay-verify.yaml" | ||
|
||
env: | ||
BUCKET: aptos-testnet-backup-2223d95b | ||
SUB_DIR: e1 | ||
CONFIG_TEMPLATE_NAME: s3-public.yaml | ||
|
||
jobs: | ||
replay-transactions: | ||
timeout-minutes: 720 | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@93ea575cb5d8a053eaa0ac8fa3b40d7e05a33cc8 # pin@v3 | ||
with: | ||
ref: ${{ inputs.GIT_SHA }} | ||
fetch-depth: 0 # get all the history because cargo xtest --change-since origin/main requires it. | ||
- uses: ./.github/actions/verify-modules |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters