Skip to content

Commit

Permalink
Nightly - run unit tests with Haystack main branch (#580)
Browse files Browse the repository at this point in the history
* first refactorings

* squash

* retry

* remove quotes

* try failure

* another try

* try notification

* progress

* update all integrations

* run CI

* retry fastembed

* update all integrations

* add missing generate docs to cohere

* remove one notification step

* retry

* fix wrong syntax

* try a better workflow

* another try

* ternary op

* make it work

* rm condition
  • Loading branch information
anakin87 authored Mar 15, 2024
1 parent bf2a4af commit b7d61fd
Show file tree
Hide file tree
Showing 28 changed files with 398 additions and 76 deletions.
18 changes: 18 additions & 0 deletions .github/workflows/amazon_bedrock.yml
Original file line number Diff line number Diff line change
Expand Up @@ -68,4 +68,22 @@ jobs:
role-to-assume: ${{ secrets.AWS_CI_ROLE_ARN }}

- name: Run tests
id: 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: failure() && github.event_name == 'schedule'
uses: ./.github/actions/send_failure
with:
title: |
core-integrations failure:
${{ (steps.tests.conclusion == 'nightly-haystack-main') && 'nightly-haystack-main' || 'tests' }}
- ${{ github.workflow }}
api-key: ${{ secrets.CORE_DATADOG_API_KEY }}
18 changes: 18 additions & 0 deletions .github/workflows/amazon_sagemaker.yml
Original file line number Diff line number Diff line change
Expand Up @@ -57,4 +57,22 @@ jobs:
run: hatch run docs

- name: Run tests
id: 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: failure() && github.event_name == 'schedule'
uses: ./.github/actions/send_failure
with:
title: |
core-integrations failure:
${{ (steps.tests.conclusion == 'nightly-haystack-main') && 'nightly-haystack-main' || 'tests' }}
- ${{ github.workflow }}
api-key: ${{ secrets.CORE_DATADOG_API_KEY }}
16 changes: 13 additions & 3 deletions .github/workflows/anthropic.yml
Original file line number Diff line number Diff line change
Expand Up @@ -56,9 +56,19 @@ 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'
uses: ./.github/actions/send_failure
with:
title: "core-integrations nightly failure: ${{ github.workflow }}"
api-key: ${{ secrets.CORE_DATADOG_API_KEY }}
title: |
core-integrations failure:
${{ (steps.tests.conclusion == 'nightly-haystack-main') && 'nightly-haystack-main' || 'tests' }}
- ${{ github.workflow }}
api-key: ${{ secrets.CORE_DATADOG_API_KEY }}
15 changes: 13 additions & 2 deletions .github/workflows/astra.yml
Original file line number Diff line number Diff line change
Expand Up @@ -61,11 +61,22 @@ jobs:
env:
ASTRA_DB_API_ENDPOINT: ${{ secrets.ASTRA_API_ENDPOINT }}
ASTRA_DB_APPLICATION_TOKEN: ${{ secrets.ASTRA_TOKEN }}
id: 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'
uses: ./.github/actions/send_failure
with:
title: "core-integrations nightly failure: ${{ github.workflow }}"
title: |
core-integrations failure:
${{ (steps.tests.conclusion == 'nightly-haystack-main') && 'nightly-haystack-main' || 'tests' }}
- ${{ github.workflow }}
api-key: ${{ secrets.CORE_DATADOG_API_KEY }}
15 changes: 13 additions & 2 deletions .github/workflows/chroma.yml
Original file line number Diff line number Diff line change
Expand Up @@ -57,11 +57,22 @@ jobs:
run: hatch run docs

- name: Run tests
id: 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'
uses: ./.github/actions/send_failure
with:
title: "core-integrations nightly failure: ${{ github.workflow }}"
title: |
core-integrations failure:
${{ (steps.tests.conclusion == 'nightly-haystack-main') && 'nightly-haystack-main' || 'tests' }}
- ${{ github.workflow }}
api-key: ${{ secrets.CORE_DATADOG_API_KEY }}
19 changes: 17 additions & 2 deletions .github/workflows/cohere.yml
Original file line number Diff line number Diff line change
Expand Up @@ -53,12 +53,27 @@ jobs:
if: matrix.python-version == '3.9' && runner.os == 'Linux'
run: hatch run lint:all

- name: Generate docs
if: matrix.python-version == '3.9' && runner.os == 'Linux'
run: hatch run docs

- name: Run tests
id: 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'
uses: ./.github/actions/send_failure
with:
title: "core-integrations nightly failure: ${{ github.workflow }}"
title: |
core-integrations failure:
${{ (steps.tests.conclusion == 'nightly-haystack-main') && 'nightly-haystack-main' || 'tests' }}
- ${{ github.workflow }}
api-key: ${{ secrets.CORE_DATADOG_API_KEY }}
17 changes: 14 additions & 3 deletions .github/workflows/deepeval.yml
Original file line number Diff line number Diff line change
Expand Up @@ -57,11 +57,22 @@ jobs:
run: hatch run docs

- name: Run tests
id: 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'
uses: ./.github/actions/send_failure
with:
title: "core-integrations nightly failure: ${{ github.workflow }}"
api-key: ${{ secrets.CORE_DATADOG_API_KEY }}
title: |
core-integrations failure:
${{ (steps.tests.conclusion == 'nightly-haystack-main') && 'nightly-haystack-main' || 'tests' }}
- ${{ github.workflow }}
api-key: ${{ secrets.CORE_DATADOG_API_KEY }}
17 changes: 14 additions & 3 deletions .github/workflows/elasticsearch.yml
Original file line number Diff line number Diff line change
Expand Up @@ -55,11 +55,22 @@ jobs:
run: hatch run docs

- name: Run tests
id: 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'
uses: ./.github/actions/send_failure
with:
title: "core-integrations nightly failure: ${{ github.workflow }}"
api-key: ${{ secrets.CORE_DATADOG_API_KEY }}
title: |
core-integrations failure:
${{ (steps.tests.conclusion == 'nightly-haystack-main') && 'nightly-haystack-main' || 'tests' }}
- ${{ github.workflow }}
api-key: ${{ secrets.CORE_DATADOG_API_KEY }}
17 changes: 14 additions & 3 deletions .github/workflows/fastembed.yml
Original file line number Diff line number Diff line change
Expand Up @@ -42,11 +42,22 @@ jobs:
run: hatch run docs

- name: Run tests
id: 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: failure() #github.event_name == 'schedule' &&
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 }}
title: |
core-integrations failure:
${{ (steps.tests.conclusion == 'nightly-haystack-main') && 'nightly-haystack-main' || 'tests' }}
- ${{ github.workflow }}
api-key: ${{ secrets.CORE_DATADOG_API_KEY }}
17 changes: 14 additions & 3 deletions .github/workflows/google_ai.yml
Original file line number Diff line number Diff line change
Expand Up @@ -58,11 +58,22 @@ jobs:
run: hatch run docs

