Skip to content

Commit

Permalink
test: do not retry tests in hatch run test command (#954)
Browse files Browse the repository at this point in the history
* do not retry tests in hatch run test command

* fix

* hatch config improvements
  • Loading branch information
anakin87 authored Aug 12, 2024
1 parent 93d2c68 commit a8b2de9
Show file tree
Hide file tree
Showing 54 changed files with 163 additions and 109 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/amazon_bedrock.yml
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ jobs:
run: hatch run docs

- name: Run unit tests
run: hatch run cov -m "not integration"
run: hatch run cov-retry -m "not integration"

# Do not authenticate on pull requests from forks
- name: AWS authentication
Expand All @@ -76,13 +76,13 @@ jobs:
# Do not run integration tests on pull requests from forks
- name: Run integration tests
if: github.event.pull_request.head.repo.full_name == github.repository
run: hatch run cov -m "integration"
run: hatch run cov-retry -m "integration"

- name: Nightly - run unit tests with Haystack main branch
if: github.event_name == 'schedule'
run: |
hatch run pip install git+https://github.com/deepset-ai/haystack.git
hatch run test -m "not integration"
hatch run cov-retry -m "not integration"
- name: Send event to Datadog for nightly failures
if: failure() && github.event_name == 'schedule'
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/amazon_sagemaker.yml
Original file line number Diff line number Diff line change
Expand Up @@ -57,13 +57,13 @@ jobs:
run: hatch run docs

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

- name: Nightly - run unit tests with Haystack main branch
if: github.event_name == 'schedule'
run: |
hatch run pip install git+https://github.com/deepset-ai/haystack.git
hatch run test -m "not integration"
hatch run cov-retry -m "not integration"
- name: Send event to Datadog for nightly failures
if: failure() && github.event_name == 'schedule'
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/anthropic.yml
Original file line number Diff line number Diff line change
Expand Up @@ -54,13 +54,13 @@ jobs:
run: hatch run lint:all

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

- name: Nightly - run unit tests with Haystack main branch
if: github.event_name == 'schedule'
run: |
hatch run pip install git+https://github.com/deepset-ai/haystack.git
hatch run test -m "not integration"
hatch run cov-retry -m "not integration"
- name: Send event to Datadog for nightly failures
if: failure() && github.event_name == 'schedule'
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/astra.yml
Original file line number Diff line number Diff line change
Expand Up @@ -61,13 +61,13 @@ jobs:
env:
ASTRA_DB_API_ENDPOINT: ${{ secrets.ASTRA_DB_API_ENDPOINT }}
ASTRA_DB_APPLICATION_TOKEN: ${{ secrets.ASTRA_DB_APPLICATION_TOKEN }}
run: hatch run cov
run: hatch run cov-retry

- name: Nightly - run unit tests with Haystack main branch
if: github.event_name == 'schedule'
run: |
hatch run pip install git+https://github.com/deepset-ai/haystack.git
hatch run test -m "not integration"
hatch run cov-retry -m "not integration"
- name: Send event to Datadog for nightly failures
if: failure() && github.event_name == 'schedule'
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/chroma.yml
Original file line number Diff line number Diff line change
Expand Up @@ -57,13 +57,13 @@ jobs:
run: hatch run docs

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

- name: Nightly - run unit tests with Haystack main branch
if: github.event_name == 'schedule'
run: |
hatch run pip install git+https://github.com/deepset-ai/haystack.git
hatch run test -m "not integration"
hatch run cov-retry -m "not integration"
- name: Send event to Datadog for nightly failures
if: failure() && github.event_name == 'schedule'
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/cohere.yml
Original file line number Diff line number Diff line change
Expand Up @@ -58,13 +58,13 @@ jobs:
run: hatch run docs

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

- name: Nightly - run unit tests with Haystack main branch
if: github.event_name == 'schedule'
run: |
hatch run pip install git+https://github.com/deepset-ai/haystack.git
hatch run test -m "not integration"
hatch run cov-retry -m "not integration"
- name: Send event to Datadog for nightly failures
if: failure() && github.event_name == 'schedule'
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/deepeval.yml
Original file line number Diff line number Diff line change
Expand Up @@ -58,13 +58,13 @@ jobs:
run: hatch run docs

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

- name: Nightly - run unit tests with Haystack main branch
if: github.event_name == 'schedule'
run: |
hatch run pip install git+https://github.com/deepset-ai/haystack.git
hatch run test -m "not integration"
hatch run cov-retry -m "not integration"
- name: Send event to Datadog for nightly failures
if: failure() && github.event_name == 'schedule'
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/elasticsearch.yml
Original file line number Diff line number Diff line change
Expand Up @@ -55,13 +55,13 @@ jobs:
run: hatch run docs

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

- name: Nightly - run unit tests with Haystack main branch
if: github.event_name == 'schedule'
run: |
hatch run pip install git+https://github.com/deepset-ai/haystack.git
hatch run test -m "not integration"
hatch run cov-retry -m "not integration"
- name: Send event to Datadog for nightly failures
if: failure() && github.event_name == 'schedule'
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/fastembed.yml
Original file line number Diff line number Diff line change
Expand Up @@ -42,13 +42,13 @@ jobs:
run: hatch run docs

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

- name: Nightly - run unit tests with Haystack main branch
if: github.event_name == 'schedule'
run: |
hatch run pip install git+https://github.com/deepset-ai/haystack.git
hatch run test -m "not integration"
hatch run cov-retry -m "not integration"
- name: Send event to Datadog for nightly failures
if: failure() && github.event_name == 'schedule'
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/google_ai.yml
Original file line number Diff line number Diff line change
Expand Up @@ -58,13 +58,13 @@ jobs:
run: hatch run docs

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

- name: Nightly - run unit tests with Haystack main branch
if: github.event_name == 'schedule'
run: |
hatch run pip install git+https://github.com/deepset-ai/haystack.git
hatch run test -m "not integration"
hatch run cov-retry -m "not integration"
- name: Send event to Datadog for nightly failures
if: failure() && github.event_name == 'schedule'
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/google_vertex.yml
Original file line number Diff line number Diff line change
Expand Up @@ -57,13 +57,13 @@ jobs:
run: hatch run docs

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

- name: Nightly - run unit tests with Haystack main branch
if: github.event_name == 'schedule'
run: |
hatch run pip install git+https://github.com/deepset-ai/haystack.git
hatch run test -m "not integration"
hatch run cov-retry -m "not integration"
- name: Send event to Datadog for nightly failures
if: failure() && github.event_name == 'schedule'
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/instructor_embedders.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,13 +35,13 @@ jobs:
run: hatch run docs

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

- name: Nightly - run unit tests with Haystack main branch
if: github.event_name == 'schedule'
run: |
hatch run pip install git+https://github.com/deepset-ai/haystack.git
hatch run test -m "not integration"
hatch run cov-retry -m "not integration"
- name: Send event to Datadog for nightly failures
if: failure() && github.event_name == 'schedule'
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/jina.yml
Original file line number Diff line number Diff line change
Expand Up @@ -57,13 +57,13 @@ jobs:
run: hatch run docs

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

- name: Nightly - run unit tests with Haystack main branch
if: github.event_name == 'schedule'
run: |
hatch run pip install git+https://github.com/deepset-ai/haystack.git
hatch run test -m "not integration"
hatch run cov-retry -m "not integration"
- name: Send event to Datadog for nightly failures
if: failure() && github.event_name == 'schedule'
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/langfuse.yml
Original file line number Diff line number Diff line change
Expand Up @@ -60,13 +60,13 @@ jobs:
run: hatch run docs

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

- name: Nightly - run unit tests with Haystack main branch
if: github.event_name == 'schedule'
run: |
hatch run pip install git+https://github.com/deepset-ai/haystack.git
hatch run test -m "not integration"
hatch run cov-retry -m "not integration"
- name: Send event to Datadog for nightly failures
if: failure() && github.event_name == 'schedule'
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/llama_cpp.yml
Original file line number Diff line number Diff line change
Expand Up @@ -57,13 +57,13 @@ jobs:
run: hatch run docs

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

- name: Nightly - run unit tests with Haystack main branch
if: github.event_name == 'schedule'
run: |
hatch run pip install git+https://github.com/deepset-ai/haystack.git
hatch run test -m "not integration"
hatch run cov-retry -m "not integration"
- name: Send event to Datadog for nightly failures
if: failure() && github.event_name == 'schedule'
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/mistral.yml
Original file line number Diff line number Diff line change
Expand Up @@ -58,13 +58,13 @@ jobs:
run: hatch run docs

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

- name: Nightly - run unit tests with Haystack main branch
if: github.event_name == 'schedule'
run: |
hatch run pip install git+https://github.com/deepset-ai/haystack.git
hatch run test -m "not integration"
hatch run cov-retry -m "not integration"
- name: Send event to Datadog for nightly failures
if: failure() && github.event_name == 'schedule'
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/mongodb_atlas.yml
Original file line number Diff line number Diff line change
Expand Up @@ -54,13 +54,13 @@ jobs:
run: hatch run docs

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

- name: Nightly - run unit tests with Haystack main branch
if: github.event_name == 'schedule'
run: |
hatch run pip install git+https://github.com/deepset-ai/haystack.git
hatch run test -m "not integration"
hatch run cov-retry -m "not integration"
- name: Send event to Datadog for nightly failures
if: failure() && github.event_name == 'schedule'
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/nvidia.yml
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ jobs:
run: hatch run lint:all

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

- name: Generate docs
if: matrix.python-version == '3.9' && runner.os == 'Linux'
Expand All @@ -65,7 +65,7 @@ jobs:
if: github.event_name == 'schedule'
run: |
hatch run pip install git+https://github.com/deepset-ai/haystack.git
hatch run test -m "not integration"
hatch run cov-retry -m "not integration"
- name: Send event to Datadog for nightly failures
if: failure() && github.event_name == 'schedule'
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/ollama.yml
Original file line number Diff line number Diff line change
Expand Up @@ -75,13 +75,13 @@ jobs:
run: hatch run docs

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

- name: Nightly - run unit tests with Haystack main branch
if: github.event_name == 'schedule'
run: |
hatch run pip install git+https://github.com/deepset-ai/haystack.git
hatch run test -m "not integration"
hatch run cov-retry -m "not integration"
- name: Send event to Datadog for nightly failures
if: failure() && github.event_name == 'schedule'
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/opensearch.yml
Original file line number Diff line number Diff line change
Expand Up @@ -55,13 +55,13 @@ jobs:
run: hatch run docs

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

- name: Nightly - run unit tests with Haystack main branch
if: github.event_name == 'schedule'
run: |
hatch run pip install git+https://github.com/deepset-ai/haystack.git
hatch run test -m "not integration"
hatch run cov-retry -m "not integration"
- name: Send event to Datadog for nightly failures
if: failure() && github.event_name == 'schedule'
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/optimum.yml
Original file line number Diff line number Diff line change
Expand Up @@ -57,13 +57,13 @@ jobs:
run: hatch run docs

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

- name: Nightly - run unit tests with Haystack main branch
if: github.event_name == 'schedule'
run: |
hatch run pip install git+https://github.com/deepset-ai/haystack.git
hatch run test -m "not integration"
hatch run cov-retry -m "not integration"
- name: Send event to Datadog for nightly failures
if: failure() && github.event_name == 'schedule'
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/pgvector.yml
Original file line number Diff line number Diff line change
Expand Up @@ -61,13 +61,13 @@ jobs:
run: hatch run docs

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

- name: Nightly - run unit tests with Haystack main branch
if: github.event_name == 'schedule'
run: |
hatch run pip install git+https://github.com/deepset-ai/haystack.git
hatch run test -m "not integration"
hatch run cov-retry -m "not integration"
- name: Send event to Datadog for nightly failures
if: failure() && github.event_name == 'schedule'
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/pinecone.yml
Original file line number Diff line number Diff line change
Expand Up @@ -63,13 +63,13 @@ jobs:
- name: Run tests
env:
INDEX_NAME: ${{ matrix.INDEX_NAME }}
run: hatch run cov
run: hatch run cov-retry

- name: Nightly - run unit tests with Haystack main branch
if: github.event_name == 'schedule'
run: |
hatch run pip install git+https://github.com/deepset-ai/haystack.git
hatch run test -m "not integration"
hatch run cov-retry -m "not integration"
- name: Send event to Datadog for nightly failures
if: failure() && github.event_name == 'schedule'
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/qdrant.yml
Original file line number Diff line number Diff line change
Expand Up @@ -57,13 +57,13 @@ jobs:
run: hatch run docs

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

- name: Nightly - run unit tests with Haystack main branch
if: github.event_name == 'schedule'
run: |
hatch run pip install git+https://github.com/deepset-ai/haystack.git
hatch run test -m "not integration"
hatch run cov-retry -m "not integration"
- name: Send event to Datadog for nightly failures
if: failure() && github.event_name == 'schedule'
Expand Down
Loading

0 comments on commit a8b2de9

Please sign in to comment.