diff --git a/.github/workflows/amazon_bedrock.yml b/.github/workflows/amazon_bedrock.yml index 16718f7f0..34cadfbdb 100644 --- a/.github/workflows/amazon_bedrock.yml +++ b/.github/workflows/amazon_bedrock.yml @@ -70,14 +70,7 @@ jobs: - name: Run tests id: tests run: hatch run cov - - - name: Send event to Datadog for nightly failures - if: failure() && github.event_name == 'schedule' && steps.tests.conclusion == 'failure' - uses: ./.github/actions/send_failure - with: - title: "core-integrations failure: ${{ github.workflow }}" - api-key: ${{ secrets.CORE_DATADOG_API_KEY }} - + - name: Nightly - run unit tests with Haystack main branch if: github.event_name == 'schedule' id: nightly-haystack-main @@ -85,9 +78,14 @@ jobs: hatch run pip install git+https://github.com/deepset-ai/haystack.git hatch run test -m "not integration" - - name: Send event to Datadog for nightly failures using Haystack main branch - if: failure() && github.event_name == 'schedule' && steps.nightly-haystack-main.conclusion == 'failure' + - name: Send event to Datadog for nightly failures + if: | + failure() && github.event_name == 'schedule' && + (steps.nightly-haystack-main.conclusion == 'failure' || steps.tests.conclusion == 'failure') uses: ./.github/actions/send_failure with: - title: "core-integrations failure using Haystack main branch: ${{ github.workflow }}" + title: | + "core-integrations failure: + ${{ steps.tests.conclusion == 'failure' ? 'tests' : 'nightly-haystack-main' }} - + ${{ github.workflow }}" api-key: ${{ secrets.CORE_DATADOG_API_KEY }} diff --git a/.github/workflows/amazon_sagemaker.yml b/.github/workflows/amazon_sagemaker.yml index 47b1179ed..530861d4e 100644 --- a/.github/workflows/amazon_sagemaker.yml +++ b/.github/workflows/amazon_sagemaker.yml @@ -60,13 +60,6 @@ jobs: id: tests run: hatch run cov - - name: Send event to Datadog for nightly failures - if: failure() && github.event_name == 'schedule' && steps.tests.conclusion == 'failure' - uses: ./.github/actions/send_failure - with: - title: "core-integrations failure: ${{ github.workflow }}" - api-key: ${{ secrets.CORE_DATADOG_API_KEY }} - - name: Nightly - run unit tests with Haystack main branch if: github.event_name == 'schedule' id: nightly-haystack-main @@ -74,9 +67,14 @@ jobs: hatch run pip install git+https://github.com/deepset-ai/haystack.git hatch run test -m "not integration" - - name: Send event to Datadog for nightly failures using Haystack main branch - if: failure() && github.event_name == 'schedule' && steps.nightly-haystack-main.conclusion == 'failure' + - name: Send event to Datadog for nightly failures + if: | + failure() && github.event_name == 'schedule' && + (steps.nightly-haystack-main.conclusion == 'failure' || steps.tests.conclusion == 'failure') uses: ./.github/actions/send_failure with: - title: "core-integrations failure using Haystack main branch: ${{ github.workflow }}" + title: | + "core-integrations failure: + ${{ steps.tests.conclusion == 'failure' ? 'tests' : 'nightly-haystack-main' }} - + ${{ github.workflow }}" api-key: ${{ secrets.CORE_DATADOG_API_KEY }} diff --git a/.github/workflows/anthropic.yml b/.github/workflows/anthropic.yml index 755660bfc..acda29490 100644 --- a/.github/workflows/anthropic.yml +++ b/.github/workflows/anthropic.yml @@ -56,9 +56,21 @@ jobs: - name: Run tests run: hatch run cov + - name: Nightly - run unit tests with Haystack main branch + if: github.event_name == 'schedule' + id: nightly-haystack-main + run: | + hatch run pip install git+https://github.com/deepset-ai/haystack.git + hatch run test -m "not integration" + - name: Send event to Datadog for nightly failures - if: github.event_name == 'schedule' && failure() + if: | + failure() && github.event_name == 'schedule' && + (steps.nightly-haystack-main.conclusion == 'failure' || steps.tests.conclusion == 'failure') uses: ./.github/actions/send_failure with: - title: "core-integrations nightly failure: ${{ github.workflow }}" + title: | + "core-integrations failure: + ${{ steps.tests.conclusion == 'failure' ? 'tests' : 'nightly-haystack-main' }} - + ${{ github.workflow }}" api-key: ${{ secrets.CORE_DATADOG_API_KEY }} diff --git a/.github/workflows/astra.yml b/.github/workflows/astra.yml index df20c0bdc..99de37007 100644 --- a/.github/workflows/astra.yml +++ b/.github/workflows/astra.yml @@ -64,13 +64,6 @@ jobs: id: tests run: hatch run cov - - name: Send event to Datadog for nightly failures - if: failure() && github.event_name == 'schedule' && steps.tests.conclusion == 'failure' - uses: ./.github/actions/send_failure - with: - title: "core-integrations failure: ${{ github.workflow }}" - api-key: ${{ secrets.CORE_DATADOG_API_KEY }} - - name: Nightly - run unit tests with Haystack main branch if: github.event_name == 'schedule' id: nightly-haystack-main @@ -78,9 +71,14 @@ jobs: hatch run pip install git+https://github.com/deepset-ai/haystack.git hatch run test -m "not integration" - - name: Send event to Datadog for nightly failures using Haystack main branch - if: failure() && github.event_name == 'schedule' && steps.nightly-haystack-main.conclusion == 'failure' + - name: Send event to Datadog for nightly failures + if: | + failure() && github.event_name == 'schedule' && + (steps.nightly-haystack-main.conclusion == 'failure' || steps.tests.conclusion == 'failure') uses: ./.github/actions/send_failure with: - title: "core-integrations failure using Haystack main branch: ${{ github.workflow }}" + title: | + "core-integrations failure: + ${{ steps.tests.conclusion == 'failure' ? 'tests' : 'nightly-haystack-main' }} - + ${{ github.workflow }}" api-key: ${{ secrets.CORE_DATADOG_API_KEY }} \ No newline at end of file diff --git a/.github/workflows/chroma.yml b/.github/workflows/chroma.yml index dddb97019..c1d5e26fa 100644 --- a/.github/workflows/chroma.yml +++ b/.github/workflows/chroma.yml @@ -60,13 +60,6 @@ jobs: id: tests run: hatch run cov - - name: Send event to Datadog for nightly failures - if: failure() && github.event_name == 'schedule' && steps.tests.conclusion == 'failure' - uses: ./.github/actions/send_failure - with: - title: "core-integrations failure: ${{ github.workflow }}" - api-key: ${{ secrets.CORE_DATADOG_API_KEY }} - - name: Nightly - run unit tests with Haystack main branch if: github.event_name == 'schedule' id: nightly-haystack-main @@ -74,9 +67,14 @@ jobs: hatch run pip install git+https://github.com/deepset-ai/haystack.git hatch run test -m "not integration" - - name: Send event to Datadog for nightly failures using Haystack main branch - if: failure() && github.event_name == 'schedule' && steps.nightly-haystack-main.conclusion == 'failure' + - name: Send event to Datadog for nightly failures + if: | + failure() && github.event_name == 'schedule' && + (steps.nightly-haystack-main.conclusion == 'failure' || steps.tests.conclusion == 'failure') uses: ./.github/actions/send_failure with: - title: "core-integrations failure using Haystack main branch: ${{ github.workflow }}" + title: | + "core-integrations failure: + ${{ steps.tests.conclusion == 'failure' ? 'tests' : 'nightly-haystack-main' }} - + ${{ github.workflow }}" api-key: ${{ secrets.CORE_DATADOG_API_KEY }} \ No newline at end of file diff --git a/.github/workflows/cohere.yml b/.github/workflows/cohere.yml index e969b6b43..258edeb70 100644 --- a/.github/workflows/cohere.yml +++ b/.github/workflows/cohere.yml @@ -61,13 +61,6 @@ jobs: id: tests run: hatch run cov - - name: Send event to Datadog for nightly failures - if: failure() && github.event_name == 'schedule' && steps.tests.conclusion == 'failure' - uses: ./.github/actions/send_failure - with: - title: "core-integrations failure: ${{ github.workflow }}" - api-key: ${{ secrets.CORE_DATADOG_API_KEY }} - - name: Nightly - run unit tests with Haystack main branch if: github.event_name == 'schedule' id: nightly-haystack-main @@ -75,9 +68,14 @@ jobs: hatch run pip install git+https://github.com/deepset-ai/haystack.git hatch run test -m "not integration" - - name: Send event to Datadog for nightly failures using Haystack main branch - if: failure() && github.event_name == 'schedule' && steps.nightly-haystack-main.conclusion == 'failure' + - name: Send event to Datadog for nightly failures + if: | + failure() && github.event_name == 'schedule' && + (steps.nightly-haystack-main.conclusion == 'failure' || steps.tests.conclusion == 'failure') uses: ./.github/actions/send_failure with: - title: "core-integrations failure using Haystack main branch: ${{ github.workflow }}" + title: | + "core-integrations failure: + ${{ steps.tests.conclusion == 'failure' ? 'tests' : 'nightly-haystack-main' }} - + ${{ github.workflow }}" api-key: ${{ secrets.CORE_DATADOG_API_KEY }} \ No newline at end of file diff --git a/.github/workflows/deepeval.yml b/.github/workflows/deepeval.yml index 60111de7f..a9871153e 100644 --- a/.github/workflows/deepeval.yml +++ b/.github/workflows/deepeval.yml @@ -60,13 +60,6 @@ jobs: id: tests run: hatch run cov - - name: Send event to Datadog for nightly failures - if: failure() && github.event_name == 'schedule' && steps.tests.conclusion == 'failure' - uses: ./.github/actions/send_failure - with: - title: "core-integrations failure: ${{ github.workflow }}" - api-key: ${{ secrets.CORE_DATADOG_API_KEY }} - - name: Nightly - run unit tests with Haystack main branch if: github.event_name == 'schedule' id: nightly-haystack-main @@ -74,9 +67,14 @@ jobs: hatch run pip install git+https://github.com/deepset-ai/haystack.git hatch run test -m "not integration" - - name: Send event to Datadog for nightly failures using Haystack main branch - if: failure() && github.event_name == 'schedule' && steps.nightly-haystack-main.conclusion == 'failure' + - name: Send event to Datadog for nightly failures + if: | + failure() && github.event_name == 'schedule' && + (steps.nightly-haystack-main.conclusion == 'failure' || steps.tests.conclusion == 'failure') uses: ./.github/actions/send_failure with: - title: "core-integrations failure using Haystack main branch: ${{ github.workflow }}" + title: | + "core-integrations failure: + ${{ steps.tests.conclusion == 'failure' ? 'tests' : 'nightly-haystack-main' }} - + ${{ github.workflow }}" api-key: ${{ secrets.CORE_DATADOG_API_KEY }} diff --git a/.github/workflows/elasticsearch.yml b/.github/workflows/elasticsearch.yml index 4b8c5ea67..53acf68e6 100644 --- a/.github/workflows/elasticsearch.yml +++ b/.github/workflows/elasticsearch.yml @@ -58,13 +58,6 @@ jobs: id: tests run: hatch run cov - - name: Send event to Datadog for nightly failures - if: failure() && github.event_name == 'schedule' && steps.tests.conclusion == 'failure' - uses: ./.github/actions/send_failure - with: - title: "core-integrations failure: ${{ github.workflow }}" - api-key: ${{ secrets.CORE_DATADOG_API_KEY }} - - name: Nightly - run unit tests with Haystack main branch if: github.event_name == 'schedule' id: nightly-haystack-main @@ -72,9 +65,14 @@ jobs: hatch run pip install git+https://github.com/deepset-ai/haystack.git hatch run test -m "not integration" - - name: Send event to Datadog for nightly failures using Haystack main branch - if: failure() && github.event_name == 'schedule' && steps.nightly-haystack-main.conclusion == 'failure' + - name: Send event to Datadog for nightly failures + if: | + failure() && github.event_name == 'schedule' && + (steps.nightly-haystack-main.conclusion == 'failure' || steps.tests.conclusion == 'failure') uses: ./.github/actions/send_failure with: - title: "core-integrations failure using Haystack main branch: ${{ github.workflow }}" + title: | + "core-integrations failure: + ${{ steps.tests.conclusion == 'failure' ? 'tests' : 'nightly-haystack-main' }} - + ${{ github.workflow }}" api-key: ${{ secrets.CORE_DATADOG_API_KEY }} diff --git a/.github/workflows/fastembed.yml b/.github/workflows/fastembed.yml index 3adcba557..bdc06ec62 100644 --- a/.github/workflows/fastembed.yml +++ b/.github/workflows/fastembed.yml @@ -45,13 +45,6 @@ jobs: id: tests run: hatch run cov - - name: Send event to Datadog for nightly failures - if: failure() && github.event_name == 'schedule' && steps.tests.conclusion == 'failure' - uses: ./.github/actions/send_failure - with: - title: "core-integrations failure: ${{ github.workflow }}" - api-key: ${{ secrets.CORE_DATADOG_API_KEY }} - - name: Nightly - run unit tests with Haystack main branch if: github.event_name == 'schedule' id: nightly-haystack-main @@ -59,9 +52,14 @@ jobs: hatch run pip install git+https://github.com/deepset-ai/haystack.git hatch run test -m "not integration" - - name: Send event to Datadog for nightly failures using Haystack main branch - if: failure() && github.event_name == 'schedule' && steps.nightly-haystack-main.conclusion == 'failure' + - name: Send event to Datadog for nightly failures + if: | + failure() && github.event_name == 'schedule' && + (steps.nightly-haystack-main.conclusion == 'failure' || steps.tests.conclusion == 'failure') uses: ./.github/actions/send_failure with: - title: "core-integrations failure using Haystack main branch: ${{ github.workflow }}" + title: | + "core-integrations failure: + ${{ steps.tests.conclusion == 'failure' ? 'tests' : 'nightly-haystack-main' }} - + ${{ github.workflow }}" api-key: ${{ secrets.CORE_DATADOG_API_KEY }} \ No newline at end of file diff --git a/.github/workflows/google_ai.yml b/.github/workflows/google_ai.yml index e0d05922d..6f3cde325 100644 --- a/.github/workflows/google_ai.yml +++ b/.github/workflows/google_ai.yml @@ -61,13 +61,6 @@ jobs: id: tests run: hatch run cov - - name: Send event to Datadog for nightly failures - if: failure() && github.event_name == 'schedule' && steps.tests.conclusion == 'failure' - uses: ./.github/actions/send_failure - with: - title: "core-integrations failure: ${{ github.workflow }}" - api-key: ${{ secrets.CORE_DATADOG_API_KEY }} - - name: Nightly - run unit tests with Haystack main branch if: github.event_name == 'schedule' id: nightly-haystack-main @@ -75,9 +68,14 @@ jobs: hatch run pip install git+https://github.com/deepset-ai/haystack.git hatch run test -m "not integration" - - name: Send event to Datadog for nightly failures using Haystack main branch - if: failure() && github.event_name == 'schedule' && steps.nightly-haystack-main.conclusion == 'failure' + - name: Send event to Datadog for nightly failures + if: | + failure() && github.event_name == 'schedule' && + (steps.nightly-haystack-main.conclusion == 'failure' || steps.tests.conclusion == 'failure') uses: ./.github/actions/send_failure with: - title: "core-integrations failure using Haystack main branch: ${{ github.workflow }}" + title: | + "core-integrations failure: + ${{ steps.tests.conclusion == 'failure' ? 'tests' : 'nightly-haystack-main' }} - + ${{ github.workflow }}" api-key: ${{ secrets.CORE_DATADOG_API_KEY }} diff --git a/.github/workflows/google_vertex.yml b/.github/workflows/google_vertex.yml index a88cf3fe1..585540467 100644 --- a/.github/workflows/google_vertex.yml +++ b/.github/workflows/google_vertex.yml @@ -60,13 +60,6 @@ jobs: id: tests run: hatch run cov - - name: Send event to Datadog for nightly failures - if: failure() && github.event_name == 'schedule' && steps.tests.conclusion == 'failure' - uses: ./.github/actions/send_failure - with: - title: "core-integrations failure: ${{ github.workflow }}" - api-key: ${{ secrets.CORE_DATADOG_API_KEY }} - - name: Nightly - run unit tests with Haystack main branch if: github.event_name == 'schedule' id: nightly-haystack-main @@ -74,9 +67,14 @@ jobs: hatch run pip install git+https://github.com/deepset-ai/haystack.git hatch run test -m "not integration" - - name: Send event to Datadog for nightly failures using Haystack main branch - if: failure() && github.event_name == 'schedule' && steps.nightly-haystack-main.conclusion == 'failure' + - name: Send event to Datadog for nightly failures + if: | + failure() && github.event_name == 'schedule' && + (steps.nightly-haystack-main.conclusion == 'failure' || steps.tests.conclusion == 'failure') uses: ./.github/actions/send_failure with: - title: "core-integrations failure using Haystack main branch: ${{ github.workflow }}" + title: | + "core-integrations failure: + ${{ steps.tests.conclusion == 'failure' ? 'tests' : 'nightly-haystack-main' }} - + ${{ github.workflow }}" api-key: ${{ secrets.CORE_DATADOG_API_KEY }} diff --git a/.github/workflows/gradient.yml b/.github/workflows/gradient.yml index e70c5852c..6ad67e7b0 100644 --- a/.github/workflows/gradient.yml +++ b/.github/workflows/gradient.yml @@ -60,13 +60,6 @@ jobs: id: tests run: hatch run cov - - name: Send event to Datadog for nightly failures - if: failure() && github.event_name == 'schedule' && steps.tests.conclusion == 'failure' - uses: ./.github/actions/send_failure - with: - title: "core-integrations failure: ${{ github.workflow }}" - api-key: ${{ secrets.CORE_DATADOG_API_KEY }} - - name: Nightly - run unit tests with Haystack main branch if: github.event_name == 'schedule' id: nightly-haystack-main @@ -74,9 +67,14 @@ jobs: hatch run pip install git+https://github.com/deepset-ai/haystack.git hatch run test -m "not integration" - - name: Send event to Datadog for nightly failures using Haystack main branch - if: failure() && github.event_name == 'schedule' && steps.nightly-haystack-main.conclusion == 'failure' + - name: Send event to Datadog for nightly failures + if: | + failure() && github.event_name == 'schedule' && + (steps.nightly-haystack-main.conclusion == 'failure' || steps.tests.conclusion == 'failure') uses: ./.github/actions/send_failure with: - title: "core-integrations failure using Haystack main branch: ${{ github.workflow }}" + title: | + "core-integrations failure: + ${{ steps.tests.conclusion == 'failure' ? 'tests' : 'nightly-haystack-main' }} - + ${{ github.workflow }}" api-key: ${{ secrets.CORE_DATADOG_API_KEY }} \ No newline at end of file diff --git a/.github/workflows/instructor_embedders.yml b/.github/workflows/instructor_embedders.yml index 7e169ef4d..0f865db8d 100644 --- a/.github/workflows/instructor_embedders.yml +++ b/.github/workflows/instructor_embedders.yml @@ -38,13 +38,6 @@ jobs: id: tests run: hatch run cov - - name: Send event to Datadog for nightly failures - if: failure() && github.event_name == 'schedule' && steps.tests.conclusion == 'failure' - uses: ./.github/actions/send_failure - with: - title: "core-integrations failure: ${{ github.workflow }}" - api-key: ${{ secrets.CORE_DATADOG_API_KEY }} - - name: Nightly - run unit tests with Haystack main branch if: github.event_name == 'schedule' id: nightly-haystack-main @@ -52,9 +45,14 @@ jobs: hatch run pip install git+https://github.com/deepset-ai/haystack.git hatch run test -m "not integration" - - name: Send event to Datadog for nightly failures using Haystack main branch - if: failure() && github.event_name == 'schedule' && steps.nightly-haystack-main.conclusion == 'failure' + - name: Send event to Datadog for nightly failures + if: | + failure() && github.event_name == 'schedule' && + (steps.nightly-haystack-main.conclusion == 'failure' || steps.tests.conclusion == 'failure') uses: ./.github/actions/send_failure with: - title: "core-integrations failure using Haystack main branch: ${{ github.workflow }}" + title: | + "core-integrations failure: + ${{ steps.tests.conclusion == 'failure' ? 'tests' : 'nightly-haystack-main' }} - + ${{ github.workflow }}" api-key: ${{ secrets.CORE_DATADOG_API_KEY }} diff --git a/.github/workflows/jina.yml b/.github/workflows/jina.yml index 4d7463b99..50968b75b 100644 --- a/.github/workflows/jina.yml +++ b/.github/workflows/jina.yml @@ -60,13 +60,6 @@ jobs: id: tests run: hatch run cov - - name: Send event to Datadog for nightly failures - if: failure() && github.event_name == 'schedule' && steps.tests.conclusion == 'failure' - uses: ./.github/actions/send_failure - with: - title: "core-integrations failure: ${{ github.workflow }}" - api-key: ${{ secrets.CORE_DATADOG_API_KEY }} - - name: Nightly - run unit tests with Haystack main branch if: github.event_name == 'schedule' id: nightly-haystack-main @@ -74,9 +67,14 @@ jobs: hatch run pip install git+https://github.com/deepset-ai/haystack.git hatch run test -m "not integration" - - name: Send event to Datadog for nightly failures using Haystack main branch - if: failure() && github.event_name == 'schedule' && steps.nightly-haystack-main.conclusion == 'failure' + - name: Send event to Datadog for nightly failures + if: | + failure() && github.event_name == 'schedule' && + (steps.nightly-haystack-main.conclusion == 'failure' || steps.tests.conclusion == 'failure') uses: ./.github/actions/send_failure with: - title: "core-integrations failure using Haystack main branch: ${{ github.workflow }}" + title: | + "core-integrations failure: + ${{ steps.tests.conclusion == 'failure' ? 'tests' : 'nightly-haystack-main' }} - + ${{ github.workflow }}" api-key: ${{ secrets.CORE_DATADOG_API_KEY }} diff --git a/.github/workflows/llama_cpp.yml b/.github/workflows/llama_cpp.yml index 7d236bc68..0123f2025 100644 --- a/.github/workflows/llama_cpp.yml +++ b/.github/workflows/llama_cpp.yml @@ -60,13 +60,6 @@ jobs: id: tests run: hatch run cov - - name: Send event to Datadog for nightly failures - if: failure() && github.event_name == 'schedule' && steps.tests.conclusion == 'failure' - uses: ./.github/actions/send_failure - with: - title: "core-integrations failure: ${{ github.workflow }}" - api-key: ${{ secrets.CORE_DATADOG_API_KEY }} - - name: Nightly - run unit tests with Haystack main branch if: github.event_name == 'schedule' id: nightly-haystack-main @@ -74,9 +67,14 @@ jobs: hatch run pip install git+https://github.com/deepset-ai/haystack.git hatch run test -m "not integration" - - name: Send event to Datadog for nightly failures using Haystack main branch - if: failure() && github.event_name == 'schedule' && steps.nightly-haystack-main.conclusion == 'failure' + - name: Send event to Datadog for nightly failures + if: | + failure() && github.event_name == 'schedule' && + (steps.nightly-haystack-main.conclusion == 'failure' || steps.tests.conclusion == 'failure') uses: ./.github/actions/send_failure with: - title: "core-integrations failure using Haystack main branch: ${{ github.workflow }}" + title: | + "core-integrations failure: + ${{ steps.tests.conclusion == 'failure' ? 'tests' : 'nightly-haystack-main' }} - + ${{ github.workflow }}" api-key: ${{ secrets.CORE_DATADOG_API_KEY }} diff --git a/.github/workflows/mistral.yml b/.github/workflows/mistral.yml index d69fbc9ef..3a1d3e8a3 100644 --- a/.github/workflows/mistral.yml +++ b/.github/workflows/mistral.yml @@ -61,13 +61,6 @@ jobs: id: tests run: hatch run cov - - name: Send event to Datadog for nightly failures - if: failure() && github.event_name == 'schedule' && steps.tests.conclusion == 'failure' - uses: ./.github/actions/send_failure - with: - title: "core-integrations failure: ${{ github.workflow }}" - api-key: ${{ secrets.CORE_DATADOG_API_KEY }} - - name: Nightly - run unit tests with Haystack main branch if: github.event_name == 'schedule' id: nightly-haystack-main @@ -75,9 +68,14 @@ jobs: hatch run pip install git+https://github.com/deepset-ai/haystack.git hatch run test -m "not integration" - - name: Send event to Datadog for nightly failures using Haystack main branch - if: failure() && github.event_name == 'schedule' && steps.nightly-haystack-main.conclusion == 'failure' + - name: Send event to Datadog for nightly failures + if: | + failure() && github.event_name == 'schedule' && + (steps.nightly-haystack-main.conclusion == 'failure' || steps.tests.conclusion == 'failure') uses: ./.github/actions/send_failure with: - title: "core-integrations failure using Haystack main branch: ${{ github.workflow }}" + title: | + "core-integrations failure: + ${{ steps.tests.conclusion == 'failure' ? 'tests' : 'nightly-haystack-main' }} - + ${{ github.workflow }}" api-key: ${{ secrets.CORE_DATADOG_API_KEY }} diff --git a/.github/workflows/mongodb_atlas.yml b/.github/workflows/mongodb_atlas.yml index f37fc1a8c..906b35a30 100644 --- a/.github/workflows/mongodb_atlas.yml +++ b/.github/workflows/mongodb_atlas.yml @@ -57,13 +57,6 @@ jobs: id: tests run: hatch run cov - - name: Send event to Datadog for nightly failures - if: failure() && github.event_name == 'schedule' && steps.tests.conclusion == 'failure' - uses: ./.github/actions/send_failure - with: - title: "core-integrations failure: ${{ github.workflow }}" - api-key: ${{ secrets.CORE_DATADOG_API_KEY }} - - name: Nightly - run unit tests with Haystack main branch if: github.event_name == 'schedule' id: nightly-haystack-main @@ -71,9 +64,14 @@ jobs: hatch run pip install git+https://github.com/deepset-ai/haystack.git hatch run test -m "not integration" - - name: Send event to Datadog for nightly failures using Haystack main branch - if: failure() && github.event_name == 'schedule' && steps.nightly-haystack-main.conclusion == 'failure' + - name: Send event to Datadog for nightly failures + if: | + failure() && github.event_name == 'schedule' && + (steps.nightly-haystack-main.conclusion == 'failure' || steps.tests.conclusion == 'failure') uses: ./.github/actions/send_failure with: - title: "core-integrations failure using Haystack main branch: ${{ github.workflow }}" + title: | + "core-integrations failure: + ${{ steps.tests.conclusion == 'failure' ? 'tests' : 'nightly-haystack-main' }} - + ${{ github.workflow }}" api-key: ${{ secrets.CORE_DATADOG_API_KEY }} diff --git a/.github/workflows/nvidia.yml b/.github/workflows/nvidia.yml index c3b22ee70..850f14fa0 100644 --- a/.github/workflows/nvidia.yml +++ b/.github/workflows/nvidia.yml @@ -57,13 +57,6 @@ jobs: id: tests run: hatch run cov - - name: Send event to Datadog for nightly failures - if: failure() && github.event_name == 'schedule' && steps.tests.conclusion == 'failure' - uses: ./.github/actions/send_failure - with: - title: "core-integrations failure: ${{ github.workflow }}" - api-key: ${{ secrets.CORE_DATADOG_API_KEY }} - - name: Nightly - run unit tests with Haystack main branch if: github.event_name == 'schedule' id: nightly-haystack-main @@ -71,9 +64,14 @@ jobs: hatch run pip install git+https://github.com/deepset-ai/haystack.git hatch run test -m "not integration" - - name: Send event to Datadog for nightly failures using Haystack main branch - if: failure() && github.event_name == 'schedule' && steps.nightly-haystack-main.conclusion == 'failure' + - name: Send event to Datadog for nightly failures + if: | + failure() && github.event_name == 'schedule' && + (steps.nightly-haystack-main.conclusion == 'failure' || steps.tests.conclusion == 'failure') uses: ./.github/actions/send_failure with: - title: "core-integrations failure using Haystack main branch: ${{ github.workflow }}" + title: | + "core-integrations failure: + ${{ steps.tests.conclusion == 'failure' ? 'tests' : 'nightly-haystack-main' }} - + ${{ github.workflow }}" api-key: ${{ secrets.CORE_DATADOG_API_KEY }} diff --git a/.github/workflows/ollama.yml b/.github/workflows/ollama.yml index fde27ec1e..d9f78c121 100644 --- a/.github/workflows/ollama.yml +++ b/.github/workflows/ollama.yml @@ -78,13 +78,6 @@ jobs: id: tests run: hatch run cov - - name: Send event to Datadog for nightly failures - if: failure() && github.event_name == 'schedule' && steps.tests.conclusion == 'failure' - uses: ./.github/actions/send_failure - with: - title: "core-integrations failure: ${{ github.workflow }}" - api-key: ${{ secrets.CORE_DATADOG_API_KEY }} - - name: Nightly - run unit tests with Haystack main branch if: github.event_name == 'schedule' id: nightly-haystack-main @@ -92,9 +85,14 @@ jobs: hatch run pip install git+https://github.com/deepset-ai/haystack.git hatch run test -m "not integration" - - name: Send event to Datadog for nightly failures using Haystack main branch - if: failure() && github.event_name == 'schedule' && steps.nightly-haystack-main.conclusion == 'failure' + - name: Send event to Datadog for nightly failures + if: | + failure() && github.event_name == 'schedule' && + (steps.nightly-haystack-main.conclusion == 'failure' || steps.tests.conclusion == 'failure') uses: ./.github/actions/send_failure with: - title: "core-integrations failure using Haystack main branch: ${{ github.workflow }}" + title: | + "core-integrations failure: + ${{ steps.tests.conclusion == 'failure' ? 'tests' : 'nightly-haystack-main' }} - + ${{ github.workflow }}" api-key: ${{ secrets.CORE_DATADOG_API_KEY }} diff --git a/.github/workflows/opensearch.yml b/.github/workflows/opensearch.yml index ab684f7bd..fd1841027 100644 --- a/.github/workflows/opensearch.yml +++ b/.github/workflows/opensearch.yml @@ -58,13 +58,6 @@ jobs: id: tests run: hatch run cov - - name: Send event to Datadog for nightly failures - if: failure() && github.event_name == 'schedule' && steps.tests.conclusion == 'failure' - uses: ./.github/actions/send_failure - with: - title: "core-integrations failure: ${{ github.workflow }}" - api-key: ${{ secrets.CORE_DATADOG_API_KEY }} - - name: Nightly - run unit tests with Haystack main branch if: github.event_name == 'schedule' id: nightly-haystack-main @@ -72,9 +65,14 @@ jobs: hatch run pip install git+https://github.com/deepset-ai/haystack.git hatch run test -m "not integration" - - name: Send event to Datadog for nightly failures using Haystack main branch - if: failure() && github.event_name == 'schedule' && steps.nightly-haystack-main.conclusion == 'failure' + - name: Send event to Datadog for nightly failures + if: | + failure() && github.event_name == 'schedule' && + (steps.nightly-haystack-main.conclusion == 'failure' || steps.tests.conclusion == 'failure') uses: ./.github/actions/send_failure with: - title: "core-integrations failure using Haystack main branch: ${{ github.workflow }}" + title: | + "core-integrations failure: + ${{ steps.tests.conclusion == 'failure' ? 'tests' : 'nightly-haystack-main' }} - + ${{ github.workflow }}" api-key: ${{ secrets.CORE_DATADOG_API_KEY }} diff --git a/.github/workflows/optimum.yml b/.github/workflows/optimum.yml index ff56463c5..c61e60a5d 100644 --- a/.github/workflows/optimum.yml +++ b/.github/workflows/optimum.yml @@ -60,13 +60,6 @@ jobs: id: tests run: hatch run cov - - name: Send event to Datadog for nightly failures - if: failure() && github.event_name == 'schedule' && steps.tests.conclusion == 'failure' - uses: ./.github/actions/send_failure - with: - title: "core-integrations failure: ${{ github.workflow }}" - api-key: ${{ secrets.CORE_DATADOG_API_KEY }} - - name: Nightly - run unit tests with Haystack main branch if: github.event_name == 'schedule' id: nightly-haystack-main @@ -74,9 +67,14 @@ jobs: hatch run pip install git+https://github.com/deepset-ai/haystack.git hatch run test -m "not integration" - - name: Send event to Datadog for nightly failures using Haystack main branch - if: failure() && github.event_name == 'schedule' && steps.nightly-haystack-main.conclusion == 'failure' + - name: Send event to Datadog for nightly failures + if: | + failure() && github.event_name == 'schedule' && + (steps.nightly-haystack-main.conclusion == 'failure' || steps.tests.conclusion == 'failure') uses: ./.github/actions/send_failure with: - title: "core-integrations failure using Haystack main branch: ${{ github.workflow }}" + title: | + "core-integrations failure: + ${{ steps.tests.conclusion == 'failure' ? 'tests' : 'nightly-haystack-main' }} - + ${{ github.workflow }}" api-key: ${{ secrets.CORE_DATADOG_API_KEY }} diff --git a/.github/workflows/pgvector.yml b/.github/workflows/pgvector.yml index f3535c019..873bab298 100644 --- a/.github/workflows/pgvector.yml +++ b/.github/workflows/pgvector.yml @@ -64,13 +64,6 @@ jobs: id: tests run: hatch run cov - - name: Send event to Datadog for nightly failures - if: failure() && github.event_name == 'schedule' && steps.tests.conclusion == 'failure' - uses: ./.github/actions/send_failure - with: - title: "core-integrations failure: ${{ github.workflow }}" - api-key: ${{ secrets.CORE_DATADOG_API_KEY }} - - name: Nightly - run unit tests with Haystack main branch if: github.event_name == 'schedule' id: nightly-haystack-main @@ -78,9 +71,14 @@ jobs: hatch run pip install git+https://github.com/deepset-ai/haystack.git hatch run test -m "not integration" - - name: Send event to Datadog for nightly failures using Haystack main branch - if: failure() && github.event_name == 'schedule' && steps.nightly-haystack-main.conclusion == 'failure' + - name: Send event to Datadog for nightly failures + if: | + failure() && github.event_name == 'schedule' && + (steps.nightly-haystack-main.conclusion == 'failure' || steps.tests.conclusion == 'failure') uses: ./.github/actions/send_failure with: - title: "core-integrations failure using Haystack main branch: ${{ github.workflow }}" + title: | + "core-integrations failure: + ${{ steps.tests.conclusion == 'failure' ? 'tests' : 'nightly-haystack-main' }} - + ${{ github.workflow }}" api-key: ${{ secrets.CORE_DATADOG_API_KEY }} diff --git a/.github/workflows/pinecone.yml b/.github/workflows/pinecone.yml index 6481a0d01..24817179b 100644 --- a/.github/workflows/pinecone.yml +++ b/.github/workflows/pinecone.yml @@ -58,13 +58,6 @@ jobs: id: tests run: hatch run cov - - name: Send event to Datadog for nightly failures - if: failure() && github.event_name == 'schedule' && steps.tests.conclusion == 'failure' - uses: ./.github/actions/send_failure - with: - title: "core-integrations failure: ${{ github.workflow }}" - api-key: ${{ secrets.CORE_DATADOG_API_KEY }} - - name: Nightly - run unit tests with Haystack main branch if: github.event_name == 'schedule' id: nightly-haystack-main @@ -72,9 +65,14 @@ jobs: hatch run pip install git+https://github.com/deepset-ai/haystack.git hatch run test -m "not integration" - - name: Send event to Datadog for nightly failures using Haystack main branch - if: failure() && github.event_name == 'schedule' && steps.nightly-haystack-main.conclusion == 'failure' + - name: Send event to Datadog for nightly failures + if: | + failure() && github.event_name == 'schedule' && + (steps.nightly-haystack-main.conclusion == 'failure' || steps.tests.conclusion == 'failure') uses: ./.github/actions/send_failure with: - title: "core-integrations failure using Haystack main branch: ${{ github.workflow }}" + title: | + "core-integrations failure: + ${{ steps.tests.conclusion == 'failure' ? 'tests' : 'nightly-haystack-main' }} - + ${{ github.workflow }}" api-key: ${{ secrets.CORE_DATADOG_API_KEY }} diff --git a/.github/workflows/qdrant.yml b/.github/workflows/qdrant.yml index 81a103ffb..da4eb9986 100644 --- a/.github/workflows/qdrant.yml +++ b/.github/workflows/qdrant.yml @@ -60,13 +60,6 @@ jobs: id: tests run: hatch run cov - - name: Send event to Datadog for nightly failures - if: failure() && github.event_name == 'schedule' && steps.tests.conclusion == 'failure' - uses: ./.github/actions/send_failure - with: - title: "core-integrations failure: ${{ github.workflow }}" - api-key: ${{ secrets.CORE_DATADOG_API_KEY }} - - name: Nightly - run unit tests with Haystack main branch if: github.event_name == 'schedule' id: nightly-haystack-main @@ -74,9 +67,14 @@ jobs: hatch run pip install git+https://github.com/deepset-ai/haystack.git hatch run test -m "not integration" - - name: Send event to Datadog for nightly failures using Haystack main branch - if: failure() && github.event_name == 'schedule' && steps.nightly-haystack-main.conclusion == 'failure' + - name: Send event to Datadog for nightly failures + if: | + failure() && github.event_name == 'schedule' && + (steps.nightly-haystack-main.conclusion == 'failure' || steps.tests.conclusion == 'failure') uses: ./.github/actions/send_failure with: - title: "core-integrations failure using Haystack main branch: ${{ github.workflow }}" + title: | + "core-integrations failure: + ${{ steps.tests.conclusion == 'failure' ? 'tests' : 'nightly-haystack-main' }} - + ${{ github.workflow }}" api-key: ${{ secrets.CORE_DATADOG_API_KEY }} diff --git a/.github/workflows/ragas.yml b/.github/workflows/ragas.yml index 9251cbe34..2a48f398d 100644 --- a/.github/workflows/ragas.yml +++ b/.github/workflows/ragas.yml @@ -60,13 +60,6 @@ jobs: id: tests run: hatch run cov - - name: Send event to Datadog for nightly failures - if: failure() && github.event_name == 'schedule' && steps.tests.conclusion == 'failure' - uses: ./.github/actions/send_failure - with: - title: "core-integrations failure: ${{ github.workflow }}" - api-key: ${{ secrets.CORE_DATADOG_API_KEY }} - - name: Nightly - run unit tests with Haystack main branch if: github.event_name == 'schedule' id: nightly-haystack-main @@ -74,9 +67,14 @@ jobs: hatch run pip install git+https://github.com/deepset-ai/haystack.git hatch run test -m "not integration" - - name: Send event to Datadog for nightly failures using Haystack main branch - if: failure() && github.event_name == 'schedule' && steps.nightly-haystack-main.conclusion == 'failure' + - name: Send event to Datadog for nightly failures + if: | + failure() && github.event_name == 'schedule' && + (steps.nightly-haystack-main.conclusion == 'failure' || steps.tests.conclusion == 'failure') uses: ./.github/actions/send_failure with: - title: "core-integrations failure using Haystack main branch: ${{ github.workflow }}" + title: | + "core-integrations failure: + ${{ steps.tests.conclusion == 'failure' ? 'tests' : 'nightly-haystack-main' }} - + ${{ github.workflow }}" api-key: ${{ secrets.CORE_DATADOG_API_KEY }} diff --git a/.github/workflows/unstructured.yml b/.github/workflows/unstructured.yml index 79109a313..e0c59c119 100644 --- a/.github/workflows/unstructured.yml +++ b/.github/workflows/unstructured.yml @@ -72,13 +72,6 @@ jobs: id: tests run: hatch run cov - - name: Send event to Datadog for nightly failures - if: failure() && github.event_name == 'schedule' && steps.tests.conclusion == 'failure' - uses: ./.github/actions/send_failure - with: - title: "core-integrations failure: ${{ github.workflow }}" - api-key: ${{ secrets.CORE_DATADOG_API_KEY }} - - name: Nightly - run unit tests with Haystack main branch if: github.event_name == 'schedule' id: nightly-haystack-main @@ -86,9 +79,14 @@ jobs: hatch run pip install git+https://github.com/deepset-ai/haystack.git hatch run test -m "not integration" - - name: Send event to Datadog for nightly failures using Haystack main branch - if: failure() && github.event_name == 'schedule' && steps.nightly-haystack-main.conclusion == 'failure' + - name: Send event to Datadog for nightly failures + if: | + failure() && github.event_name == 'schedule' && + (steps.nightly-haystack-main.conclusion == 'failure' || steps.tests.conclusion == 'failure') uses: ./.github/actions/send_failure with: - title: "core-integrations failure using Haystack main branch: ${{ github.workflow }}" + title: | + "core-integrations failure: + ${{ steps.tests.conclusion == 'failure' ? 'tests' : 'nightly-haystack-main' }} - + ${{ github.workflow }}" api-key: ${{ secrets.CORE_DATADOG_API_KEY }} \ No newline at end of file diff --git a/.github/workflows/uptrain.yml b/.github/workflows/uptrain.yml index 51d9b5361..2a6093004 100644 --- a/.github/workflows/uptrain.yml +++ b/.github/workflows/uptrain.yml @@ -56,13 +56,6 @@ jobs: id: tests run: hatch run cov - - name: Send event to Datadog for nightly failures - if: failure() && github.event_name == 'schedule' && steps.tests.conclusion == 'failure' - uses: ./.github/actions/send_failure - with: - title: "core-integrations failure: ${{ github.workflow }}" - api-key: ${{ secrets.CORE_DATADOG_API_KEY }} - - name: Nightly - run unit tests with Haystack main branch if: github.event_name == 'schedule' id: nightly-haystack-main @@ -70,9 +63,14 @@ jobs: hatch run pip install git+https://github.com/deepset-ai/haystack.git hatch run test -m "not integration" - - name: Send event to Datadog for nightly failures using Haystack main branch - if: failure() && github.event_name == 'schedule' && steps.nightly-haystack-main.conclusion == 'failure' + - name: Send event to Datadog for nightly failures + if: | + failure() && github.event_name == 'schedule' && + (steps.nightly-haystack-main.conclusion == 'failure' || steps.tests.conclusion == 'failure') uses: ./.github/actions/send_failure with: - title: "core-integrations failure using Haystack main branch: ${{ github.workflow }}" + title: | + "core-integrations failure: + ${{ steps.tests.conclusion == 'failure' ? 'tests' : 'nightly-haystack-main' }} - + ${{ github.workflow }}" api-key: ${{ secrets.CORE_DATADOG_API_KEY }} diff --git a/.github/workflows/weaviate.yml b/.github/workflows/weaviate.yml index 304e67239..10705145c 100644 --- a/.github/workflows/weaviate.yml +++ b/.github/workflows/weaviate.yml @@ -57,13 +57,6 @@ jobs: id: tests run: hatch run cov - - name: Send event to Datadog for nightly failures - if: failure() && github.event_name == 'schedule' && steps.tests.conclusion == 'failure' - uses: ./.github/actions/send_failure - with: - title: "core-integrations failure: ${{ github.workflow }}" - api-key: ${{ secrets.CORE_DATADOG_API_KEY }} - - name: Nightly - run unit tests with Haystack main branch if: github.event_name == 'schedule' id: nightly-haystack-main @@ -71,9 +64,14 @@ jobs: hatch run pip install git+https://github.com/deepset-ai/haystack.git hatch run test -m "not integration" - - name: Send event to Datadog for nightly failures using Haystack main branch - if: failure() && github.event_name == 'schedule' && steps.nightly-haystack-main.conclusion == 'failure' + - name: Send event to Datadog for nightly failures + if: | + failure() && github.event_name == 'schedule' && + (steps.nightly-haystack-main.conclusion == 'failure' || steps.tests.conclusion == 'failure') uses: ./.github/actions/send_failure with: - title: "core-integrations failure using Haystack main branch: ${{ github.workflow }}" + title: | + "core-integrations failure: + ${{ steps.tests.conclusion == 'failure' ? 'tests' : 'nightly-haystack-main' }} - + ${{ github.workflow }}" api-key: ${{ secrets.CORE_DATADOG_API_KEY }}