forked from aptos-labs/aptos-core
-
Notifications
You must be signed in to change notification settings - Fork 0
/
module_verify_run_local.py
executable file
·44 lines (34 loc) · 1.2 KB
/
module_verify_run_local.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
#!/usr/bin/env python3
# Copyright © Aptos Foundation
# SPDX-License-Identifier: Apache-2.0
# Test replay-verify by running it on a public testnet backup
# While the replay-verify composite Github Action is meant to run with aptos-core checked out in the current
# working directory, this test script is meant to be run from this separate repo. The environment variable APTOS_CORE_PATH
# is required to be set to the path of your local checkout of aptos-core, which will be used to build and copy over test dependencies.
import os
import subprocess
import module_verify
def local_setup():
# Take these from the expected replay verify run
envs = {
"BUCKET": "aptos-testnet-backup-2223d95b",
"SUB_DIR": "e1",
"BACKUP_CONFIG_TEMPLATE_PATH": "terraform/helm/fullnode/files/backup/s3-public.yaml",
}
# build backup tools
subprocess.run(
[
"cargo",
"build",
"--release",
"-p",
"aptos-debugger",
],
check=True,
)
# write to environment variables
for key, value in envs.items():
os.environ[key] = value
if __name__ == "__main__":
local_setup()
module_verify.main()