From 6bd08d874e8f69220a2b579cbeefd86b8fa76877 Mon Sep 17 00:00:00 2001 From: Carlos Salas Date: Tue, 14 Nov 2023 10:05:14 +0100 Subject: [PATCH] chore: temporarily switch to nightly short e2e Signed-off-by: Carlos Salas --- .github/workflows/e2e-long.yaml | 10 ++-- .github/workflows/e2e-short-nightly.yaml | 66 ++++++++++++++++++++++++ 2 files changed, 71 insertions(+), 5 deletions(-) create mode 100644 .github/workflows/e2e-short-nightly.yaml diff --git a/.github/workflows/e2e-long.yaml b/.github/workflows/e2e-long.yaml index 6d85bc561..84499c8ac 100644 --- a/.github/workflows/e2e-long.yaml +++ b/.github/workflows/e2e-long.yaml @@ -1,11 +1,11 @@ name: Run nightly e2e tests on: - schedule: - - cron: "0 0 * * *" - push: - branches: - - main + #schedule: + # - cron: "0 0 * * *" + #push: + # branches: + # - main workflow_dispatch: concurrency: ci_e2e_tests diff --git a/.github/workflows/e2e-short-nightly.yaml b/.github/workflows/e2e-short-nightly.yaml new file mode 100644 index 000000000..58c9aeda4 --- /dev/null +++ b/.github/workflows/e2e-short-nightly.yaml @@ -0,0 +1,66 @@ +name: Run nightly short e2e tests + +on: + schedule: + - cron: "0 0 * * *" + push: + branches: + - main + workflow_dispatch: + +concurrency: ci_e2e_tests + +env: + NGROK_AUTHTOKEN: ${{ secrets.NGROK_AUTHTOKEN }} + NGROK_API_KEY: ${{ secrets.NGROK_API_KEY }} + RANCHER_HOSTNAME: ${{ secrets.NGROK_DOMAIN }} + RANCHER_PASSWORD: ${{ secrets.RANCHER_PASSWORD }} + +jobs: + e2e: + runs-on: ubuntu-latest + steps: + - name: Checkout + uses: actions/checkout@v4 + with: + fetch-depth: 0 + - name: setupGo + uses: actions/setup-go@v4 + with: + go-version: '=1.20.7' + - name: Run e2e tests + run: ISOLATED_MODE=true GINKGO_LABEL_FILTER=short make test-e2e + - name: Collect run artifacts + if: always() + uses: actions/upload-artifact@v3 + with: + name: artifacts + path: _artifacts + - name: Send failed status to slack + if: failure() + uses: slackapi/slack-github-action@v1.24.0 + with: + payload: | + { + "blocks": [ + { + "type": "section", + "text": { + "type": "mrkdwn", + "text": "Rancher turtles E2E test run failed. Job trigger by ${{ github.event_name }} event(schedule means nightly run, push means push to main)." + }, + "accessory": { + "type": "button", + "text": { + "type": "plain_text", + "text": ":github:", + "emoji": true + }, + "url": "${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }}" + } + } + ] + } + env: + SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK_URL }} + SLACK_WEBHOOK_TYPE: INCOMING_WEBHOOK