From ecc45053b6722d1c4d4b23ee98e917a7c6f5005c Mon Sep 17 00:00:00 2001 From: Cosmic Vagabond <121588426+cosmic-vagabond@users.noreply.github.com> Date: Wed, 15 May 2024 19:22:58 +0200 Subject: [PATCH 1/2] ci: use diff snapshot (#497) --- .github/workflows/software-upgrade-test.yml | 19 ++++++++++--------- 1 file changed, 10 insertions(+), 9 deletions(-) diff --git a/.github/workflows/software-upgrade-test.yml b/.github/workflows/software-upgrade-test.yml index c43733189..11b96922c 100644 --- a/.github/workflows/software-upgrade-test.yml +++ b/.github/workflows/software-upgrade-test.yml @@ -32,17 +32,18 @@ jobs: - name: Retrieve info.json and set snapshot path run: | - DOWNLOAD_URL=https://snapshots-testnet.stake-town.com/elys/info.json - curl -L $DOWNLOAD_URL -o /tmp/info.json - echo "Info.json downloaded to check snapshot version." + # DOWNLOAD_URL=https://snapshots-testnet.stake-town.com/elys/info.json + # curl -L $DOWNLOAD_URL -o /tmp/info.json + # echo "Info.json downloaded to check snapshot version." - # retrieve blockHeight field value from info.json - SNAPSHOT_BLOCK_HEIGHT=$(cat /tmp/info.json | awk -F'"' '/"blockHeight":/{print $4}') - echo "SNAPSHOT_BLOCK_HEIGHT=$SNAPSHOT_BLOCK_HEIGHT" >> $GITHUB_ENV - echo "Snapshot block height: $SNAPSHOT_BLOCK_HEIGHT" + # # retrieve blockHeight field value from info.json + # SNAPSHOT_BLOCK_HEIGHT=$(cat /tmp/info.json | awk -F'"' '/"blockHeight":/{print $4}') + # echo "SNAPSHOT_BLOCK_HEIGHT=$SNAPSHOT_BLOCK_HEIGHT" >> $GITHUB_ENV + # echo "Snapshot block height: $SNAPSHOT_BLOCK_HEIGHT" # set snapshot download url - SNAPSHOT_DOWNLOAD_URL=https://snapshots-testnet.stake-town.com/elys/elystestnet-1_latest.tar.lz4 + # SNAPSHOT_DOWNLOAD_URL=https://snapshots-testnet.stake-town.com/elys/elystestnet-1_latest.tar.lz4 + SNAPSHOT_DOWNLOAD_URL=https://tools.highstakes.ch/files/elys.tar.gz echo "SNAPSHOT_DOWNLOAD_URL=$SNAPSHOT_DOWNLOAD_URL" >> $GITHUB_ENV - name: Cache Directories @@ -198,7 +199,7 @@ jobs: timeout_minutes: 30 max_attempts: 3 command: | - GOMEMLIMIT=4GiB $NEW_UPGRADE_ASSURE_BINARY_PATH $SNAPSHOT_DOWNLOAD_URL $NEW_BINARY_PATH $NEW_BINARY_PATH \ + GOMEMLIMIT=8GiB $NEW_UPGRADE_ASSURE_BINARY_PATH $SNAPSHOT_DOWNLOAD_URL $NEW_BINARY_PATH $NEW_BINARY_PATH \ --skip-snapshot \ --skip-chain-init \ --skip-create-validator \ From e0ad1c7873303e633fef4532d284b6d81dd7ba4b Mon Sep 17 00:00:00 2001 From: Cosmic Vagabond <121588426+cosmic-vagabond@users.noreply.github.com> Date: Wed, 15 May 2024 20:18:22 +0200 Subject: [PATCH 2/2] ci: use faster snapshot url (#498) --- .github/workflows/software-upgrade-test.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/workflows/software-upgrade-test.yml b/.github/workflows/software-upgrade-test.yml index 11b96922c..21be0122e 100644 --- a/.github/workflows/software-upgrade-test.yml +++ b/.github/workflows/software-upgrade-test.yml @@ -43,7 +43,8 @@ jobs: # set snapshot download url # SNAPSHOT_DOWNLOAD_URL=https://snapshots-testnet.stake-town.com/elys/elystestnet-1_latest.tar.lz4 - SNAPSHOT_DOWNLOAD_URL=https://tools.highstakes.ch/files/elys.tar.gz + # SNAPSHOT_DOWNLOAD_URL=https://tools.highstakes.ch/files/elys.tar.gz + SNAPSHOT_DOWNLOAD_URL=https://snapshots.elys.network/elys.tar.gz echo "SNAPSHOT_DOWNLOAD_URL=$SNAPSHOT_DOWNLOAD_URL" >> $GITHUB_ENV - name: Cache Directories