Skip to content

Commit

Permalink
Revert "Revert "swich to gcp""
Browse files Browse the repository at this point in the history
This reverts commit 72b46b6.
  • Loading branch information
areshand committed Aug 25, 2023
1 parent e9ae8c2 commit a5038be
Show file tree
Hide file tree
Showing 8 changed files with 37 additions and 37 deletions.
12 changes: 6 additions & 6 deletions .github/workflows/module-verify.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -35,9 +35,9 @@ jobs:
secrets: inherit
with:
GIT_SHA: ${{ inputs.GIT_SHA }}
BUCKET: aptos-testnet-backup-2223d95b
BUCKET: aptos-testnet-backup-b7b1ad7a
SUB_DIR: e1
BACKUP_CONFIG_TEMPLATE_PATH: terraform/helm/fullnode/files/backup/s3-public.yaml
BACKUP_CONFIG_TEMPLATE_PATH: terraform/helm/fullnode/files/backup/gcs.yaml
# workflow config
RUNS_ON: high-perf-docker-with-local-ssd
TIMEOUT_MINUTES: 20
Expand All @@ -48,9 +48,9 @@ jobs:
secrets: inherit
with:
GIT_SHA: ${{ inputs.GIT_SHA }}
BUCKET: aptos-mainnet-backup-backup-831a69a8
BUCKET: aptos-mainnet-backup-backup-e098483d
SUB_DIR: e1
BACKUP_CONFIG_TEMPLATE_PATH: terraform/helm/fullnode/files/backup/s3-public.yaml
BACKUP_CONFIG_TEMPLATE_PATH: terraform/helm/fullnode/files/backup/gcs.yaml
# workflow config
RUNS_ON: high-perf-docker-with-local-ssd
TIMEOUT_MINUTES: 20
Expand All @@ -61,9 +61,9 @@ jobs:
secrets: inherit
with:
GIT_SHA: ${{ github.event.pull_request.head.sha }}
BUCKET: aptos-testnet-backup-2223d95b
BUCKET: aptos-testnet-backup-b7b1ad7a
SUB_DIR: e1
BACKUP_CONFIG_TEMPLATE_PATH: terraform/helm/fullnode/files/backup/s3-public.yaml
BACKUP_CONFIG_TEMPLATE_PATH: terraform/helm/fullnode/files/backup/gcs.yaml
# workflow config
RUNS_ON: "high-perf-docker-with-local-ssd"
TIMEOUT_MINUTES: 20
18 changes: 9 additions & 9 deletions .github/workflows/replay-verify.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -51,16 +51,16 @@ jobs:
github.event_name == 'push' ||
github.event_name == 'workflow_dispatch' && (inputs.CHAIN_NAME == 'testnet' || inputs.CHAIN_NAME == 'all')
needs: determine-test-metadata
uses: aptos-labs/aptos-core/.github/workflows/workflow-run-replay-verify.yaml@main
uses: ./.github/workflows/workflow-run-replay-verify.yaml
secrets: inherit
with:
GIT_SHA: ${{ inputs.GIT_SHA }}
# replay-verify config
BUCKET: aptos-testnet-backup-2223d95b
BUCKET: aptos-testnet-backup-b7b1ad7a
SUB_DIR: e1
HISTORY_START: 250000000 # TODO: We need an exhaustive list of txns_to_skip before we can set this to 0.
TXNS_TO_SKIP: 46874937 151020059 409163615 409163669 409163708 409163774 409163845 409163955 409164059 409164191 414625832
BACKUP_CONFIG_TEMPLATE_PATH: terraform/helm/fullnode/files/backup/s3-public.yaml
BACKUP_CONFIG_TEMPLATE_PATH: terraform/helm/fullnode/files/backup/gcs.yaml
# workflow config
RUNS_ON: "high-perf-docker-with-local-ssd"
TIMEOUT_MINUTES: 840
Expand All @@ -71,33 +71,33 @@ jobs:
github.event_name == 'push' ||
github.event_name == 'workflow_dispatch' && (inputs.CHAIN_NAME == 'testnet' || inputs.CHAIN_NAME == 'all' )
needs: determine-test-metadata
uses: aptos-labs/aptos-core/.github/workflows/workflow-run-replay-verify.yaml@main
uses: ./.github/workflows/workflow-run-replay-verify.yaml
secrets: inherit
with:
GIT_SHA: ${{ inputs.GIT_SHA }}
# replay-verify config
BUCKET: aptos-mainnet-backup-backup-831a69a8
BUCKET: aptos-mainnet-backup-backup-e098483d
SUB_DIR: e1
HISTORY_START: 0
TXNS_TO_SKIP: 12253479 12277499 148358668
BACKUP_CONFIG_TEMPLATE_PATH: terraform/helm/fullnode/files/backup/s3-public.yaml
BACKUP_CONFIG_TEMPLATE_PATH: terraform/helm/fullnode/files/backup/gcs.yaml
# workflow config
RUNS_ON: "high-perf-docker-with-local-ssd"
TIMEOUT_MINUTES: 240

