Skip to content

Commit

Permalink
Add slack reporting for windows tests
Browse files Browse the repository at this point in the history
  • Loading branch information
paolino committed Nov 29, 2023
1 parent 3fd83be commit 2537e7d
Show file tree
Hide file tree
Showing 6 changed files with 48 additions and 62 deletions.
22 changes: 2 additions & 20 deletions .github/workflows/e2e-docker.yml
Original file line number Diff line number Diff line change
Expand Up @@ -135,23 +135,5 @@ jobs:
path: test/e2e/state/wallet_db/preprod
key: wallet-db3-${{ runner.os }}-preprod

- name: Slack Notification on failure
if: failure()
uses: rtCamp/action-slack-notify@v2
env:
SLACK_WEBHOOK: ${{ secrets.SLACK_WEBHOOK_URL }}
SLACK_ICON_EMOJI: ':poop:'
SLACK_USERNAME: 'GitHub Action'
SLACK_MESSAGE: |
*GitHub Action: ${{ github.workflow }} failed!*
*Job Link:* ${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }}
SLACK_COLOR: '#FF0000'

- name: Slack Notification on success
if: success()
uses: rtCamp/action-slack-notify@v2
env:
SLACK_WEBHOOK: ${{ secrets.SLACK_WEBHOOK_URL }}
SLACK_ICON_EMOJI: ':rocket:'
SLACK_USERNAME: 'GitHub Action'
SLACK_COLOR: '#00FF00'
- name: Slack Notification
uses: ./.github/workflows/lib/slack.yml
25 changes: 4 additions & 21 deletions .github/workflows/e2e-linux.yml
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,8 @@ jobs:
with:
path: test/e2e/state/wallet_db/preprod
key: wallet-db3-${{ runner.os }}-preprod

- name: Slack Notification
uses: ./../../.github/workflows/lib/slack.yml
- name: Fetch preprod snapshot
if: steps.cache-node.outputs.cache-hit != 'true'
run: |
Expand Down Expand Up @@ -107,23 +108,5 @@ jobs:
test/e2e/state/configs
test/e2e/state/wallet_db
- name: Slack Notification on failure
if: failure()
uses: rtCamp/action-slack-notify@v2
env:
SLACK_WEBHOOK: ${{ secrets.SLACK_WEBHOOK_URL }}
SLACK_ICON_EMOJI: ':poop:'
SLACK_USERNAME: 'GitHub Action'
SLACK_MESSAGE: |
*GitHub Action: ${{ github.workflow }} failed!*
*Job Link:* ${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }}
SLACK_COLOR: '#FF0000'

- name: Slack Notification on success
if: success()
uses: rtCamp/action-slack-notify@v2
env:
SLACK_WEBHOOK: ${{ secrets.SLACK_WEBHOOK_URL }}
SLACK_ICON_EMOJI: ':rocket:'
SLACK_USERNAME: 'GitHub Action'
SLACK_COLOR: '#00FF00'
- name: Slack Notification
uses: ./.github/workflows/lib/slack.yml
6 changes: 6 additions & 0 deletions .github/workflows/e2e-macos.yml
Original file line number Diff line number Diff line change
Expand Up @@ -109,3 +109,9 @@ jobs:
test/e2e/state/logs
test/e2e/state/configs
test/e2e/state/wallet_db
report:
needs: test
runs-on: ubuntu-latest
steps:
- name: Slack Notification
uses: ./../../.github/workflows/lib/slack.yml
22 changes: 2 additions & 20 deletions .github/workflows/e2e-windows.yml
Original file line number Diff line number Diff line change
Expand Up @@ -147,23 +147,5 @@ jobs:
C:/cardano-wallet/test/e2e/state/configs
C:/cardano-wallet/test/e2e/state/wallet_db
- name: Slack Notification on failure
if: failure()
uses: rtCamp/action-slack-notify@v2
env:
SLACK_WEBHOOK: ${{ secrets.SLACK_WEBHOOK_URL }}
SLACK_ICON_EMOJI: ':poop:'
SLACK_USERNAME: 'GitHub Action'
SLACK_MESSAGE: |
*GitHub Action: ${{ github.workflow }} failed!*
*Job Link:* ${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }}
SLACK_COLOR: '#FF0000'

- name: Slack Notification on success
if: success()
uses: rtCamp/action-slack-notify@v2
env:
SLACK_WEBHOOK: ${{ secrets.SLACK_WEBHOOK_URL }}
SLACK_ICON_EMOJI: ':rocket:'
SLACK_USERNAME: 'GitHub Action'
SLACK_COLOR: '#00FF00'
- name: Slack Notification
uses: ./.github/workflows/lib/slack.yml
27 changes: 27 additions & 0 deletions .github/workflows/lib/slack.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
name: Report to Slack

on:
workflow_call:

jobs:
- name: Slack Notification on failure
if: failure()
uses: rtCamp/action-slack-notify@v2
env:
SLACK_WEBHOOK: ${{ secrets.SLACK_WEBHOOK_URL }}
SLACK_ICON_EMOJI: ':poop:'
SLACK_USERNAME: 'GitHub Action'
SLACK_MESSAGE: |
*Job Link:* ${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }}
SLACK_COLOR: '#FF0000'

- name: Slack Notification on success
if: success()
uses: rtCamp/action-slack-notify@v2
env:
SLACK_WEBHOOK: ${{ secrets.SLACK_WEBHOOK_URL }}
SLACK_ICON_EMOJI: ':rocket:'
SLACK_USERNAME: 'GitHub Action'
SLACK_MESSAGE: |
*Job Link:* ${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }}
SLACK_COLOR: '#00FF00'
8 changes: 7 additions & 1 deletion .github/workflows/windows.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: windows
name: Windows Unit Tests

on:
schedule:
Expand Down Expand Up @@ -40,6 +40,9 @@ jobs:
with:
name: cardano-wallet-tests-win64
path: ${{ env.WORK_DIR }}/cardano-wallet-tests-win64
- uses: ./.github/workflows/lib/slack.yml



cardano-wallet-test-unit:
name: 'cardano-wallet:unit'
Expand All @@ -50,6 +53,7 @@ jobs:
with:
name: cardano-wallet-tests-win64
- run: '.\\cardano-wallet-test-unit.exe --color --jobs 1 --skip /Cardano.Wallet.DB.Sqlite/ +RTS -M2G -N2'
- uses: ./.github/workflows/lib/slack.yml

text-class-test-unit:
name: 'test-class:unit'
Expand All @@ -60,6 +64,7 @@ jobs:
with:
name: cardano-wallet-tests-win64
- run: '.\\text-class-test-unit.exe --color'
- uses: ./.github/workflows/lib/slack.yml

cardano-wallet-launcher-test-unit:
name: 'cardano-wallet-launcher:unit'
Expand All @@ -71,6 +76,7 @@ jobs:
name: cardano-wallet-tests-win64
- run: '.\\cardano-wallet-launcher-test-unit.exe --color'
continue-on-error: true
- uses: ./.github/workflows/lib/slack.yml

# ADP-2517 - Fix integration tests on Windows
# cardano-wallet-test-integration:
Expand Down

0 comments on commit 2537e7d

Please sign in to comment.