Skip to content

Commit

Permalink
remove one notification step
Browse files Browse the repository at this point in the history
  • Loading branch information
anakin87 committed Mar 15, 2024
1 parent 57e9b86 commit d2fded0
Show file tree
Hide file tree
Showing 28 changed files with 231 additions and 273 deletions.
20 changes: 9 additions & 11 deletions .github/workflows/amazon_bedrock.yml
Original file line number Diff line number Diff line change
Expand Up @@ -70,24 +70,22 @@ 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
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 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 }}
18 changes: 8 additions & 10 deletions .github/workflows/amazon_sagemaker.yml
Original file line number Diff line number Diff line change
Expand Up @@ -60,23 +60,21 @@ 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
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 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 }}
16 changes: 14 additions & 2 deletions .github/workflows/anthropic.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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 }}
18 changes: 8 additions & 10 deletions .github/workflows/astra.yml
Original file line number Diff line number Diff line change
Expand Up @@ -64,23 +64,21 @@ 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
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 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 }}
18 changes: 8 additions & 10 deletions .github/workflows/chroma.yml
Original file line number Diff line number Diff line change
Expand Up @@ -60,23 +60,21 @@ 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
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 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 }}
18 changes: 8 additions & 10 deletions .github/workflows/cohere.yml
Original file line number Diff line number Diff line change
Expand Up @@ -61,23 +61,21 @@ 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
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 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 }}
18 changes: 8 additions & 10 deletions .github/workflows/deepeval.yml
Original file line number Diff line number Diff line change
Expand Up @@ -60,23 +60,21 @@ 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
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 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 }}
18 changes: 8 additions & 10 deletions .github/workflows/elasticsearch.yml
Original file line number Diff line number Diff line change
Expand Up @@ -58,23 +58,21 @@ 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
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 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 }}
18 changes: 8 additions & 10 deletions .github/workflows/fastembed.yml
Original file line number Diff line number Diff line change
Expand Up @@ -45,23 +45,21 @@ 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
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 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 }}
18 changes: 8 additions & 10 deletions .github/workflows/google_ai.yml
Original file line number Diff line number Diff line change
Expand Up @@ -61,23 +61,21 @@ 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
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 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 }}
18 changes: 8 additions & 10 deletions .github/workflows/google_vertex.yml
Original file line number Diff line number Diff line change
Expand Up @@ -60,23 +60,21 @@ 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
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 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 }}
18 changes: 8 additions & 10 deletions .github/workflows/gradient.yml
Original file line number Diff line number Diff line change
Expand Up @@ -60,23 +60,21 @@ 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
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 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 }}
Loading

0 comments on commit d2fded0

Please sign in to comment.