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

test: do not retry tests in hatch run test command #954

Merged
merged 3 commits into from
Aug 12, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading