Skip to content

Commit

Permalink
ci: use elys runner (#503)
Browse files Browse the repository at this point in the history
  • Loading branch information
cosmic-vagabond authored May 15, 2024
1 parent 669cf22 commit 556fe39
Showing 1 changed file with 16 additions and 18 deletions.
34 changes: 16 additions & 18 deletions .github/workflows/software-upgrade-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ on:

jobs:
software-upgrade-test:
runs-on: ubuntu-latest
runs-on: elys-runner
timeout-minutes: 120

steps:
Expand All @@ -32,19 +32,17 @@ 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://tools.highstakes.ch/files/elys.tar.gz
SNAPSHOT_DOWNLOAD_URL=https://snapshots.elys.network/elys.tar.gz
SNAPSHOT_DOWNLOAD_URL=https://snapshots-testnet.stake-town.com/elys/elystestnet-1_latest.tar.lz4
echo "SNAPSHOT_DOWNLOAD_URL=$SNAPSHOT_DOWNLOAD_URL" >> $GITHUB_ENV
- name: Cache Directories
Expand All @@ -54,7 +52,7 @@ jobs:
path: |
/tmp/elys-backup
/tmp/elys2-backup
key: ${{ runner.os }}-backup-directories-${{ env.LATEST_TAG }}
key: ${{ runner.os }}-backup-directories-2-${{ env.LATEST_TAG }}

- name: Retrieve latest binary
run: |
Expand Down Expand Up @@ -115,7 +113,7 @@ jobs:

- name: Chain snapshot and export
run: |
GOMEMLIMIT=8GiB $OLD_UPGRADE_ASSURE_BINARY_PATH $SNAPSHOT_DOWNLOAD_URL $OLD_BINARY_PATH $NEW_BINARY_PATH \
GOMEMLIMIT=32GiB $OLD_UPGRADE_ASSURE_BINARY_PATH $SNAPSHOT_DOWNLOAD_URL $OLD_BINARY_PATH $NEW_BINARY_PATH \
--skip-chain-init \
--skip-node-start \
--timeout-next-block 100000 \
Expand All @@ -124,7 +122,7 @@ jobs:

- name: Chain initialization
run: |
GOMEMLIMIT=8GiB $OLD_UPGRADE_ASSURE_BINARY_PATH $SNAPSHOT_DOWNLOAD_URL $OLD_BINARY_PATH $NEW_BINARY_PATH \
GOMEMLIMIT=32GiB $OLD_UPGRADE_ASSURE_BINARY_PATH $SNAPSHOT_DOWNLOAD_URL $OLD_BINARY_PATH $NEW_BINARY_PATH \
--skip-snapshot \
--skip-node-start \
--timeout-next-block 100000 \
Expand All @@ -140,7 +138,7 @@ jobs:
timeout_minutes: 30
max_attempts: 3
command: |
GOMEMLIMIT=8GiB $NEW_UPGRADE_ASSURE_BINARY_PATH $SNAPSHOT_DOWNLOAD_URL $OLD_BINARY_PATH $NEW_BINARY_PATH \
GOMEMLIMIT=32GiB $NEW_UPGRADE_ASSURE_BINARY_PATH $SNAPSHOT_DOWNLOAD_URL $OLD_BINARY_PATH $NEW_BINARY_PATH \
--skip-snapshot \
--skip-chain-init \
--skip-prepare-validator-data \
Expand All @@ -156,7 +154,7 @@ jobs:
- name: Prepare second validator data
run: |
GOMEMLIMIT=8GiB $NEW_UPGRADE_ASSURE_BINARY_PATH $SNAPSHOT_DOWNLOAD_URL $OLD_BINARY_PATH $NEW_BINARY_PATH \
GOMEMLIMIT=32GiB $NEW_UPGRADE_ASSURE_BINARY_PATH $SNAPSHOT_DOWNLOAD_URL $OLD_BINARY_PATH $NEW_BINARY_PATH \
--skip-snapshot \
--skip-chain-init \
--skip-create-validator \
Expand All @@ -172,7 +170,7 @@ jobs:
timeout_minutes: 30
max_attempts: 3
command: |
GOMEMLIMIT=8GiB $NEW_UPGRADE_ASSURE_BINARY_PATH $SNAPSHOT_DOWNLOAD_URL $OLD_BINARY_PATH $NEW_BINARY_PATH \
GOMEMLIMIT=32GiB $NEW_UPGRADE_ASSURE_BINARY_PATH $SNAPSHOT_DOWNLOAD_URL $OLD_BINARY_PATH $NEW_BINARY_PATH \
--skip-snapshot \
--skip-chain-init \
--skip-create-validator \
Expand Down Expand Up @@ -201,7 +199,7 @@ jobs:
timeout_minutes: 30
max_attempts: 3
command: |
GOMEMLIMIT=8GiB $NEW_UPGRADE_ASSURE_BINARY_PATH $SNAPSHOT_DOWNLOAD_URL $NEW_BINARY_PATH $NEW_BINARY_PATH \
GOMEMLIMIT=32GiB $NEW_UPGRADE_ASSURE_BINARY_PATH $SNAPSHOT_DOWNLOAD_URL $NEW_BINARY_PATH $NEW_BINARY_PATH \
--skip-snapshot \
--skip-chain-init \
--skip-create-validator \
Expand Down

0 comments on commit 556fe39

Please sign in to comment.