Skip to content

Commit 44c02a1

Browse files
authored
ci: Add reruns when running nightly tests if tests fail (#2584)
* Add reruns when running nightly tests if tests fail * Switch to using cov-retry for running nightly tests for integrations that inherit from OpenAIChatGenerator * Switch back to all just running tests, no retries, etc. * Switch some integrations so all just runs tests with no retries
1 parent 4f1c86d commit 44c02a1

10 files changed

Lines changed: 10 additions & 10 deletions

File tree

.github/workflows/llama_stack.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -133,7 +133,7 @@ jobs:
133133
run: |
134134
hatch env prune
135135
hatch -e test env run -- uv pip install git+https://github.com/deepset-ai/haystack.git@main
136-
hatch run test:all
136+
hatch run test:cov-retry
137137
138138
- name: Send event to Datadog for nightly failures
139139
if: failure() && github.event_name == 'schedule'

.github/workflows/meta_llama.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ jobs:
7272
run: |
7373
hatch env prune
7474
hatch -e test env run -- uv pip install git+https://github.com/deepset-ai/haystack.git@main
75-
hatch run test:all
75+
hatch run test:cov-retry
7676
7777
- name: Send event to Datadog for nightly failures
7878
if: failure() && github.event_name == 'schedule'

.github/workflows/mistral.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ jobs:
7373
run: |
7474
hatch env prune
7575
hatch -e test env run -- uv pip install git+https://github.com/deepset-ai/haystack.git@main
76-
hatch run test:all
76+
hatch run test:cov-retry
7777
7878
- name: Send event to Datadog for nightly failures
7979
if: failure() && github.event_name == 'schedule'

.github/workflows/nvidia.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ jobs:
7474
run: |
7575
hatch env prune
7676
hatch -e test env run -- uv pip install git+https://github.com/deepset-ai/haystack.git@main
77-
hatch run test:all
77+
hatch run test:cov-retry
7878
7979
- name: Send event to Datadog for nightly failures
8080
if: failure() && github.event_name == 'schedule'

.github/workflows/openrouter.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ jobs:
7272
run: |
7373
hatch env prune
7474
hatch -e test env run -- uv pip install git+https://github.com/deepset-ai/haystack.git@main
75-
hatch run test:all
75+
hatch run test:cov-retry
7676
7777
- name: Send event to Datadog for nightly failures
7878
if: failure() && github.event_name == 'schedule'

.github/workflows/stackit.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ jobs:
7272
run: |
7373
hatch env prune
7474
hatch -e test env run -- uv pip install git+https://github.com/deepset-ai/haystack.git@main
75-
hatch run test:all
75+
hatch run test:cov-retry
7676
7777
- name: Send event to Datadog for nightly failures
7878
if: failure() && github.event_name == 'schedule'

.github/workflows/togetherai.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ jobs:
7272
run: |
7373
hatch env prune
7474
hatch -e test env run -- uv pip install git+https://github.com/deepset-ai/haystack.git@main
75-
hatch run test:all
75+
hatch run test:cov-retry
7676
7777
- name: Send event to Datadog for nightly failures
7878
if: failure() && github.event_name == 'schedule'

integrations/llama_stack/pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ dependencies = [
6060
[tool.hatch.envs.test.scripts]
6161
unit = 'pytest -m "not integration" {args:tests}'
6262
integration = 'pytest -m "integration" {args:tests}'
63-
all = 'pytest --reruns 3 --reruns-delay 30 -x {args:tests}'
63+
all = 'pytest {args:tests}'
6464
cov-retry = 'pytest --cov=haystack_integrations --reruns 3 --reruns-delay 30 -x {args:tests}'
6565

6666
types = "mypy -p haystack_integrations.components.generators.llama_stack {args}"

integrations/meta_llama/pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ dependencies = [
6363
[tool.hatch.envs.test.scripts]
6464
unit = 'pytest -m "not integration" {args:tests}'
6565
integration = 'pytest -m "integration" {args:tests}'
66-
all = 'pytest --reruns 3 --reruns-delay 30 -x {args:tests}'
66+
all = 'pytest {args:tests}'
6767
cov-retry = 'pytest --cov="haystack_integrations" --reruns 3 --reruns-delay 30 -x {args:tests}'
6868

6969
types = "mypy -p haystack_integrations.components.generators.meta_llama {args}"

integrations/togetherai/pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ dependencies = [
6565
[tool.hatch.envs.test.scripts]
6666
unit = 'pytest -m "not integration" {args:tests}'
6767
integration = 'pytest -m "integration" {args:tests}'
68-
all = 'pytest --reruns 3 --reruns-delay 30 -x {args:tests}'
68+
all = 'pytest {args:tests}'
6969
cov-retry = 'pytest --cov=haystack_integrations --reruns 3 --reruns-delay 30 -x {args:tests}'
7070

7171
types = """mypy -p haystack_integrations.components.generators.togetherai {args}"""

0 commit comments

Comments
 (0)