From b31f2bb0cb47334c90dde6b89d96b2bbd1809d3c Mon Sep 17 00:00:00 2001 From: Grant Zukel Date: Wed, 13 Sep 2023 16:10:10 -0600 Subject: [PATCH] udpates --- .github/workflows/upgrade_path_testing.yaml | 26 +++++++++++++++++++-- 1 file changed, 24 insertions(+), 2 deletions(-) diff --git a/.github/workflows/upgrade_path_testing.yaml b/.github/workflows/upgrade_path_testing.yaml index 5e902d0df3..1e21b02862 100644 --- a/.github/workflows/upgrade_path_testing.yaml +++ b/.github/workflows/upgrade_path_testing.yaml @@ -167,7 +167,7 @@ jobs: echo "Start Network" nohup zetavisor start --rpc.laddr tcp://0.0.0.0:26657 --minimum-gas-prices ${GAS_PRICES} "--grpc.enable=true" > cosmovisor.log 2>&1 & - sleep 120 + sleep 240 cat cosmovisor.log - name: "DETERMINE_UPGRADE_TYPE" @@ -194,6 +194,28 @@ jobs: git_env_file.write("UPGRADE_TYPE=GOV") git_env_file.close() - - name: "CHECK_UPGRADE_TYPE" + - name: "NON_CONCENSUS_BREAKING_UPGRADE" + if: env.UPGRADE_TYPE == 'NONCON' + run: | + echo ${UPGRADE_TYPE} + echo "*********CHECK VERSION BEFORE BINARY SWITCH*********" + zetavisor version + + echo "*********KILLALL ZETAVISOR*********" + killall zetavisor + + echo "*********COPY UPGRADE BINARY TO NEW LOCATION*********" + cp /home/runner/.zetacored/zetavisor/upgrades/${{ github.event.inputs.version }}/bin/zetacored /home/runner/.zetacored/zetavisor/genesis/bin/zetacored + cp /home/runner/.zetacored/zetavisor/upgrades/${{ github.event.inputs.version }}/bin/zetacored /home/runner/.zetacored/zetavisor/current/bin/zetacored + nohup zetavisor start --rpc.laddr tcp://0.0.0.0:26657 --minimum-gas-prices ${GAS_PRICES} "--grpc.enable=true" > cosmovisor.log 2>&1 & + + sleep 240 + cat cosmovisor.log + echo "*********CHECK VERSION AFTER BINARY SWITCH*********" + zetavisor version + + + - name: "CONCENSUS_BREAKING_UPGRADE" + if: env.UPGRADE_TYPE == 'NONCON' run: | echo ${UPGRADE_TYPE} \ No newline at end of file