Skip to content

πŸͺ’ Open source agent evals & observability: Trace, evaluate, and improve LLM applications with one open platform.

ci(notifications): stop sending redundant title, branch, and event to Slack (#18652)

Nimar0b6d4e68e9a6
diff --git a/.github/actions/notify-slack-failure/action.yml b/.github/actions/notify-slack-failure/action.yml
index e7fcc54cae..4eb0d9b0b6 100644
--- a/.github/actions/notify-slack-failure/action.yml
+++ b/.github/actions/notify-slack-failure/action.yml
@@ -2,11 +2,8 @@ name: Notify Slack Failure
description: Send a CI failure notification to a Slack Workflow webhook.
inputs:
- title:
- description: Slack notification header.
- required: true
message:
- description: Slack notification fallback text.
+ description: Slack notification headline, e.g. "❌ CI failed on main".
required: true
webhook-url:
description: Slack Workflow webhook URL.
@@ -136,12 +133,12 @@ runs:
with:
webhook: ${{ inputs.webhook-url }}
webhook-type: webhook-trigger
+ # Each key must match a variable on the Slack Workflow Builder webhook
+ # trigger. Slack rejects requests that omit a declared variable, so
+ # remove a variable in Slack before removing its key here.
payload: |
- title: "${{ inputs.title }}"
message: "${{ inputs.message }}"
- ref: "${{ github.ref_name }}"
actor: "${{ github.actor }}"
- event: "${{ github.event_name }}"
commit: "${{ github.sha }}"
workflow_url: "${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }}"
failure_reason: ${{ toJSON(steps.failure-reason.outputs.reason) }}
diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml
index 0409aa82a4..5656619195 100644
--- a/.github/workflows/deploy.yml
+++ b/.github/workflows/deploy.yml
@@ -141,6 +141,5 @@ jobs:
- name: Notify Slack
uses: ./.github/actions/notify-slack-failure
with:
- title: "❌ Deploy Failed"
message: "❌ Deploy failed on ${{ github.ref_name }}"
webhook-url: ${{ secrets.SLACK_CI_FAILURE_WORKFLOW_WEBHOOK_URL }}
diff --git a/.github/workflows/model-price-audit.yml b/.github/workflows/model-price-audit.yml
index b1a9bc05ec..bc5c2c646f 100644
--- a/.github/workflows/model-price-audit.yml
+++ b/.github/workflows/model-price-audit.yml
@@ -732,6 +732,5 @@ jobs:
- name: Notify Slack
uses: ./.github/actions/notify-slack-failure
with:
- title: "❌ Model Price Audit Failed"
message: "❌ Model price audit failed on ${{ github.ref_name }}"
webhook-url: ${{ secrets.SLACK_CI_FAILURE_WORKFLOW_WEBHOOK_URL }}
diff --git a/.github/workflows/pipeline.yml b/.github/workflows/pipeline.yml
index 23db39b61e..9cd169438b 100644
--- a/.github/workflows/pipeline.yml
+++ b/.github/workflows/pipeline.yml
@@ -1649,7 +1649,6 @@ jobs:
if: failure() && github.event_name == 'push' && (github.ref == 'refs/heads/main' || github.ref == 'refs/heads/v3' || startsWith(github.ref, 'refs/tags/'))
uses: ./.github/actions/notify-slack-failure
with:
- title: "❌ CI Failed"
message: "❌ CI failed on ${{ github.ref_name }}"
webhook-url: ${{ secrets.SLACK_CI_FAILURE_WORKFLOW_WEBHOOK_URL }}
- name: Output job results
@@ -1997,6 +1996,5 @@ jobs:
if: failure()
uses: ./.github/actions/notify-slack-failure
with:
- title: "❌ Docker Release Failed"
message: "❌ Docker release failed on ${{ github.ref_name }}"
webhook-url: ${{ secrets.SLACK_CI_FAILURE_WORKFLOW_WEBHOOK_URL }}
diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml
index 7bd8f93985..d07316b4f7 100644
--- a/.github/workflows/release.yml
+++ b/.github/workflows/release.yml
@@ -53,6 +53,5 @@ jobs:
- name: Notify Slack
uses: ./.github/actions/notify-slack-failure
with:
- title: "❌ Release Failed"
message: "❌ Release failed on ${{ github.ref_name }}"
webhook-url: ${{ secrets.SLACK_CI_FAILURE_WORKFLOW_WEBHOOK_URL }}
diff --git a/.github/workflows/sdk-api-spec.yml b/.github/workflows/sdk-api-spec.yml
index 0269fc6681..7cdc443d15 100644
--- a/.github/workflows/sdk-api-spec.yml
+++ b/.github/workflows/sdk-api-spec.yml
@@ -320,6 +320,5 @@ jobs:
- name: Notify Slack
uses: ./.github/actions/notify-slack-failure
with:
- title: "❌ SDK API Spec Generation Failed"
message: "❌ SDK API spec generation failed on ${{ github.ref_name }}"
webhook-url: ${{ secrets.SLACK_CI_FAILURE_WORKFLOW_WEBHOOK_URL }}