test-replay:
if: ${{ github.event_name == 'pull_request' }}
needs: determine-test-metadata
uses: aptos-labs/aptos-core/.github/workflows/workflow-run-replay-verify.yaml@main
uses: ./.github/workflows/workflow-run-replay-verify.yaml
secrets: inherit
with:
GIT_SHA: ${{ github.event.pull_request.head.sha }}
# replay-verify config
BUCKET: aptos-testnet-backup-2223d95b
BUCKET: aptos-testnet-backup-b7b1ad7a
SUB_DIR: e1
HISTORY_START: 250000000 # TODO: We need an exhaustive list of txns_to_skip before we can set this to 0.
TXNS_TO_SKIP: 46874937 151020059 409163615 409163669 409163708 409163774 409163845 409163955 409164059 409164191 414625832
BACKUP_CONFIG_TEMPLATE_PATH: terraform/helm/fullnode/files/backup/s3-public.yaml
BACKUP_CONFIG_TEMPLATE_PATH: terraform/helm/fullnode/files/backup/gcs.yaml
# workflow config
RUNS_ON: "high-perf-docker-with-local-ssd"
TIMEOUT_MINUTES: 20
10 changes: 5 additions & 5 deletions .github/workflows/workflow-run-module-verify.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -46,11 +46,11 @@ jobs:
with:
GIT_CREDENTIALS: ${{ secrets.GIT_CREDENTIALS }}

- name: Install AWS CLI
shell: bash
run: |
scripts/dev_setup.sh -b -i awscli
echo "${HOME}/bin/" >> $GITHUB_PATH # default INSTALL_DIR to path
- name: Install GCloud SDK
uses: "google-github-actions/setup-gcloud@62d4898025f6041e16b1068643bfc5a696863587" # pin@v1
with:
version: ">= 418.0.0"
install_components: "kubectl,gke-gcloud-auth-plugin"

- name: Build CLI binaries in release mode
shell: bash
Expand Down
10 changes: 5 additions & 5 deletions .github/workflows/workflow-run-replay-verify.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -94,11 +94,11 @@ jobs:
with:
GIT_CREDENTIALS: ${{ secrets.GIT_CREDENTIALS }}

- name: Install AWS CLI
shell: bash
run: |
scripts/dev_setup.sh -b -i awscli
echo "${HOME}/bin/" >> $GITHUB_PATH # default INSTALL_DIR to path
- name: Install GCloud SDK
uses: "google-github-actions/setup-gcloud@62d4898025f6041e16b1068643bfc5a696863587" # pin@v1
with:
version: ">= 418.0.0"
install_components: "kubectl,gke-gcloud-auth-plugin"

- name: Build CLI binaries in release mode
shell: bash
Expand Down
6 changes: 3 additions & 3 deletions developer-docs-site/docs/nodes/full-node/aptos-db-restore.md
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ Example command:
```bash
aptos node bootstrap-db \
--target-version 500000000 \
--command-adapter-config /path/to/s3-public.yaml \
--command-adapter-config /path/to/gcs.yaml \
--target-db-dir /path/to/local/db
```

Expand All @@ -74,7 +74,7 @@ Example command:
aptos node bootstrap-db \
--ledger-history-start-version 150000000 \
--target-version 155000000
--command-adapter-config /path/to/s3-public.yaml \
--command-adapter-config /path/to/gcs.yaml \
--target-db-dir /path/to/local/db
```

Expand All @@ -100,7 +100,7 @@ Example command:
aptos node bootstrap-db \
--ledger-history-start-version 0 \
--target-version use_the_largest_version_in_backup \
--command-adapter-config /path/to/s3-public.yaml \
--command-adapter-config /path/to/gcs.yaml \
--target-db-dir /path/to/local/db
```

Expand Down
4 changes: 2 additions & 2 deletions testsuite/module_verify_run_local.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,9 @@
def local_setup():
# Take these from the expected replay verify run
envs = {
"BUCKET": "aptos-testnet-backup-2223d95b",
"BUCKET": "aptos-testnet-backup-b7b1ad7a",
"SUB_DIR": "e1",
"BACKUP_CONFIG_TEMPLATE_PATH": "terraform/helm/fullnode/files/backup/s3-public.yaml",
"BACKUP_CONFIG_TEMPLATE_PATH": "terraform/helm/fullnode/files/backup/gcs.yaml",
}

# build backup tools
Expand Down
10 changes: 5 additions & 5 deletions testsuite/replay_verify.py
Original file line number Diff line number Diff line change
Expand Up @@ -73,16 +73,16 @@ def replay_verify_partition(
backup_config_template_path,
],
stdout=subprocess.PIPE,
stderr=subprocess.PIPE,
)
if process.stdout is None:
raise Exception(f"[partition {n}] stdout is None")
for line in iter(process.stdout.readline, b""):
print(f"[partition {n}] {line}", flush=True)

# set the returncode
process.communicate()
stdout_output, stderr_output = process.communicate()

return (n, process.returncode)
return (n, process.returncode, stdout_output, stderr_output)


def main():
Expand Down Expand Up @@ -157,10 +157,10 @@ def main():
print("[main process] finished")

err = False
for partition_num, return_code in all_partitions:
for partition_num, return_code, stdout, stderr in all_partitions:
if return_code != 0:
print("======== ERROR ========")
print(f"ERROR: partition {partition_num} failed (exit {return_code})")
print(f"ERROR: partition {partition_num} failed (exit {return_code}, {stderr})")
err = True

if err:
Expand Down
4 changes: 2 additions & 2 deletions testsuite/replay_verify_run_local.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,11 +18,11 @@ def local_setup():
# Take these from the expected replay verify run
envs = {
"TIMEOUT_MINUTES": "5",
"BUCKET": "aptos-testnet-backup-2223d95b",
"BUCKET": "aptos-testnet-backup-b7b1ad7a",
"SUB_DIR": "e1",
"HISTORY_START": "350000000",
"TXNS_TO_SKIP": "46874937 151020059",
"BACKUP_CONFIG_TEMPLATE_PATH": "terraform/helm/fullnode/files/backup/s3-public.yaml",
"BACKUP_CONFIG_TEMPLATE_PATH": "terraform/helm/fullnode/files/backup/gcs.yaml",
}

# build backup tools
Expand Down

0 comments on commit a5038be

Please sign in to comment.