Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Notify nightly failures #577

Merged
merged 17 commits into from
Mar 13, 2024
28 changes: 28 additions & 0 deletions .github/actions/send_failure/action.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
name: "Send failure event to Datadog"
inputs:
api-key:
description: "Datadog API key"
required: true
title:
description: "Custom title for the event"
required: true
runs:
using: "composite"
steps:
- uses: masci/datadog@v1
with:
api-key: ${{ inputs.api-key }}
api-url: https://api.datadoghq.eu
events: |
- title: "${{ inputs.title }}"
text: "Job ${{ github.job }} in branch ${{ github.ref_name }}"
alert_type: "error"
source_type_name: "Github"
host: ${{ github.repository_owner }}
tags:
- "project:${{ github.repository }}"
- "job:${{ github.job }}"
- "run_id:${{ github.run_id }}"
- "workflow:${{ github.workflow }}"
- "branch:${{ github.ref_name }}"
- "url:https://github.com/${{ github.repository }}/actions/runs/${{ github.run_id }}"
9 changes: 8 additions & 1 deletion .github/workflows/astra.yml
Original file line number Diff line number Diff line change
Expand Up @@ -61,4 +61,11 @@ jobs:
env:
ASTRA_DB_API_ENDPOINT: ${{ secrets.ASTRA_API_ENDPOINT }}
ASTRA_DB_APPLICATION_TOKEN: ${{ secrets.ASTRA_TOKEN }}
run: hatch run cov
run: hatch run cov

- name: Send event to Datadog for nightly failures
if: github.event_name == 'schedule' && failure()
uses: ./.github/actions/send_failure
with:
title: "core-integrations nightly failure: ${{ github.workflow }}"
api-key: ${{ secrets.CORE_DATADOG_API_KEY }}
7 changes: 7 additions & 0 deletions .github/workflows/chroma.yml
Original file line number Diff line number Diff line change
Expand Up @@ -58,3 +58,10 @@ jobs:

- name: Run tests
run: hatch run cov

- name: Send event to Datadog for nightly failures
if: github.event_name == 'schedule' && failure()
uses: ./.github/actions/send_failure
with:
title: "core-integrations nightly failure: ${{ github.workflow }}"
api-key: ${{ secrets.CORE_DATADOG_API_KEY }}
7 changes: 7 additions & 0 deletions .github/workflows/cohere.yml
Original file line number Diff line number Diff line change
Expand Up @@ -55,3 +55,10 @@ jobs:

- name: Run tests
run: hatch run cov

- name: Send event to Datadog for nightly failures
if: github.event_name == 'schedule' && failure()
uses: ./.github/actions/send_failure
with:
title: "core-integrations nightly failure: ${{ github.workflow }}"
api-key: ${{ secrets.CORE_DATADOG_API_KEY }}
7 changes: 7 additions & 0 deletions .github/workflows/deepeval.yml
Original file line number Diff line number Diff line change
Expand Up @@ -58,3 +58,10 @@ jobs:

- name: Run tests
run: hatch run cov

- name: Send event to Datadog for nightly failures
if: github.event_name == 'schedule' && failure()
uses: ./.github/actions/send_failure
with:
title: "core-integrations nightly failure: ${{ github.workflow }}"
api-key: ${{ secrets.CORE_DATADOG_API_KEY }}
7 changes: 7 additions & 0 deletions .github/workflows/elasticsearch.yml
Original file line number Diff line number Diff line change
Expand Up @@ -56,3 +56,10 @@ jobs:

- name: Run tests
run: hatch run cov

- name: Send event to Datadog for nightly failures
if: github.event_name == 'schedule' && failure()
uses: ./.github/actions/send_failure
with:
title: "core-integrations nightly failure: ${{ github.workflow }}"
api-key: ${{ secrets.CORE_DATADOG_API_KEY }}
7 changes: 7 additions & 0 deletions .github/workflows/fastembed.yml
Original file line number Diff line number Diff line change
Expand Up @@ -43,3 +43,10 @@ jobs:

- name: Run tests
run: hatch run cov

- name: Send event to Datadog for nightly failures
if: failure() #github.event_name == 'schedule' &&
uses: ./.github/actions/send_failure
with:
title: "core-integrations nightly failure: ${{ github.workflow }}"
api-key: ${{ secrets.CORE_DATADOG_API_KEY }}
7 changes: 7 additions & 0 deletions .github/workflows/google_ai.yml
Original file line number Diff line number Diff line change
Expand Up @@ -59,3 +59,10 @@ jobs:

- name: Run tests
run: hatch run cov

