From 91e1f3548a435c51197ac6f591b0634aebe59896 Mon Sep 17 00:00:00 2001 From: Tess Rinearson Date: Wed, 3 Feb 2021 16:26:46 +0100 Subject: [PATCH] .github/workflows: separate e2e workflows for 0.34.x and master (#6041) Co-authored-by: Erik Grinaker Co-authored-by: Marko --- .../{e2e-nightly.yml => e2e-nightly-34x.yml} | 27 ++++++++++++++++--- ...2e-nightly2.yml => e2e-nightly-master.yml} | 13 +++++---- 2 files changed, 29 insertions(+), 11 deletions(-) rename .github/workflows/{e2e-nightly.yml => e2e-nightly-34x.yml} (62%) rename .github/workflows/{e2e-nightly2.yml => e2e-nightly-master.yml} (84%) diff --git a/.github/workflows/e2e-nightly.yml b/.github/workflows/e2e-nightly-34x.yml similarity index 62% rename from .github/workflows/e2e-nightly.yml rename to .github/workflows/e2e-nightly-34x.yml index d32b54840..5ceb613cb 100644 --- a/.github/workflows/e2e-nightly.yml +++ b/.github/workflows/e2e-nightly-34x.yml @@ -1,7 +1,8 @@ -# Runs randomly generated E2E testnets nightly. -name: e2e-nightly +# Runs randomly generated E2E testnets nightly +# on the 0.34.x release branch +name: e2e-nightly-34x on: - workflow_dispatch: # allow running workflow manually + workflow_dispatch: # allow running workflow manually, in theory schedule: - cron: '0 2 * * *' @@ -21,6 +22,8 @@ jobs: go-version: '1.15' - uses: actions/checkout@v2 + with: + ref: 'v0.34.x' - name: Build working-directory: test/e2e @@ -49,5 +52,21 @@ jobs: SLACK_USERNAME: Nightly E2E Tests SLACK_ICON_EMOJI: ':skull:' SLACK_COLOR: danger - SLACK_MESSAGE: Nightly E2E tests failed + SLACK_MESSAGE: Nightly E2E tests failed on v0.34.x + SLACK_FOOTER: '' + + e2e-nightly-success: # may turn this off once they seem to pass consistently + needs: e2e-nightly-test-2 + if: ${{ success() }} + runs-on: ubuntu-latest + steps: + - name: Notify Slack on success + uses: rtCamp/action-slack-notify@ae4223259071871559b6e9d08b24a63d71b3f0c0 + env: + SLACK_WEBHOOK: ${{ secrets.SLACK_WEBHOOK }} + SLACK_CHANNEL: tendermint-internal + SLACK_USERNAME: Nightly E2E Tests + SLACK_ICON_EMOJI: ':white_check_mark:' + SLACK_COLOR: good + SLACK_MESSAGE: Nightly E2E tests passed on v0.34.x SLACK_FOOTER: '' diff --git a/.github/workflows/e2e-nightly2.yml b/.github/workflows/e2e-nightly-master.yml similarity index 84% rename from .github/workflows/e2e-nightly2.yml rename to .github/workflows/e2e-nightly-master.yml index d829efa72..de88499d9 100644 --- a/.github/workflows/e2e-nightly2.yml +++ b/.github/workflows/e2e-nightly-master.yml @@ -1,6 +1,5 @@ -# Runs randomly generated E2E testnets nightly. -# Copy of earlier nightly test file, for debugging -name: e2e-nightly2 +# Runs randomly generated E2E testnets nightly on master +name: e2e-nightly-master on: workflow_dispatch: # allow running workflow manually schedule: @@ -50,10 +49,10 @@ jobs: SLACK_USERNAME: Nightly E2E Tests SLACK_ICON_EMOJI: ':skull:' SLACK_COLOR: danger - SLACK_MESSAGE: Nightly E2E (copy) tests failed + SLACK_MESSAGE: Nightly E2E (copy) tests failed on master SLACK_FOOTER: '' - e2e-nightly-success: + e2e-nightly-success: # may turn this off once they seem to pass consistently needs: e2e-nightly-test-2 if: ${{ success() }} runs-on: ubuntu-latest @@ -64,7 +63,7 @@ jobs: SLACK_WEBHOOK: ${{ secrets.SLACK_WEBHOOK }} SLACK_CHANNEL: tendermint-internal SLACK_USERNAME: Nightly E2E Tests - SLACK_ICON_EMOJI: ':green_heart:' + SLACK_ICON_EMOJI: ':white_check_mark:' SLACK_COLOR: good - SLACK_MESSAGE: Nightly E2E (copy) tests failed + SLACK_MESSAGE: Nightly E2E (copy) tests passed on master SLACK_FOOTER: ''