Skip to content

Commit

Permalink
Chore: notify on CI periodic run failures in Zulip (#12593)
Browse files Browse the repository at this point in the history
<img width="803" alt="Screenshot 2024-12-10 at 14 35 09"
src="https://github.com/user-attachments/assets/535f7dbc-7bfd-4cd9-b4e0-b4fb4fd8eec5">
  • Loading branch information
andrei-near authored Dec 10, 2024
1 parent 0b1bcc9 commit c425289
Showing 1 changed file with 17 additions and 3 deletions.
20 changes: 17 additions & 3 deletions .github/workflows/ci_nightly.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: CI
name: CI Nightly

concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
Expand Down Expand Up @@ -36,6 +36,20 @@ jobs:
- uses: taiki-e/install-action@9b5b983efc779f85e5e5d11539f005e85ccb27ff
with:
tool: just,cargo-nextest

# Run the tests:
- run: just nextest-slow ${{ matrix.type }}
- uses: mathiasvr/command-output@34408ea3d0528273faff3d9e201761ae96106cd0
with:
run: just nextest-slow ${{ matrix.type }}
id: run_nextest

- name: Notify in Zulip about failures
uses: zulip/github-actions-zulip/send-message@08b6fbd07f5834e5b930a85bc7740e9fd44ab2e7
if: always() && steps.run_nextest.conclusion == 'failure'
with:
api-key: ${{ secrets.ZULIP_API_KEY }}
email: "gha-bot@near.zulipchat.com"
organization-url: "https://near.zulipchat.com"
to: "nearone/private"
type: "stream"
topic: "GHA failures"
content: "Cargo Nextest ${{matrix.name}} [failed](${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }}): \n > ${{ steps.run_nextest.outputs.stderr }} "

0 comments on commit c425289

Please sign in to comment.