- name: Run tests
id: 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'
uses: ./.github/actions/send_failure
with:
title: "core-integrations nightly failure: ${{ github.workflow }}"
api-key: ${{ secrets.CORE_DATADOG_API_KEY }}
title: |
core-integrations failure:
${{ (steps.tests.conclusion == 'nightly-haystack-main') && 'nightly-haystack-main' || 'tests' }}
- ${{ github.workflow }}
api-key: ${{ secrets.CORE_DATADOG_API_KEY }}
17 changes: 14 additions & 3 deletions .github/workflows/google_vertex.yml
Original file line number Diff line number Diff line change
Expand Up @@ -57,11 +57,22 @@ jobs:
run: hatch run docs

- name: Run tests
id: 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'
uses: ./.github/actions/send_failure
with:
title: "core-integrations nightly failure: ${{ github.workflow }}"
api-key: ${{ secrets.CORE_DATADOG_API_KEY }}
title: |
core-integrations failure:
${{ (steps.tests.conclusion == 'nightly-haystack-main') && 'nightly-haystack-main' || 'tests' }}
- ${{ github.workflow }}
api-key: ${{ secrets.CORE_DATADOG_API_KEY }}
15 changes: 13 additions & 2 deletions .github/workflows/gradient.yml
Original file line number Diff line number Diff line change
Expand Up @@ -57,11 +57,22 @@ jobs:
run: hatch run docs

- name: Run tests
id: 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'
uses: ./.github/actions/send_failure
with:
title: "core-integrations nightly failure: ${{ github.workflow }}"
title: |
core-integrations failure:
${{ (steps.tests.conclusion == 'nightly-haystack-main') && 'nightly-haystack-main' || 'tests' }}
- ${{ github.workflow }}
api-key: ${{ secrets.CORE_DATADOG_API_KEY }}
17 changes: 14 additions & 3 deletions .github/workflows/instructor_embedders.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,11 +35,22 @@ jobs:
run: hatch run docs

- name: Run tests
id: 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'
uses: ./.github/actions/send_failure
with:
title: "core-integrations nightly failure: ${{ github.workflow }}"
api-key: ${{ secrets.CORE_DATADOG_API_KEY }}
title: |
core-integrations failure:
${{ (steps.tests.conclusion == 'nightly-haystack-main') && 'nightly-haystack-main' || 'tests' }}
- ${{ github.workflow }}
api-key: ${{ secrets.CORE_DATADOG_API_KEY }}
17 changes: 14 additions & 3 deletions .github/workflows/jina.yml
Original file line number Diff line number Diff line change
Expand Up @@ -57,11 +57,22 @@ jobs:
run: hatch run docs

- name: Run tests
id: 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'
uses: ./.github/actions/send_failure
with:
title: "core-integrations nightly failure: ${{ github.workflow }}"
api-key: ${{ secrets.CORE_DATADOG_API_KEY }}
title: |
core-integrations failure:
${{ (steps.tests.conclusion == 'nightly-haystack-main') && 'nightly-haystack-main' || 'tests' }}
- ${{ github.workflow }}
api-key: ${{ secrets.CORE_DATADOG_API_KEY }}
15 changes: 13 additions & 2 deletions .github/workflows/llama_cpp.yml
Original file line number Diff line number Diff line change
Expand Up @@ -57,11 +57,22 @@ jobs:
run: hatch run docs

- name: Run tests
id: 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'
uses: ./.github/actions/send_failure
with:
title: "core-integrations nightly failure: ${{ github.workflow }}"
title: |
core-integrations failure:
${{ (steps.tests.conclusion == 'nightly-haystack-main') && 'nightly-haystack-main' || 'tests' }}
- ${{ github.workflow }}
api-key: ${{ secrets.CORE_DATADOG_API_KEY }}
Loading

0 comments on commit b7d61fd

Please sign in to comment.