From 6a75e19b7332f871390e36c72deb282f073caa6c Mon Sep 17 00:00:00 2001 From: Hanshal Mehta <122217807+hanshal101@users.noreply.github.com> Date: Fri, 21 Feb 2025 15:37:24 +0000 Subject: [PATCH 1/2] feat: add slack notification on failed integration tests Signed-off-by: Hanshal Mehta <122217807+hanshal101@users.noreply.github.com> --- .github/workflows/integration_test.yml | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/.github/workflows/integration_test.yml b/.github/workflows/integration_test.yml index efd176d4b..c5e138316 100644 --- a/.github/workflows/integration_test.yml +++ b/.github/workflows/integration_test.yml @@ -80,3 +80,10 @@ jobs: name: kubernetes-integration-test-diag path: /tmp/ktf-diag* if-no-files-found: ignore + + - name: Notify Slack on Test Failure + if: failure() + uses: rtCamp/action-slack-notify@v2 + with: + webhook_url: ${{ secrets.SLACK_WEBHOOK_URL }} + message: "Nightly Kubernetes BPFMan Operator integration tests failed! Go version: ${{ matrix.go }} and OCI runtime: ${{ matrix.oci_bin }}" From b35e367c9f8c90ac2a63e661ab8d01d40a18cdd3 Mon Sep 17 00:00:00 2001 From: Hanshal Mehta <122217807+hanshal101@users.noreply.github.com> Date: Wed, 26 Feb 2025 03:57:29 +0000 Subject: [PATCH 2/2] feat: add slack notification on failed integration tests Signed-off-by: Hanshal Mehta <122217807+hanshal101@users.noreply.github.com> --- .github/workflows/integration_test.yml | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/.github/workflows/integration_test.yml b/.github/workflows/integration_test.yml index c5e138316..d6a8040b1 100644 --- a/.github/workflows/integration_test.yml +++ b/.github/workflows/integration_test.yml @@ -72,7 +72,7 @@ jobs: - name: Check disk space run: df -h - ## Upload diagnostics if integration test step failed. + # Upload diagnostics if integration test step failed. - name: Upload diagnostics if: ${{ failure() }} uses: actions/upload-artifact@v4 @@ -81,9 +81,12 @@ jobs: path: /tmp/ktf-diag* if-no-files-found: ignore + # Push Notifications to Slack if integration test step failed - name: Notify Slack on Test Failure if: failure() - uses: rtCamp/action-slack-notify@v2 + uses: slackapi/slack-github-action@v2.0.0 with: - webhook_url: ${{ secrets.SLACK_WEBHOOK_URL }} - message: "Nightly Kubernetes BPFMan Operator integration tests failed! Go version: ${{ matrix.go }} and OCI runtime: ${{ matrix.oci_bin }}" + webhook: ${{ secrets.SLACK_WEBHOOK_URL }} + webhook-type: incoming-webhook + payload: | + "Nightly Kubernetes bpfman Operator integration tests failed! Go version: ${{ matrix.go }} and OCI runtime: ${{ matrix.oci_bin }}"