- name: Send event to Datadog for nightly failures
if: github.event_name == 'schedule' && failure()
uses: ./.github/actions/send_failure
with:
title: "core-integrations nightly failure: ${{ github.workflow }}"
api-key: ${{ secrets.CORE_DATADOG_API_KEY }}
7 changes: 7 additions & 0 deletions .github/workflows/google_vertex.yml
Original file line number Diff line number Diff line change
Expand Up @@ -58,3 +58,10 @@ jobs:

- name: Run tests
run: hatch run cov

- name: Send event to Datadog for nightly failures
if: github.event_name == 'schedule' && failure()
uses: ./.github/actions/send_failure
with:
title: "core-integrations nightly failure: ${{ github.workflow }}"
api-key: ${{ secrets.CORE_DATADOG_API_KEY }}
9 changes: 8 additions & 1 deletion .github/workflows/gradient.yml
Original file line number Diff line number Diff line change
Expand Up @@ -57,4 +57,11 @@ jobs:
run: hatch run docs

- name: Run tests
run: hatch run cov
run: hatch run cov

- name: Send event to Datadog for nightly failures
if: github.event_name == 'schedule' && failure()
uses: ./.github/actions/send_failure
with:
title: "core-integrations nightly failure: ${{ github.workflow }}"
api-key: ${{ secrets.CORE_DATADOG_API_KEY }}
7 changes: 7 additions & 0 deletions .github/workflows/instructor_embedders.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,3 +36,10 @@ jobs:

- name: Run tests
run: hatch run cov

- name: Send event to Datadog for nightly failures
if: github.event_name == 'schedule' && failure()
uses: ./.github/actions/send_failure
with:
title: "core-integrations nightly failure: ${{ github.workflow }}"
api-key: ${{ secrets.CORE_DATADOG_API_KEY }}
7 changes: 7 additions & 0 deletions .github/workflows/jina.yml
Original file line number Diff line number Diff line change
Expand Up @@ -58,3 +58,10 @@ jobs:

- name: Run tests
run: hatch run cov

- name: Send event to Datadog for nightly failures
if: github.event_name == 'schedule' && failure()
uses: ./.github/actions/send_failure
with:
title: "core-integrations nightly failure: ${{ github.workflow }}"
api-key: ${{ secrets.CORE_DATADOG_API_KEY }}
7 changes: 7 additions & 0 deletions .github/workflows/llama_cpp.yml
Original file line number Diff line number Diff line change
Expand Up @@ -58,3 +58,10 @@ jobs:

- name: Run tests
run: hatch run cov

- name: Send event to Datadog for nightly failures
if: github.event_name == 'schedule' && failure()
uses: ./.github/actions/send_failure
with:
title: "core-integrations nightly failure: ${{ github.workflow }}"
api-key: ${{ secrets.CORE_DATADOG_API_KEY }}
7 changes: 7 additions & 0 deletions .github/workflows/mistral.yml
Original file line number Diff line number Diff line change
Expand Up @@ -59,3 +59,10 @@ jobs:

- name: Run tests
run: hatch run cov

- name: Send event to Datadog for nightly failures
if: github.event_name == 'schedule' && failure()
uses: ./.github/actions/send_failure
with:
title: "core-integrations nightly failure: ${{ github.workflow }}"
api-key: ${{ secrets.CORE_DATADOG_API_KEY }}
7 changes: 7 additions & 0 deletions .github/workflows/mongodb_atlas.yml
Original file line number Diff line number Diff line change
Expand Up @@ -56,3 +56,10 @@ jobs:
- name: Run tests
working-directory: integrations/mongodb_atlas
run: hatch run cov

- name: Send event to Datadog for nightly failures
if: github.event_name == 'schedule' && failure()
uses: ./.github/actions/send_failure
with:
title: "core-integrations nightly failure: ${{ github.workflow }}"
api-key: ${{ secrets.CORE_DATADOG_API_KEY }}
7 changes: 7 additions & 0 deletions .github/workflows/nvidia.yml
Original file line number Diff line number Diff line change
Expand Up @@ -55,3 +55,10 @@ jobs:

- name: Run tests
run: hatch run cov

- name: Send event to Datadog for nightly failures
if: github.event_name == 'schedule' && failure()
uses: ./.github/actions/send_failure
with:
title: "core-integrations nightly failure: ${{ github.workflow }}"
api-key: ${{ secrets.CORE_DATADOG_API_KEY }}
7 changes: 7 additions & 0 deletions .github/workflows/ollama.yml
Original file line number Diff line number Diff line change
Expand Up @@ -76,3 +76,10 @@ jobs:

- name: Run tests
run: hatch run cov

