File tree Expand file tree Collapse file tree 3 files changed +7
-7
lines changed
Expand file tree Collapse file tree 3 files changed +7
-7
lines changed Original file line number Diff line number Diff line change 11#! /bin/bash
22set -euxo pipefail
33
4- # This script tests the migration(s) from Forest 0.19.2 to the current version.
4+ # This script tests the migration(s) from a given `FOREST_INIT_VERSION` to the current version.
55# As simple as it is, it will detect regressions in the migration process and breaking changes.
66
77source " $( dirname " $0 " ) /harness.sh"
@@ -11,11 +11,11 @@ mkdir -p "${DATA_DIR}"
1111
1212chmod -R 777 " ${DATA_DIR} "
1313
14- FOREST_INIT_VERSION=" 0.19.2 "
14+ FOREST_INIT_VERSION=" 0.30.0 "
1515
16- # Run Forest 0.19.2 with mounted db so that we can re-use it later.
16+ # Run older Forest with mounted db so that we can re-use it later.
1717docker run --init --rm --name forest-${FOREST_INIT_VERSION} \
18- --volume " ${DATA_DIR} " :/home/forest /.local/share/forest \
18+ --volume " ${DATA_DIR} " :/root /.local/share/forest \
1919 ghcr.io/chainsafe/forest:v${FOREST_INIT_VERSION} \
2020 --chain calibnet \
2121 --encrypt-keystore false \
@@ -58,7 +58,7 @@ export FULLNODE_API_INFO
5858forest_wait_for_sync
5959forest_check_db_stats
6060
61- # Assert there is no "0.19.2" directory in the database directory. This and a successful sync indicate that the database was successfully migrated.
61+ # Assert there is no old directory in the database directory. This and a successful sync indicate that the database was successfully migrated.
6262if [ -d " ${DATA_DIR} /calibnet/${FOREST_INIT_VERSION} " ]; then
6363 echo " Database directory not migrated"
6464 exit 1
Original file line number Diff line number Diff line change @@ -29,7 +29,7 @@ function forest_download_and_import_snapshot {
2929
3030function forest_download_and_import_snapshot_with_f3 {
3131 echo " Downloading v1 snapshot"
32- aria2c -x5 https://forest-archive.chainsafe.dev/latest/calibnet/ -o v1.forest.car.zst
32+ aria2c -x5 https://forest-archive.chainsafe.dev/latest-v1 /calibnet -o v1.forest.car.zst
3333 echo " Inspecting v1 snapshot"
3434 $FOREST_TOOL_PATH archive info v1.forest.car.zst
3535 echo " Downloading F3 snapshot"
Original file line number Diff line number Diff line change @@ -134,7 +134,7 @@ macro_rules! define_urls {
134134define_urls ! (
135135 const FOREST_MAINNET_COMPRESSED : & str = "https://forest-archive.chainsafe.dev/latest/mainnet/" ;
136136 const FOREST_CALIBNET_COMPRESSED : & str =
137- "https://forest-archive.chainsafe.dev/latest/calibnet/ " ;
137+ "https://forest-archive.chainsafe.dev/latest-v1 /calibnet" ;
138138) ;
139139
140140pub fn stable_url ( vendor : TrustedVendor , chain : & NetworkChain ) -> anyhow:: Result < Url > {
You can’t perform that action at this time.
0 commit comments