From bda3f03ebf94423582c7d819a8b587bf58fabe23 Mon Sep 17 00:00:00 2001 From: Niklas Adolfsson Date: Tue, 10 Sep 2024 15:59:11 +0200 Subject: [PATCH 1/4] tests: add matrix notif on failure --- .github/workflows/nightly.yml | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/.github/workflows/nightly.yml b/.github/workflows/nightly.yml index e53de1b4a..e82513c7e 100644 --- a/.github/workflows/nightly.yml +++ b/.github/workflows/nightly.yml @@ -8,6 +8,11 @@ on: jobs: nightly-test: runs-on: ubuntu-latest + strategy: + matrix: + channel: + - name: 'Staking Miner Dev' + room: '!tXyUlsDAYvDfRKbzKx:parity.io' steps: - name: Checkout repository uses: actions/checkout@v4 @@ -41,3 +46,12 @@ jobs: # create a new one if we only find closed versions): search_existing: open + - name: Notify daily integration tests failure + if: failure() + uses: s3krit/matrix-message-action@70ad3fb812ee0e45ff8999d6af11cafad11a6ecf # v0.0.3 + with: + room_id: ${{ matrix.channel.room }} + access_token: ${{ secrets.RELEASENOTES_MATRIX_V2_ACCESS_TOKEN }} + server: m.parity.io + message: | + @room Daily integration tests failed https://github.com/${{ github.repository }}/commit/${{ github.sha }}/checks/${{ github.run_id }} \ No newline at end of file From 488a2c598639c8123122793e21e64c27c2139f2c Mon Sep 17 00:00:00 2001 From: Niklas Adolfsson Date: Wed, 11 Sep 2024 11:00:44 +0200 Subject: [PATCH 2/4] Update .github/workflows/nightly.yml --- .github/workflows/nightly.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/nightly.yml b/.github/workflows/nightly.yml index e82513c7e..9ab1f579f 100644 --- a/.github/workflows/nightly.yml +++ b/.github/workflows/nightly.yml @@ -51,7 +51,7 @@ jobs: uses: s3krit/matrix-message-action@70ad3fb812ee0e45ff8999d6af11cafad11a6ecf # v0.0.3 with: room_id: ${{ matrix.channel.room }} - access_token: ${{ secrets.RELEASENOTES_MATRIX_V2_ACCESS_TOKEN }} + access_token: ${{ secrets.MATRIX_ACCESS_TOKEN }} server: m.parity.io message: | @room Daily integration tests failed https://github.com/${{ github.repository }}/commit/${{ github.sha }}/checks/${{ github.run_id }} \ No newline at end of file From 76e3819ea5f103886f5ea97a5ebe18a01d6f04cc Mon Sep 17 00:00:00 2001 From: Niklas Adolfsson Date: Wed, 11 Sep 2024 11:21:38 +0200 Subject: [PATCH 3/4] add message for integration tests success --- .github/workflows/nightly.yml | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/.github/workflows/nightly.yml b/.github/workflows/nightly.yml index 9ab1f579f..b2bea6e1f 100644 --- a/.github/workflows/nightly.yml +++ b/.github/workflows/nightly.yml @@ -54,4 +54,14 @@ jobs: access_token: ${{ secrets.MATRIX_ACCESS_TOKEN }} server: m.parity.io message: | - @room Daily integration tests failed https://github.com/${{ github.repository }}/commit/${{ github.sha }}/checks/${{ github.run_id }} \ No newline at end of file + @room Daily integration tests failed https://github.com/${{ github.repository }}/commit/${{ github.sha }}/checks/${{ github.run_id }} + + - name: Notify daily integration tests success + if: success() + uses: s3krit/matrix-message-action@70ad3fb812ee0e45ff8999d6af11cafad11a6ecf # v0.0.3 + with: + room_id: ${{ matrix.channel.room }} + access_token: ${{ secrets.MATRIX_ACCESS_TOKEN }} + server: m.parity.io + message: | + Daily integration tests passed (temporary message to test the notification, this will omitted in the future) From 69e379a02a203dbd0765110609d2f3c873df546c Mon Sep 17 00:00:00 2001 From: Niklas Adolfsson Date: Wed, 11 Sep 2024 11:24:12 +0200 Subject: [PATCH 4/4] Update .github/workflows/nightly.yml --- .github/workflows/nightly.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/nightly.yml b/.github/workflows/nightly.yml index b2bea6e1f..e90551e44 100644 --- a/.github/workflows/nightly.yml +++ b/.github/workflows/nightly.yml @@ -64,4 +64,4 @@ jobs: access_token: ${{ secrets.MATRIX_ACCESS_TOKEN }} server: m.parity.io message: | - Daily integration tests passed (temporary message to test the notification, this will omitted in the future) + Daily integration tests passed (temporary message to test the notification, this will be omitted in the future)