- name: Send event to Datadog for nightly failures
if: github.event_name == 'schedule' && failure()
uses: ./.github/actions/send_failure
with:
title: "core-integrations nightly failure: ${{ github.workflow }}"
api-key: ${{ secrets.CORE_DATADOG_API_KEY }}
7 changes: 7 additions & 0 deletions .github/workflows/opensearch.yml
Original file line number Diff line number Diff line change
Expand Up @@ -57,3 +57,10 @@ jobs:
- name: Run tests
working-directory: integrations/opensearch
run: hatch run cov

- name: Send event to Datadog for nightly failures
if: github.event_name == 'schedule' && failure()
uses: ./.github/actions/send_failure
with:
title: "core-integrations nightly failure: ${{ github.workflow }}"
api-key: ${{ secrets.CORE_DATADOG_API_KEY }}
7 changes: 7 additions & 0 deletions .github/workflows/optimum.yml
Original file line number Diff line number Diff line change
Expand Up @@ -58,3 +58,10 @@ jobs:

- name: Run tests
run: hatch run cov

- name: Send event to Datadog for nightly failures
if: github.event_name == 'schedule' && failure()
uses: ./.github/actions/send_failure
with:
title: "core-integrations nightly failure: ${{ github.workflow }}"
api-key: ${{ secrets.CORE_DATADOG_API_KEY }}
7 changes: 7 additions & 0 deletions .github/workflows/pgvector.yml
Original file line number Diff line number Diff line change
Expand Up @@ -62,3 +62,10 @@ jobs:

- name: Run tests
run: hatch run cov

- name: Send event to Datadog for nightly failures
if: github.event_name == 'schedule' && failure()
uses: ./.github/actions/send_failure
with:
title: "core-integrations nightly failure: ${{ github.workflow }}"
api-key: ${{ secrets.CORE_DATADOG_API_KEY }}
7 changes: 7 additions & 0 deletions .github/workflows/pinecone.yml
Original file line number Diff line number Diff line change
Expand Up @@ -57,3 +57,10 @@ jobs:
- name: Run tests
working-directory: integrations/pinecone
run: hatch run cov

- name: Send event to Datadog for nightly failures
if: github.event_name == 'schedule' && failure()
uses: ./.github/actions/send_failure
with:
title: "core-integrations nightly failure: ${{ github.workflow }}"
api-key: ${{ secrets.CORE_DATADOG_API_KEY }}
7 changes: 7 additions & 0 deletions .github/workflows/qdrant.yml
Original file line number Diff line number Diff line change
Expand Up @@ -58,3 +58,10 @@ jobs:

- name: Run tests
run: hatch run cov

- name: Send event to Datadog for nightly failures
if: github.event_name == 'schedule' && failure()
uses: ./.github/actions/send_failure
with:
title: "core-integrations nightly failure: ${{ github.workflow }}"
api-key: ${{ secrets.CORE_DATADOG_API_KEY }}
7 changes: 7 additions & 0 deletions .github/workflows/ragas.yml
Original file line number Diff line number Diff line change
Expand Up @@ -58,3 +58,10 @@ jobs:

- name: Run tests
run: hatch run cov

- name: Send event to Datadog for nightly failures
if: github.event_name == 'schedule' && failure()
uses: ./.github/actions/send_failure
with:
title: "core-integrations nightly failure: ${{ github.workflow }}"
api-key: ${{ secrets.CORE_DATADOG_API_KEY }}
7 changes: 7 additions & 0 deletions .github/workflows/unstructured.yml
Original file line number Diff line number Diff line change
Expand Up @@ -70,3 +70,10 @@ jobs:

- name: Run tests
run: hatch run cov

- name: Send event to Datadog for nightly failures
if: github.event_name == 'schedule' && failure()
uses: ./.github/actions/send_failure
with:
title: "core-integrations nightly failure: ${{ github.workflow }}"
api-key: ${{ secrets.CORE_DATADOG_API_KEY }}
7 changes: 7 additions & 0 deletions .github/workflows/uptrain.yml
Original file line number Diff line number Diff line change
Expand Up @@ -54,3 +54,10 @@ jobs:

- name: Run tests
run: hatch run cov

- name: Send event to Datadog for nightly failures
if: github.event_name == 'schedule' && failure()
uses: ./.github/actions/send_failure
with:
title: "core-integrations nightly failure: ${{ github.workflow }}"
api-key: ${{ secrets.CORE_DATADOG_API_KEY }}
7 changes: 7 additions & 0 deletions .github/workflows/weaviate.yml
Original file line number Diff line number Diff line change
Expand Up @@ -55,3 +55,10 @@ jobs:

- name: Run tests
run: hatch run cov

- name: Send event to Datadog for nightly failures
if: github.event_name == 'schedule' && failure()
uses: ./.github/actions/send_failure
with:
title: "core-integrations nightly failure: ${{ github.workflow }}"
api-key: ${{ secrets.CORE_DATADOG_API_KEY }}