From 591e55b301be1e6270966fd896e449795eabf3b1 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} (61%) 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 61% rename from .github/workflows/e2e-nightly.yml rename to .github/workflows/e2e-nightly-34x.yml index 99b56af9d..01812c07f 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.4' - 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: ''