Skip to content

Commit

Permalink
#8513: Add slack notifications to All commits pipeline
Browse files Browse the repository at this point in the history
        Use `failure` instead of checking for the step condition
  • Loading branch information
dimitri-tenstorrent committed May 23, 2024
1 parent 1d8c3f6 commit 341b3b0
Show file tree
Hide file tree
Showing 5 changed files with 27 additions and 5 deletions.
3 changes: 2 additions & 1 deletion .github/actions/slack-report/action.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,8 @@ inputs:
runs:
using: "composite"
steps:
- name: Report Github Pipeline Status Slack Action
- name: Report Github Pipeline Status Slack Action
if: ${{ github.ref == 'refs/heads/main' }}
uses: slackapi/[email protected]
with:
payload: |
Expand Down
5 changes: 5 additions & 0 deletions .github/workflows/build-and-unit-tests.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -42,3 +42,8 @@ jobs:
run: |
source ${{ github.workspace }}/python_env/bin/activate
./tests/scripts/run_tests.sh --tt-arch $ARCH_NAME --pipeline-type post_commit --dispatch-mode slow
- uses: ./.github/actions/slack-report
if: ${{ failure() }}
with:
slack_webhook_url: ${{ secrets.SLACK_WEBHOOK_URL }}
owner: U0593J2RQRZ # Bill Teng
10 changes: 10 additions & 0 deletions .github/workflows/fast-dispatch-build-and-unit-tests.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,11 @@ jobs:
cd $TT_METAL_HOME
export PYTHONPATH=$TT_METAL_HOME
${{ matrix.test-group.cmd }}
- uses: ./.github/actions/slack-report
if: ${{ failure() }}
with:
slack_webhook_url: ${{ secrets.SLACK_WEBHOOK_URL }}
owner: U0593J2RQRZ # Bill Teng
multi-queue-single-device-tests:
strategy:
# Do not fail-fast because we need to ensure all tests go to completion
Expand Down Expand Up @@ -98,3 +103,8 @@ jobs:
source ${{ github.workspace }}/python_env/bin/activate
export PYTHONPATH=$TT_METAL_HOME
./tests/scripts/run_tests.sh --tt-arch $ARCH_NAME --pipeline-type post_commit --dispatch-mode fast-multi-queue-single-device
- uses: ./.github/actions/slack-report
if: ${{ failure() }}
with:
slack_webhook_url: ${{ secrets.SLACK_WEBHOOK_URL }}
owner: U0593J2RQRZ # Bill Teng
9 changes: 5 additions & 4 deletions .github/workflows/perf-models.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -56,10 +56,11 @@ jobs:
run: |
source ${{ github.workspace }}/python_env/bin/activate
./tests/scripts/run_tests.sh --tt-arch $ARCH_NAME --pipeline-type ${{ matrix.model-type }}_models_performance_${{ matrix.test-info.machine-type }}
- uses: ./.github/actions/slack-report
if: ${{ steps.performance_tests.outcome != 'success' }}
with:
slack_webhook_url: ${{ secrets.SLACK_WEBHOOK_URL }}
# TODO: Fix the pipeline before enabling notifications.
#- uses: ./.github/actions/slack-report
# if: ${{ failure() }}
# with:
# slack_webhook_url: ${{ secrets.SLACK_WEBHOOK_URL }}
- name: Check perf report exists
id: check-perf-report
if: ${{ !cancelled() }}
Expand Down
5 changes: 5 additions & 0 deletions .github/workflows/run-profiler-regression.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -38,3 +38,8 @@ jobs:
timeout-minutes: 30
run: |
./tests/scripts/run_profiler_regressions.sh
- uses: ./.github/actions/slack-report
if: ${{ failure() }}
with:
slack_webhook_url: ${{ secrets.SLACK_WEBHOOK_URL }}
owner: U0593J2RQRZ # Bill Teng

0 comments on commit 341b3b0

Please sign in to comment.