Skip to content

Commit a281ff3

Browse files
authored
ci: Add pytest reruns to nightly tests for flaky tests (#2486)
* Add pytest reruns to nightly tests for flaky tests * Add reruns to llama stack as well
1 parent 545c752 commit a281ff3

3 files changed

Lines changed: 3 additions & 3 deletions

File tree

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 {args:tests}'
63+
all = 'pytest --reruns 3 --reruns-delay 30 -x {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 {args:tests}'
66+
all = 'pytest --reruns 3 --reruns-delay 30 -x {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 {args:tests}'
68+
all = 'pytest --reruns 3 --reruns-delay 30 -x {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)