Skip to content

Commit fe9b349

Browse files
committed
extend change to all workflows
1 parent 22efcdc commit fe9b349

50 files changed

Lines changed: 428 additions & 322 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.github/actions/send_failure/action.yml

Lines changed: 0 additions & 28 deletions
This file was deleted.

.github/workflows/CI_license_compliance.yml

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@ on:
1111
- cron: "0 0 * * *" # every day at midnight
1212

1313
env:
14-
CORE_DATADOG_API_KEY: ${{ secrets.CORE_DATADOG_API_KEY }}
1514
PYTHON_VERSION: "3.10"
1615
EXCLUDE_PACKAGES: "(?i)^(azure-identity|fastembed|ragas|tqdm|psycopg|mistralai|pgvector).*"
1716

@@ -90,11 +89,8 @@ jobs:
9089
if: ${{ always() }}
9190
run: echo "${{ steps.license_check_report.outputs.report }}"
9291

93-
- name: Send event to Datadog for nightly failures
92+
- name: Notify Slack on nightly failure
9493
if: failure() && github.event_name == 'schedule'
95-
uses: ./.github/actions/send_failure
94+
uses: deepset-ai/notify-slack-action@v1
9695
with:
97-
title: |
98-
Core integrations license compliance nightly failure: ${{ github.workflow }}
99-
api-key: ${{ secrets.CORE_DATADOG_API_KEY }}
100-
96+
slack-webhook-url: ${{ secrets.SLACK_WEBHOOK_URL_NOTIFICATIONS }}

.github/workflows/aimlapi.yml

Lines changed: 9 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -71,10 +71,13 @@ jobs:
7171
hatch -e test env run -- uv pip install git+https://github.com/deepset-ai/haystack.git@main
7272
hatch run test:cov-retry
7373
74-
- name: Send event to Datadog for nightly failures
75-
if: failure() && github.event_name == 'schedule'
76-
uses: ./.github/actions/send_failure
74+
notify:
75+
name: Notify Slack on failure
76+
needs: run
77+
if: failure() && github.event_name == 'schedule'
78+
runs-on: ubuntu-slim
79+
steps:
80+
- name: Notify Slack on nightly failure
81+
uses: deepset-ai/notify-slack-action@v1
7782
with:
78-
title: |
79-
Core integrations nightly tests failure: ${{ github.workflow }}
80-
api-key: ${{ secrets.CORE_DATADOG_API_KEY }}
83+
slack-webhook-url: ${{ secrets.SLACK_WEBHOOK_URL_NOTIFICATIONS }}

.github/workflows/amazon_bedrock.yml

Lines changed: 9 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -92,10 +92,13 @@ jobs:
9292
hatch -e test env run -- uv pip install git+https://github.com/deepset-ai/haystack.git@main
9393
hatch run test:unit
9494
95-
- name: Send event to Datadog for nightly failures
96-
if: failure() && github.event_name == 'schedule'
97-
uses: ./.github/actions/send_failure
95+
notify:
96+
name: Notify Slack on failure
97+
needs: run
98+
if: failure() && github.event_name == 'schedule'
99+
runs-on: ubuntu-slim
100+
steps:
101+
- name: Notify Slack on nightly failure
102+
uses: deepset-ai/notify-slack-action@v1
98103
with:
99-
title: |
100-
Core integrations nightly tests failure: ${{ github.workflow }}
101-
api-key: ${{ secrets.CORE_DATADOG_API_KEY }}
104+
slack-webhook-url: ${{ secrets.SLACK_WEBHOOK_URL_NOTIFICATIONS }}

.github/workflows/amazon_sagemaker.yml

Lines changed: 9 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -69,10 +69,13 @@ jobs:
6969
hatch -e test env run -- uv pip install git+https://github.com/deepset-ai/haystack.git@main
7070
hatch run test:unit
7171
72-
- name: Send event to Datadog for nightly failures
73-
if: failure() && github.event_name == 'schedule'
74-
uses: ./.github/actions/send_failure
72+
notify:
73+
name: Notify Slack on failure
74+
needs: run
75+
if: failure() && github.event_name == 'schedule'
76+
runs-on: ubuntu-slim
77+
steps:
78+
- name: Notify Slack on nightly failure
79+
uses: deepset-ai/notify-slack-action@v1
7580
with:
76-
title: |
77-
Core integrations nightly tests failure: ${{ github.workflow }}
78-
api-key: ${{ secrets.CORE_DATADOG_API_KEY }}
81+
slack-webhook-url: ${{ secrets.SLACK_WEBHOOK_URL_NOTIFICATIONS }}

.github/workflows/anthropic.yml

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -35,9 +35,6 @@ jobs:
3535
python-version: ["3.10", "3.13"]
3636

