From 098ebb4d72872e2f65c811439e172aaf836af886 Mon Sep 17 00:00:00 2001 From: Steven Palma Date: Fri, 17 Apr 2026 11:28:24 +0200 Subject: [PATCH] feat(ci): send slack notification if latest dependecy test is broken (#3398) --- .github/workflows/latest_deps_tests.yml | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/.github/workflows/latest_deps_tests.yml b/.github/workflows/latest_deps_tests.yml index a291257c5..1c43b0f75 100644 --- a/.github/workflows/latest_deps_tests.yml +++ b/.github/workflows/latest_deps_tests.yml @@ -216,6 +216,24 @@ jobs: run: pytest tests -vv --maxfail=10 - name: Run end-to-end tests run: make test-end-to-end + + slack-notification: + name: Slack Notification + needs: [cpu-tests, gpu-tests] + if: always() + runs-on: ubuntu-latest + permissions: + contents: read + env: + CI_SLACK_CHANNEL: ${{ secrets.CI_SLACK_CHANNEL }} + steps: + - name: Post to a Slack channel + uses: huggingface/hf-workflows/.github/actions/post-slack@a88e7fa2eaee28de5a4d6142381b1fb792349b67 # main + with: + slack_channel: ${{ env.CI_SLACK_CHANNEL }} + title: "Results of the latest dependency tests (CPU + GPU)" + status: ${{ (needs.cpu-tests.result == 'success' && needs.gpu-tests.result == 'success') && 'success' || 'failure' }} + slack_token: ${{ secrets.SLACK_CIFEEDBACK_BOT_TOKEN }} # This job creates or updates a PR with the upgraded lockfile open-pr: