From 098ebb4d72872e2f65c811439e172aaf836af886 Mon Sep 17 00:00:00 2001 From: Steven Palma Date: Fri, 17 Apr 2026 11:28:24 +0200 Subject: [PATCH 1/2] 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: From d4a229444b9a09742b4df5af079d308d1aa9a1d0 Mon Sep 17 00:00:00 2001 From: Steven Palma Date: Fri, 17 Apr 2026 12:02:38 +0200 Subject: [PATCH 2/2] fix(ci): not fail when skipped (#3399) --- .github/workflows/latest_deps_tests.yml | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/.github/workflows/latest_deps_tests.yml b/.github/workflows/latest_deps_tests.yml index 1c43b0f75..2a7564d11 100644 --- a/.github/workflows/latest_deps_tests.yml +++ b/.github/workflows/latest_deps_tests.yml @@ -216,11 +216,11 @@ 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() + needs: [cpu-tests, gpu-tests, upgrade-lock] + if: always() && needs.upgrade-lock.outputs.changed == 'true' runs-on: ubuntu-latest permissions: contents: read @@ -231,7 +231,7 @@ jobs: 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)" + 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 }}