From 487b28786a0ae15ac25d2b2a69550351628b73da Mon Sep 17 00:00:00 2001 From: Billy Yang Date: Fri, 21 Jul 2023 13:19:55 -0600 Subject: [PATCH 1/7] Added Discord announcement for upgrade --- .github/workflows/build.yml | 39 +++++++++++++++++++++++++++++++++++++ 1 file changed, 39 insertions(+) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 797e7497a3..090a157fe4 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -441,3 +441,42 @@ jobs: zetaclientd-ubuntu-20-amd64 + discord_announcement: + #runs-on: ubuntu-latest + runs-on: ["zeta-runners"] + timeout-minutes: 15 + if: startsWith(github.ref, 'refs/tags/') + needs: + - upgrade_path_testing + + steps: + - uses: actions/checkout@v3 + + # - name: setup-git-credentials + # uses: de-vri-es/setup-git-credentials@v2.0.8 + # with: + # credentials: ${{ secrets.PAT_GITHUB_SERVICE_ACCT }} + + - name: "SEND:DISCORD:MESSAGE" + if: ${{ github.event.inputs.DRY_RUN != 'true' }} + uses: gzukel/CosmosComposites/send_discord_message@main + with: + discord_token: "${{ secrets.DISCORD_TOKEN }}" + discord_channel_id: "${{ secrets.DISCORD_CHANNEL_ID }}" + discord_message: | + + Hey <@&1122981184255840306>! A new version of the zetachain node has been released. + + If this is a Major Version Upgrade + Major Version Upgrade (e.g. v5.x.x to V6.x.x) must be completed through a governance proposal. + We will raise a governance proposal on Monday at 15:00 UTC with a 12 hour voting period. + The upgrade will be scheduled for Tuesday at approximately 15:00 UTC. + More specific information including block height will be shared on Monday as part of the governance proposal + + + If this a patch (e.g. v5.0.0 > v5.0.1) a governance proposal is not required. + This patch is optional unless otherwise specified by the ZetaChain team. + + + See the release notes for more details. + From 02077e5efcb96e2decfa385bf34f279aae3acb4f Mon Sep 17 00:00:00 2001 From: Billy Yang Date: Fri, 21 Jul 2023 14:06:44 -0600 Subject: [PATCH 2/7] updated build.yml --- .github/workflows/build.yml | 18 ------------------ 1 file changed, 18 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 090a157fe4..3be6d06e52 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -440,25 +440,7 @@ jobs: zetacored-ubuntu-20-amd64 zetaclientd-ubuntu-20-amd64 - - discord_announcement: - #runs-on: ubuntu-latest - runs-on: ["zeta-runners"] - timeout-minutes: 15 - if: startsWith(github.ref, 'refs/tags/') - needs: - - upgrade_path_testing - - steps: - - uses: actions/checkout@v3 - - # - name: setup-git-credentials - # uses: de-vri-es/setup-git-credentials@v2.0.8 - # with: - # credentials: ${{ secrets.PAT_GITHUB_SERVICE_ACCT }} - - name: "SEND:DISCORD:MESSAGE" - if: ${{ github.event.inputs.DRY_RUN != 'true' }} uses: gzukel/CosmosComposites/send_discord_message@main with: discord_token: "${{ secrets.DISCORD_TOKEN }}" From 25d742225e4a85824e3d7da645f66174e7918756 Mon Sep 17 00:00:00 2001 From: Billy Yang Date: Fri, 21 Jul 2023 14:39:38 -0600 Subject: [PATCH 3/7] update build.yml for discord announcement --- .github/workflows/build.yml | 50 ++++++++++++++++++++++++++++--------- 1 file changed, 38 insertions(+), 12 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 3be6d06e52..def70d291f 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -440,25 +440,51 @@ jobs: zetacored-ubuntu-20-amd64 zetaclientd-ubuntu-20-amd64 + - name: Determine Release Type + run: | + if [[ "${{ env.BINARY_VERSION }}" =~ ^v[0-9]+\.[0-9]+\.[0-9]+$ ]]; then + echo "RELEASE_TYPE=major" >> ${GITHUB_ENV} + elif [[ "${{ env.BINARY_VERSION }}" =~ ^v[0-9]+\.0\.0$ ]]; then + echo "RELEASE_TYPE=major" >> ${GITHUB_ENV} + elif [[ "${{ env.BINARY_VERSION }}" =~ ^v[0-9]+\.[0-9]+\.0$ ]]; then + echo "RELEASE_TYPE=major" >> ${GITHUB_ENV} + elif [[ "${{ env.BINARY_VERSION }}" =~ ^v[0-9]+\.[0-9]+\.[1-9]+$ ]]; then + echo "RELEASE_TYPE=minor" >> ${GITHUB_ENV} + else + echo "RELEASE_TYPE=unknown" >> ${GITHUB_ENV} + fi + id: determine_release_type + - name: "SEND:DISCORD:MESSAGE" + if: steps.determine_release_type.outputs.RELEASE_TYPE == 'major' uses: gzukel/CosmosComposites/send_discord_message@main with: discord_token: "${{ secrets.DISCORD_TOKEN }}" discord_channel_id: "${{ secrets.DISCORD_CHANNEL_ID }}" discord_message: | - Hey <@&1122981184255840306>! A new version of the zetachain node has been released. - - If this is a Major Version Upgrade + + If this is a Major Version Upgrade: Major Version Upgrade (e.g. v5.x.x to V6.x.x) must be completed through a governance proposal. - We will raise a governance proposal on Monday at 15:00 UTC with a 12 hour voting period. + We will raise a governance proposal on Monday at 15:00 UTC with a 12-hour voting period. The upgrade will be scheduled for Tuesday at approximately 15:00 UTC. - More specific information including block height will be shared on Monday as part of the governance proposal - - - If this a patch (e.g. v5.0.0 > v5.0.1) a governance proposal is not required. - This patch is optional unless otherwise specified by the ZetaChain team. - - - See the release notes for more details. + More specific information including block height will be shared on Monday as part of the governance proposal. + + See the release notes for more details. + + - name: "SEND:DISCORD:MESSAGE" + if: steps.determine_release_type.outputs.RELEASE_TYPE == 'minor' + uses: gzukel/CosmosComposites/send_discord_message@main + with: + discord_token: "${{ secrets.DISCORD_TOKEN }}" + discord_channel_id: "${{ secrets.DISCORD_CHANNEL_ID }}" + discord_message: | + Hey <@&1122981184255840306>! A new version of the zetachain node has been released. + + If this is a Minor Version Upgrade: + Minor Version Upgrade (e.g. v5.0.x to v5.1.x) can be applied without a governance proposal. + Please review the release notes for any specific upgrade instructions or considerations. + + See the release notes for more details. + From aec775a251b8a63a16087794ca29375de31d234f Mon Sep 17 00:00:00 2001 From: Billy Yang Date: Tue, 25 Jul 2023 09:14:21 -0600 Subject: [PATCH 4/7] clean up extra spaces in build.yml --- .github/workflows/build.yml | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index def70d291f..e6661ddba7 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -485,6 +485,4 @@ jobs: Minor Version Upgrade (e.g. v5.0.x to v5.1.x) can be applied without a governance proposal. Please review the release notes for any specific upgrade instructions or considerations. - See the release notes for more details. - - + See the release notes for more details. \ No newline at end of file From 17a8ea544261eeab023ac5a82348e2ef134b9a30 Mon Sep 17 00:00:00 2001 From: Billy Yang Date: Tue, 25 Jul 2023 10:24:18 -0600 Subject: [PATCH 5/7] updated discord announcement in build.yml --- .github/workflows/build.yml | 28 +++++++++++++--------------- 1 file changed, 13 insertions(+), 15 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index e6661ddba7..4126bb507e 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -463,26 +463,24 @@ jobs: discord_channel_id: "${{ secrets.DISCORD_CHANNEL_ID }}" discord_message: | Hey <@&1122981184255840306>! A new version of the zetachain node has been released. - - If this is a Major Version Upgrade: + Major Version Upgrade (e.g. v5.x.x to V6.x.x) must be completed through a governance proposal. We will raise a governance proposal on Monday at 15:00 UTC with a 12-hour voting period. The upgrade will be scheduled for Tuesday at approximately 15:00 UTC. More specific information including block height will be shared on Monday as part of the governance proposal. - See the release notes for more details. + See the release notes for more details. https://github.com/zeta-chain/node/releases/tag/${{ env.BINARY_VERSION }} - - name: "SEND:DISCORD:MESSAGE" - if: steps.determine_release_type.outputs.RELEASE_TYPE == 'minor' - uses: gzukel/CosmosComposites/send_discord_message@main - with: - discord_token: "${{ secrets.DISCORD_TOKEN }}" - discord_channel_id: "${{ secrets.DISCORD_CHANNEL_ID }}" - discord_message: | - Hey <@&1122981184255840306>! A new version of the zetachain node has been released. + # - name: "SEND:DISCORD:MESSAGE" + # if: steps.determine_release_type.outputs.RELEASE_TYPE == 'minor' + # uses: gzukel/CosmosComposites/send_discord_message@main + # with: + # discord_token: "${{ secrets.DISCORD_TOKEN }}" + # discord_channel_id: "${{ secrets.DISCORD_CHANNEL_ID }}" + # discord_message: | + # Hey <@&1122981184255840306>! A new version of the zetachain node has been released. - If this is a Minor Version Upgrade: - Minor Version Upgrade (e.g. v5.0.x to v5.1.x) can be applied without a governance proposal. - Please review the release notes for any specific upgrade instructions or considerations. + # Minor Version Upgrade (e.g. v5.0.x to v5.1.x) can be applied without a governance proposal. + # Please review the release notes for any specific upgrade instructions or considerations. - See the release notes for more details. \ No newline at end of file + # See the release notes for more details. https://github.com/zeta-chain/node/releases/tag/${{ env.BINARY_VERSION }} \ No newline at end of file From 2889bc8d36eb11f27b70d12a9e1869e79805a623 Mon Sep 17 00:00:00 2001 From: Billy Yang Date: Tue, 25 Jul 2023 11:00:34 -0600 Subject: [PATCH 6/7] updated discord announcement on build.yml --- .github/workflows/build.yml | 26 ++++++++++++++++++-------- 1 file changed, 18 insertions(+), 8 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 4126bb507e..0f916a5f13 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -442,17 +442,13 @@ jobs: - name: Determine Release Type run: | - if [[ "${{ env.BINARY_VERSION }}" =~ ^v[0-9]+\.[0-9]+\.[0-9]+$ ]]; then - echo "RELEASE_TYPE=major" >> ${GITHUB_ENV} - elif [[ "${{ env.BINARY_VERSION }}" =~ ^v[0-9]+\.0\.0$ ]]; then - echo "RELEASE_TYPE=major" >> ${GITHUB_ENV} - elif [[ "${{ env.BINARY_VERSION }}" =~ ^v[0-9]+\.[0-9]+\.0$ ]]; then + if [[ "${{ env.BINARY_VERSION }}" =~ ^v[0-9]+\.0\.0+$ ]]; then echo "RELEASE_TYPE=major" >> ${GITHUB_ENV} elif [[ "${{ env.BINARY_VERSION }}" =~ ^v[0-9]+\.[0-9]+\.[1-9]+$ ]]; then echo "RELEASE_TYPE=minor" >> ${GITHUB_ENV} else echo "RELEASE_TYPE=unknown" >> ${GITHUB_ENV} - fi + fi id: determine_release_type - name: "SEND:DISCORD:MESSAGE" @@ -463,12 +459,12 @@ jobs: discord_channel_id: "${{ secrets.DISCORD_CHANNEL_ID }}" discord_message: | Hey <@&1122981184255840306>! A new version of the zetachain node has been released. - + Major Version Upgrade (e.g. v5.x.x to V6.x.x) must be completed through a governance proposal. We will raise a governance proposal on Monday at 15:00 UTC with a 12-hour voting period. The upgrade will be scheduled for Tuesday at approximately 15:00 UTC. More specific information including block height will be shared on Monday as part of the governance proposal. - + See the release notes for more details. https://github.com/zeta-chain/node/releases/tag/${{ env.BINARY_VERSION }} # - name: "SEND:DISCORD:MESSAGE" @@ -483,4 +479,18 @@ jobs: # Minor Version Upgrade (e.g. v5.0.x to v5.1.x) can be applied without a governance proposal. # Please review the release notes for any specific upgrade instructions or considerations. + # See the release notes for more details. https://github.com/zeta-chain/node/releases/tag/${{ env.BINARY_VERSION }} See the release notes for more details. https://github.com/zeta-chain/node/releases/tag/${{ env.BINARY_VERSION }} + + # - name: "SEND:DISCORD:MESSAGE" + # if: steps.determine_release_type.outputs.RELEASE_TYPE == 'minor' + # uses: gzukel/CosmosComposites/send_discord_message@main + # with: + # discord_token: "${{ secrets.DISCORD_TOKEN }}" + # discord_channel_id: "${{ secrets.DISCORD_CHANNEL_ID }}" + # discord_message: | + # Hey <@&1122981184255840306>! A new version of the zetachain node has been released. + + # Minor Version Upgrade (e.g. v5.0.x to v5.1.x) can be applied without a governance proposal. + # Please review the release notes for any specific upgrade instructions or considerations. + # See the release notes for more details. https://github.com/zeta-chain/node/releases/tag/${{ env.BINARY_VERSION }} \ No newline at end of file From 37b4253ab8c3e871264f909bfcf4927efef9835c Mon Sep 17 00:00:00 2001 From: Billy Yang Date: Tue, 25 Jul 2023 11:04:05 -0600 Subject: [PATCH 7/7] updated discord announcement on build.yml --- .github/workflows/build.yml | 14 -------------- 1 file changed, 14 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 0f916a5f13..1e66f95294 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -479,18 +479,4 @@ jobs: # Minor Version Upgrade (e.g. v5.0.x to v5.1.x) can be applied without a governance proposal. # Please review the release notes for any specific upgrade instructions or considerations. - # See the release notes for more details. https://github.com/zeta-chain/node/releases/tag/${{ env.BINARY_VERSION }} See the release notes for more details. https://github.com/zeta-chain/node/releases/tag/${{ env.BINARY_VERSION }} - - # - name: "SEND:DISCORD:MESSAGE" - # if: steps.determine_release_type.outputs.RELEASE_TYPE == 'minor' - # uses: gzukel/CosmosComposites/send_discord_message@main - # with: - # discord_token: "${{ secrets.DISCORD_TOKEN }}" - # discord_channel_id: "${{ secrets.DISCORD_CHANNEL_ID }}" - # discord_message: | - # Hey <@&1122981184255840306>! A new version of the zetachain node has been released. - - # Minor Version Upgrade (e.g. v5.0.x to v5.1.x) can be applied without a governance proposal. - # Please review the release notes for any specific upgrade instructions or considerations. - # See the release notes for more details. https://github.com/zeta-chain/node/releases/tag/${{ env.BINARY_VERSION }} \ No newline at end of file