From 77b744d8217a26a32bcdc1f53baa6f482b05d66e Mon Sep 17 00:00:00 2001 From: Gustavo Valverde Date: Tue, 17 Oct 2023 19:13:06 +0100 Subject: [PATCH] fix(ci): use better name for protection rules --- .github/workflows/cd-deploy-nodes-gcp.yml | 6 +++--- .github/workflows/ci-unit-tests-docker.yml | 15 ++++++++------- .github/workflows/sub-test-zebra-config.yml | 6 +++--- 3 files changed, 14 insertions(+), 13 deletions(-) diff --git a/.github/workflows/cd-deploy-nodes-gcp.yml b/.github/workflows/cd-deploy-nodes-gcp.yml index a631d00b93c..b57aa37e94a 100644 --- a/.github/workflows/cd-deploy-nodes-gcp.yml +++ b/.github/workflows/cd-deploy-nodes-gcp.yml @@ -102,7 +102,7 @@ jobs: needs: build uses: ./.github/workflows/sub-test-zebra-config.yml with: - test_id: 'default-conf-tests' + test_id: 'default-conf' grep_patterns: '-e "net.*=.*Main.*estimated progress to chain tip.*BeforeOverwinter"' test_variables: '-e NETWORK' network: 'Mainnet' @@ -114,7 +114,7 @@ jobs: # Make sure Zebra can sync the genesis block on testnet uses: ./.github/workflows/sub-test-zebra-config.yml with: - test_id: 'testnet-conf-tests' + test_id: 'testnet-conf' grep_patterns: '-e "net.*=.*Test.*estimated progress to chain tip.*Genesis" -e "net.*=.*Test.*estimated progress to chain tip.*BeforeOverwinter"' test_variables: '-e NETWORK -e ZEBRA_CONF_PATH="/etc/zebrad/zebrad.toml"' network: 'Testnet' @@ -125,7 +125,7 @@ jobs: needs: build uses: ./.github/workflows/sub-test-zebra-config.yml with: - test_id: 'variable-conf-tests' + test_id: 'custom-conf' grep_patterns: '-e "v1.0.0-rc.2.toml"' test_variables: '-e NETWORK -e ZEBRA_CONF_PATH="zebrad/tests/common/configs/v1.0.0-rc.2.toml"' network: ${{ inputs.network || vars.ZCASH_NETWORK }} diff --git a/.github/workflows/ci-unit-tests-docker.yml b/.github/workflows/ci-unit-tests-docker.yml index 2ec9bdc195b..8bbb18e33a7 100644 --- a/.github/workflows/ci-unit-tests-docker.yml +++ b/.github/workflows/ci-unit-tests-docker.yml @@ -209,34 +209,35 @@ jobs: # Test that Zebra works using the default config with the latest Zebra version. test-configuration-file: - name: Test Zebra default Docker config file + name: Test default config file needs: build uses: ./.github/workflows/sub-test-zebra-config.yml with: - test_id: 'default-conf-tests' + test_id: 'default-conf' grep_patterns: '-e "net.*=.*Main.*estimated progress to chain tip.*BeforeOverwinter"' test_variables: '-e NETWORK' network: 'Mainnet' # Test reconfiguring the the docker image for tesnet. test-configuration-file-testnet: - name: Test Zebra testnet Docker config file + name: Test testnet config file needs: build # Make sure Zebra can sync the genesis block on testnet uses: ./.github/workflows/sub-test-zebra-config.yml with: - test_id: 'testnet-conf-tests' + test_id: 'testnet-conf' grep_patterns: '-e "net.*=.*Test.*estimated progress to chain tip.*Genesis" -e "net.*=.*Test.*estimated progress to chain tip.*BeforeOverwinter"' - test_variables: '-e NETWORK -e ZEBRA_CONF_PATH="/etc/zebrad/zebrad.toml"' + # TODO: improve the entrypoint to avoid using `ENTRYPOINT_FEATURES=""` + test_variables: '-e NETWORK -e ZEBRA_CONF_PATH="/etc/zebrad/zebrad.toml" -e ENTRYPOINT_FEATURES=""' network: 'Testnet' # Test that Zebra works using $ZEBRA_CONF_PATH config test-zebra-conf-path: - name: Test Zebra custom Docker config file + name: Test custom config file needs: build uses: ./.github/workflows/sub-test-zebra-config.yml with: - test_id: 'variable-conf-tests' + test_id: 'custom-conf' grep_patterns: '-e "v1.0.0-rc.2.toml"' test_variables: '-e NETWORK -e ZEBRA_CONF_PATH="zebrad/tests/common/configs/v1.0.0-rc.2.toml"' network: ${{ inputs.network || vars.ZCASH_NETWORK }} diff --git a/.github/workflows/sub-test-zebra-config.yml b/.github/workflows/sub-test-zebra-config.yml index 29f88a33b17..8aa9fd87e6d 100644 --- a/.github/workflows/sub-test-zebra-config.yml +++ b/.github/workflows/sub-test-zebra-config.yml @@ -25,8 +25,8 @@ on: description: 'Zcash network to test against' jobs: - test-zebra-config: - name: Test Zebra Docker Config + test-docker-config: + name: Test ${{ inputs.test_id }} in Docker timeout-minutes: 15 runs-on: ubuntu-latest steps: @@ -41,7 +41,7 @@ jobs: - uses: r7kamura/rust-problem-matchers@v1.4.0 - - name: Run ${{ inputs.test_id }} config test + - name: Run ${{ inputs.test_id }} test run: | docker pull ${{ vars.GAR_BASE }}/${{ vars.CI_IMAGE_NAME }}:sha-${{ env.GITHUB_SHA_SHORT }} docker run ${{ inputs.test_variables }} --detach --name ${{ inputs.test_id }} -t ${{ vars.GAR_BASE }}/${{ vars.CI_IMAGE_NAME }}:sha-${{ env.GITHUB_SHA_SHORT }} zebrad start