3737
steps:
38-
39-
- name: make it fail
40-
run: echo "This is a test" && exit 1
4138
- name: Support longpaths
4239
if: matrix.os == 'windows-latest'
4340
working-directory: .
@@ -77,11 +74,10 @@ jobs:
7774
notify:
7875
name: Notify Slack on failure
7976
needs: run
80-
if: failure()
77+
if: failure() && github.event_name == 'schedule'
8178
runs-on: ubuntu-slim
8279
steps:
8380
- name: Notify Slack on nightly failure
8481
uses: deepset-ai/notify-slack-action@v1
8582
with:
8683
slack-webhook-url: ${{ secrets.SLACK_WEBHOOK_URL_NOTIFICATIONS }}
87-
mention-here: "false"

.github/workflows/arcadedb.yml

Lines changed: 9 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -75,10 +75,13 @@ jobs:
7575
hatch -e test env run -- uv pip install git+https://github.com/deepset-ai/haystack.git@main
7676
hatch run test:unit
7777
78-
- name: Send event to Datadog for nightly failures
79-
if: failure() && github.event_name == 'schedule'
80-
uses: ./.github/actions/send_failure
78+
notify:
79+
name: Notify Slack on failure
80+
needs: run
81+
if: failure() && github.event_name == 'schedule'
82+
runs-on: ubuntu-slim
83+
steps:
84+
- name: Notify Slack on nightly failure
85+
uses: deepset-ai/notify-slack-action@v1
8186
with:
82-
title: |
83-
Core integrations nightly tests failure: ${{ github.workflow }}
84-
api-key: ${{ secrets.CORE_DATADOG_API_KEY }}
87+
slack-webhook-url: ${{ secrets.SLACK_WEBHOOK_URL_NOTIFICATIONS }}

.github/workflows/astra.yml

Lines changed: 9 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -73,10 +73,13 @@ jobs:
7373
hatch -e test env run -- uv pip install git+https://github.com/deepset-ai/haystack.git@main
7474
hatch run test:unit
7575
76-
- name: Send event to Datadog for nightly failures
77-
if: failure() && github.event_name == 'schedule'
78-
uses: ./.github/actions/send_failure
76+
notify:
77+
name: Notify Slack on failure
78+
needs: run
79+
if: failure() && github.event_name == 'schedule'
80+
runs-on: ubuntu-slim
81+
steps:
82+
- name: Notify Slack on nightly failure
83+
uses: deepset-ai/notify-slack-action@v1
7984
with:
80-
title: |
81-
Core integrations nightly tests failure: ${{ github.workflow }}
82-
api-key: ${{ secrets.CORE_DATADOG_API_KEY }}
85+
slack-webhook-url: ${{ secrets.SLACK_WEBHOOK_URL_NOTIFICATIONS }}

.github/workflows/azure_ai_search.yml

Lines changed: 9 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -67,10 +67,13 @@ jobs:
6767
hatch -e test env run -- uv pip install git+https://github.com/deepset-ai/haystack.git@main
6868
hatch run test:unit
6969
70-
- name: Send event to Datadog for nightly failures
71-
if: failure() && github.event_name == 'schedule'
72-
uses: ./.github/actions/send_failure
70+
notify:
71+
name: Notify Slack on failure
72+
needs: run
73+
if: failure() && github.event_name == 'schedule'
74+
runs-on: ubuntu-slim
75+
steps:
76+
- name: Notify Slack on nightly failure
77+
uses: deepset-ai/notify-slack-action@v1
7378
with:
74-
title: |
75-
Core integrations nightly tests failure: ${{ github.workflow }}
76-
api-key: ${{ secrets.CORE_DATADOG_API_KEY }}
79+
slack-webhook-url: ${{ secrets.SLACK_WEBHOOK_URL_NOTIFICATIONS }}

.github/workflows/azure_doc_intelligence.yml

Lines changed: 9 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -67,10 +67,13 @@ jobs:
6767
hatch -e test env run -- uv pip install git+https://github.com/deepset-ai/haystack.git@main
6868
hatch run test:unit
6969
70-
- name: Send event to Datadog for nightly failures
71-
if: failure() && github.event_name == 'schedule'
72-
uses: ./.github/actions/send_failure
70+
notify:
71+
name: Notify Slack on failure
72+
needs: run
73+
if: failure() && github.event_name == 'schedule'
74+
runs-on: ubuntu-slim
75+
steps:
76+
- name: Notify Slack on nightly failure
77+
uses: deepset-ai/notify-slack-action@v1
7378
with:
74-
title: |
75-
Core integrations nightly tests failure: ${{ github.workflow }}
76-
api-key: ${{ secrets.CORE_DATADOG_API_KEY }}
79+
slack-webhook-url: ${{ secrets.SLACK_WEBHOOK_URL_NOTIFICATIONS }}

0 commit comments

Comments
 (0)