mirror of
https://github.com/tendermint/tendermint.git
synced 2026-01-08 22:23:11 +00:00
The primary aim of this PR is to improve the failure messages we get a little. Seeing the latest commit is often useless, and it's probably better to just get a direct link to a list of commits for that specific branch so we can see what's been committed since the previous nightly run. This PR also makes one minor improvement in the use of the now-deprecated `set-output` syntax for workflows, upgrading it to use the new approach as per https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/ --- #### PR checklist - [x] Tests written/updated, or no tests needed - [x] `CHANGELOG_PENDING.md` updated, or no changelog entry needed - [x] Updated relevant documentation (`docs/`) and code comments, or no documentation updates needed
69 lines
2.2 KiB
YAML
69 lines
2.2 KiB
YAML
# Runs randomly generated E2E testnets nightly on main
|
|
|
|
# !! Relevant changes to this file should be propagated to the e2e-nightly-<V>x
|
|
# files for the supported backport branches, when appropriate, modulo version
|
|
# markers.
|
|
|
|
name: e2e-nightly-main
|
|
on:
|
|
schedule:
|
|
- cron: '0 2 * * *'
|
|
|
|
jobs:
|
|
e2e-nightly-test:
|
|
# Run parallel jobs for the listed testnet groups (must match the
|
|
# ./build/generator -g flag)
|
|
strategy:
|
|
fail-fast: false
|
|
matrix:
|
|
group: ['00', '01', '02', '03', "04"]
|
|
runs-on: ubuntu-latest
|
|
timeout-minutes: 60
|
|
steps:
|
|
- uses: actions/setup-go@v3
|
|
with:
|
|
go-version: '1.18'
|
|
|
|
- uses: actions/checkout@v3
|
|
|
|
- name: Build
|
|
working-directory: test/e2e
|
|
# Run make jobs in parallel, since we can't run steps in parallel.
|
|
run: make -j2 docker generator runner tests
|
|
|
|
- name: Generate testnets
|
|
working-directory: test/e2e
|
|
# When changing -g, also change the matrix groups above
|
|
run: ./build/generator -g 5 -d networks/nightly/
|
|
|
|
- name: Run ${{ matrix.p2p }} p2p testnets
|
|
working-directory: test/e2e
|
|
run: ./run-multiple.sh networks/nightly/*-group${{ matrix.group }}-*.toml
|
|
|
|
e2e-nightly-fail:
|
|
needs: e2e-nightly-test
|
|
if: ${{ failure() }}
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- name: Notify Slack on failure
|
|
uses: slackapi/slack-github-action@v1.23.0
|
|
env:
|
|
SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK_URL }}
|
|
SLACK_WEBHOOK_TYPE: INCOMING_WEBHOOK
|
|
BRANCH: ${{ github.ref_name }}
|
|
RUN_URL: "${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }}"
|
|
COMMITS_URL: "${{ github.server_url }}/${{ github.repository }}/commits/${{ github.ref_name }}"
|
|
with:
|
|
payload: |
|
|
{
|
|
"blocks": [
|
|
{
|
|
"type": "section",
|
|
"text": {
|
|
"type": "mrkdwn",
|
|
"text": ":skull: Nightly E2E tests for `${{ env.BRANCH }}` failed. See the <${{ env.RUN_URL }}|run details> and the <${{ env.COMMITS_URL }}|latest commits> possibly related to the failure."
|
|
}
|
|
}
|
|
]
|
|
}
|