diff --git a/integrations/amazon_bedrock/pyproject.toml b/integrations/amazon_bedrock/pyproject.toml index 0669d8001..774eb5592 100644 --- a/integrations/amazon_bedrock/pyproject.toml +++ b/integrations/amazon_bedrock/pyproject.toml @@ -50,7 +50,7 @@ dependencies = [ ] [tool.hatch.envs.default.scripts] test = "pytest {args:tests}" -test-cov = "coverage run -m pytest {args:tests}" +test-cov = "coverage run -m pytest --reruns 3 --reruns-delay 30 -x {args:tests}" cov-report = ["- coverage combine", "coverage report"] cov = ["test-cov", "cov-report"] docs = ["pydoc-markdown pydoc/config.yml"] diff --git a/integrations/amazon_sagemaker/pyproject.toml b/integrations/amazon_sagemaker/pyproject.toml index 4fd246ed0..c3049d79f 100644 --- a/integrations/amazon_sagemaker/pyproject.toml +++ b/integrations/amazon_sagemaker/pyproject.toml @@ -53,7 +53,7 @@ dependencies = [ ] [tool.hatch.envs.default.scripts] test = "pytest {args:tests}" -test-cov = "coverage run -m pytest {args:tests}" +test-cov = "coverage run -m pytest --reruns 3 --reruns-delay 30 -x {args:tests}" cov-report = ["- coverage combine", "coverage report"] cov = ["test-cov", "cov-report"] diff --git a/integrations/anthropic/pyproject.toml b/integrations/anthropic/pyproject.toml index 0a7b4ee1f..e2023daf0 100644 --- a/integrations/anthropic/pyproject.toml +++ b/integrations/anthropic/pyproject.toml @@ -50,7 +50,7 @@ dependencies = [ ] [tool.hatch.envs.default.scripts] test = "pytest {args:tests}" -test-cov = "coverage run -m pytest {args:tests}" +test-cov = "coverage run -m pytest --reruns 3 --reruns-delay 30 -x {args:tests}" cov-report = ["- coverage combine", "coverage report"] cov = ["test-cov", "cov-report"] docs = ["pydoc-markdown pydoc/config.yml"] diff --git a/integrations/astra/pyproject.toml b/integrations/astra/pyproject.toml index e3f949567..ae573c3c2 100644 --- a/integrations/astra/pyproject.toml +++ b/integrations/astra/pyproject.toml @@ -49,7 +49,7 @@ dependencies = [ ] [tool.hatch.envs.default.scripts] test = "pytest {args:tests}" -test-cov = "coverage run -m pytest {args:tests}" +test-cov = "coverage run -m pytest --reruns 3 --reruns-delay 30 -x {args:tests}" cov-report = ["- coverage combine", "coverage report"] cov = ["test-cov", "cov-report"] docs = ["pydoc-markdown pydoc/config.yml"] diff --git a/integrations/chroma/pyproject.toml b/integrations/chroma/pyproject.toml index 2b639f8b2..8698637b0 100644 --- a/integrations/chroma/pyproject.toml +++ b/integrations/chroma/pyproject.toml @@ -50,7 +50,7 @@ dependencies = [ ] [tool.hatch.envs.default.scripts] test = "pytest {args:tests}" -test-cov = "coverage run -m pytest {args:tests}" +test-cov = "coverage run -m pytest --reruns 3 --reruns-delay 30 -x {args:tests}" cov-report = ["- coverage combine", "coverage report"] cov = ["test-cov", "cov-report"] docs = ["pydoc-markdown pydoc/config.yml"] diff --git a/integrations/cohere/pyproject.toml b/integrations/cohere/pyproject.toml index aa9c25769..dc5e4c5e1 100644 --- a/integrations/cohere/pyproject.toml +++ b/integrations/cohere/pyproject.toml @@ -44,7 +44,7 @@ git_describe_command = 'git describe --tags --match="integrations/cohere-v[0-9]* dependencies = ["coverage[toml]>=6.5", "pytest", "pytest-rerunfailures", "haystack-pydoc-tools"] [tool.hatch.envs.default.scripts] test = "pytest {args:tests}" -test-cov = "coverage run -m pytest {args:tests}" +test-cov = "coverage run -m pytest --reruns 3 --reruns-delay 30 -x {args:tests}" cov-report = ["- coverage combine", "coverage report"] cov = ["test-cov", "cov-report"] docs = ["pydoc-markdown pydoc/config.yml"] diff --git a/integrations/deepeval/pyproject.toml b/integrations/deepeval/pyproject.toml index ae7792cb0..9c9a1e2e7 100644 --- a/integrations/deepeval/pyproject.toml +++ b/integrations/deepeval/pyproject.toml @@ -44,7 +44,7 @@ git_describe_command = 'git describe --tags --match="integrations/deepeval-v[0-9 dependencies = ["coverage[toml]>=6.5", "pytest", "pytest-rerunfailures", "haystack-pydoc-tools"] [tool.hatch.envs.default.scripts] test = "pytest {args:tests}" -test-cov = "coverage run -m pytest {args:tests}" +test-cov = "coverage run -m pytest --reruns 3 --reruns-delay 30 -x {args:tests}" cov-report = ["- coverage combine", "coverage report"] cov = ["test-cov", "cov-report"] docs = ["pydoc-markdown pydoc/config.yml"] diff --git a/integrations/elasticsearch/pyproject.toml b/integrations/elasticsearch/pyproject.toml index 8e3f745a3..b4e916655 100644 --- a/integrations/elasticsearch/pyproject.toml +++ b/integrations/elasticsearch/pyproject.toml @@ -50,7 +50,7 @@ dependencies = [ ] [tool.hatch.envs.default.scripts] test = "pytest {args:tests}" -test-cov = "coverage run -m pytest {args:tests}" +test-cov = "coverage run -m pytest --reruns 3 --reruns-delay 30 -x {args:tests}" cov-report = ["- coverage combine", "coverage report"] cov = ["test-cov", "cov-report"] docs = ["pydoc-markdown pydoc/config.yml"] diff --git a/integrations/fastembed/pyproject.toml b/integrations/fastembed/pyproject.toml index 3de3ae91a..907068d81 100644 --- a/integrations/fastembed/pyproject.toml +++ b/integrations/fastembed/pyproject.toml @@ -51,7 +51,7 @@ dependencies = [ ] [tool.hatch.envs.default.scripts] test = "pytest {args:tests}" -test-cov = "coverage run -m pytest {args:tests}" +test-cov = "coverage run -m pytest --reruns 3 --reruns-delay 30 -x {args:tests}" cov-report = ["- coverage combine", "coverage report"] cov = ["test-cov", "cov-report"] docs = ["pydoc-markdown pydoc/config.yml"] diff --git a/integrations/google_ai/pyproject.toml b/integrations/google_ai/pyproject.toml index a28b7df78..71cf15cb2 100644 --- a/integrations/google_ai/pyproject.toml +++ b/integrations/google_ai/pyproject.toml @@ -49,7 +49,7 @@ dependencies = [ ] [tool.hatch.envs.default.scripts] test = "pytest {args:tests}" -test-cov = "coverage run -m pytest {args:tests}" +test-cov = "coverage run -m pytest --reruns 3 --reruns-delay 30 -x {args:tests}" cov-report = ["- coverage combine", "coverage report"] cov = ["test-cov", "cov-report"] docs = ["pydoc-markdown pydoc/config.yml"] diff --git a/integrations/google_vertex/pyproject.toml b/integrations/google_vertex/pyproject.toml index 84ef2db5e..27046cf6f 100644 --- a/integrations/google_vertex/pyproject.toml +++ b/integrations/google_vertex/pyproject.toml @@ -49,7 +49,7 @@ dependencies = [ ] [tool.hatch.envs.default.scripts] test = "pytest {args:tests}" -test-cov = "coverage run -m pytest {args:tests}" +test-cov = "coverage run -m pytest --reruns 3 --reruns-delay 30 -x {args:tests}" cov-report = ["- coverage combine", "coverage report"] cov = ["test-cov", "cov-report"] docs = ["pydoc-markdown pydoc/config.yml"] diff --git a/integrations/instructor_embedders/pyproject.toml b/integrations/instructor_embedders/pyproject.toml index a2327ba4e..48592d285 100644 --- a/integrations/instructor_embedders/pyproject.toml +++ b/integrations/instructor_embedders/pyproject.toml @@ -72,7 +72,7 @@ dependencies = [ ] [tool.hatch.envs.default.scripts] test = "pytest {args:tests}" -test-cov = "coverage run -m pytest {args:tests}" +test-cov = "coverage run -m pytest --reruns 3 --reruns-delay 30 -x {args:tests}" cov-report = ["- coverage combine", "coverage report"] cov = ["test-cov", "cov-report"] docs = ["pydoc-markdown pydoc/config.yml"] diff --git a/integrations/jina/pyproject.toml b/integrations/jina/pyproject.toml index ace2b3192..3d1359ff8 100644 --- a/integrations/jina/pyproject.toml +++ b/integrations/jina/pyproject.toml @@ -46,7 +46,7 @@ git_describe_command = 'git describe --tags --match="integrations/jina-v[0-9]*"' dependencies = ["coverage[toml]>=6.5", "pytest", "pytest-rerunfailures", "haystack-pydoc-tools"] [tool.hatch.envs.default.scripts] test = "pytest {args:tests}" -test-cov = "coverage run -m pytest {args:tests}" +test-cov = "coverage run -m pytest --reruns 3 --reruns-delay 30 -x {args:tests}" cov-report = ["- coverage combine", "coverage report"] cov = ["test-cov", "cov-report"] docs = ["pydoc-markdown pydoc/config.yml"] diff --git a/integrations/langfuse/pyproject.toml b/integrations/langfuse/pyproject.toml index d696eb05b..dd737001c 100644 --- a/integrations/langfuse/pyproject.toml +++ b/integrations/langfuse/pyproject.toml @@ -50,7 +50,7 @@ dependencies = [ ] [tool.hatch.envs.default.scripts] test = "pytest {args:tests}" -test-cov = "coverage run -m pytest {args:tests}" +test-cov = "coverage run -m pytest --reruns 3 --reruns-delay 30 -x {args:tests}" cov-report = ["- coverage combine", "coverage report"] cov = ["test-cov", "cov-report"] docs = ["pydoc-markdown pydoc/config.yml"] diff --git a/integrations/llama_cpp/pyproject.toml b/integrations/llama_cpp/pyproject.toml index ee134f789..7394d9e10 100644 --- a/integrations/llama_cpp/pyproject.toml +++ b/integrations/llama_cpp/pyproject.toml @@ -54,7 +54,7 @@ dependencies = [ ] [tool.hatch.envs.default.scripts] test = "pytest {args:tests}" -test-cov = "coverage run -m pytest {args:tests}" +test-cov = "coverage run -m pytest --reruns 3 --reruns-delay 30 -x {args:tests}" cov-report = ["- coverage combine", "coverage report"] cov = ["test-cov", "cov-report"] docs = ["pydoc-markdown pydoc/config.yml"] diff --git a/integrations/mistral/pyproject.toml b/integrations/mistral/pyproject.toml index f8156c66d..662663dba 100644 --- a/integrations/mistral/pyproject.toml +++ b/integrations/mistral/pyproject.toml @@ -44,7 +44,7 @@ git_describe_command = 'git describe --tags --match="integrations/mistral-v[0-9] dependencies = ["coverage[toml]>=6.5", "pytest", "pytest-rerunfailures", "haystack-pydoc-tools"] [tool.hatch.envs.default.scripts] test = "pytest {args:tests}" -test-cov = "coverage run -m pytest {args:tests}" +test-cov = "coverage run -m pytest --reruns 3 --reruns-delay 30 -x {args:tests}" cov-report = ["- coverage combine", "coverage report"] cov = ["test-cov", "cov-report"] docs = ["pydoc-markdown pydoc/config.yml"] diff --git a/integrations/mongodb_atlas/pyproject.toml b/integrations/mongodb_atlas/pyproject.toml index 5729296e4..bf8439292 100644 --- a/integrations/mongodb_atlas/pyproject.toml +++ b/integrations/mongodb_atlas/pyproject.toml @@ -51,7 +51,7 @@ dependencies = [ ] [tool.hatch.envs.default.scripts] test = "pytest {args:tests}" -test-cov = "coverage run -m pytest {args:tests}" +test-cov = "coverage run -m pytest --reruns 3 --reruns-delay 30 -x {args:tests}" cov-report = ["- coverage combine", "coverage report"] cov = ["test-cov", "cov-report"] docs = ["pydoc-markdown pydoc/config.yml"] diff --git a/integrations/nvidia/pyproject.toml b/integrations/nvidia/pyproject.toml index bff66d9b3..34241d0d8 100644 --- a/integrations/nvidia/pyproject.toml +++ b/integrations/nvidia/pyproject.toml @@ -45,7 +45,7 @@ git_describe_command = 'git describe --tags --match="integrations/nvidia-v[0-9]* dependencies = ["coverage[toml]>=6.5", "pytest", "pytest-rerunfailures", "haystack-pydoc-tools"] [tool.hatch.envs.default.scripts] test = "pytest {args:tests}" -test-cov = "coverage run -m pytest {args:tests}" +test-cov = "coverage run -m pytest --reruns 3 --reruns-delay 30 -x {args:tests}" cov-report = ["- coverage combine", "coverage report"] cov = ["test-cov", "cov-report"] docs = ["pydoc-markdown pydoc/config.yml"] diff --git a/integrations/ollama/pyproject.toml b/integrations/ollama/pyproject.toml index 382f0cdaa..b6a86c51a 100644 --- a/integrations/ollama/pyproject.toml +++ b/integrations/ollama/pyproject.toml @@ -54,7 +54,7 @@ dependencies = [ ] [tool.hatch.envs.default.scripts] test = "pytest {args:tests}" -test-cov = "coverage run -m pytest {args:tests}" +test-cov = "coverage run -m pytest --reruns 3 --reruns-delay 30 -x {args:tests}" cov-report = ["- coverage combine", "coverage report"] cov = ["test-cov", "cov-report"] docs = ["pydoc-markdown pydoc/config.yml"] diff --git a/integrations/opensearch/pyproject.toml b/integrations/opensearch/pyproject.toml index 3f7d5595d..493b12f99 100644 --- a/integrations/opensearch/pyproject.toml +++ b/integrations/opensearch/pyproject.toml @@ -51,7 +51,7 @@ dependencies = [ ] [tool.hatch.envs.default.scripts] test = "pytest {args:tests}" -test-cov = "coverage run -m pytest {args:tests}" +test-cov = "coverage run -m pytest --reruns 3 --reruns-delay 30 -x {args:tests}" cov-report = ["- coverage combine", "coverage report"] cov = ["test-cov", "cov-report"] diff --git a/integrations/optimum/pyproject.toml b/integrations/optimum/pyproject.toml index 74c529532..df2c83581 100644 --- a/integrations/optimum/pyproject.toml +++ b/integrations/optimum/pyproject.toml @@ -64,7 +64,7 @@ dependencies = [ ] [tool.hatch.envs.default.scripts] test = "pytest {args:tests}" -test-cov = "coverage run -m pytest {args:tests}" +test-cov = "coverage run -m pytest --reruns 3 --reruns-delay 30 -x {args:tests}" cov-report = ["- coverage combine", "coverage report"] cov = ["test-cov", "cov-report"] docs = ["pydoc-markdown pydoc/config.yml"] diff --git a/integrations/pgvector/pyproject.toml b/integrations/pgvector/pyproject.toml index a5b995634..3bc0f3ebd 100644 --- a/integrations/pgvector/pyproject.toml +++ b/integrations/pgvector/pyproject.toml @@ -51,7 +51,7 @@ dependencies = [ ] [tool.hatch.envs.default.scripts] test = "pytest {args:tests}" -test-cov = "coverage run -m pytest {args:tests}" +test-cov = "coverage run -m pytest --reruns 3 --reruns-delay 30 -x {args:tests}" cov-report = ["- coverage combine", "coverage report"] cov = ["test-cov", "cov-report"] docs = ["pydoc-markdown pydoc/config.yml"] diff --git a/integrations/pinecone/pyproject.toml b/integrations/pinecone/pyproject.toml index 180d3dedd..6912946d1 100644 --- a/integrations/pinecone/pyproject.toml +++ b/integrations/pinecone/pyproject.toml @@ -55,7 +55,7 @@ dependencies = [ # Pinecone tests are slow (require HTTP requests), so we run them in parallel # with pytest-xdist (https://pytest-xdist.readthedocs.io/en/stable/distribution.html) test = "pytest -n auto --maxprocesses=2 -x {args:tests}" -test-cov = "coverage run -m pytest -n auto --maxprocesses=2 -x {args:tests}" +test-cov = "coverage run -m pytest -n auto --maxprocesses=2 --reruns 3 --reruns-delay 30 -x {args:tests}" cov-report = ["- coverage combine", "coverage report"] cov = ["test-cov", "cov-report"] docs = ["pydoc-markdown pydoc/config.yml"] diff --git a/integrations/qdrant/pyproject.toml b/integrations/qdrant/pyproject.toml index 10e149239..6eb25b141 100644 --- a/integrations/qdrant/pyproject.toml +++ b/integrations/qdrant/pyproject.toml @@ -47,7 +47,7 @@ git_describe_command = 'git describe --tags --match="integrations/qdrant-v[0-9]* dependencies = ["coverage[toml]>=6.5", "pytest", "pytest-rerunfailures", "haystack-pydoc-tools"] [tool.hatch.envs.default.scripts] test = "pytest {args:tests}" -test-cov = "coverage run -m pytest {args:tests}" +test-cov = "coverage run -m pytest --reruns 3 --reruns-delay 30 -x {args:tests}" cov-report = ["- coverage combine", "coverage report"] cov = ["test-cov", "cov-report"] docs = ["pydoc-markdown pydoc/config.yml"] diff --git a/integrations/ragas/pyproject.toml b/integrations/ragas/pyproject.toml index 003aea32f..e7022f495 100644 --- a/integrations/ragas/pyproject.toml +++ b/integrations/ragas/pyproject.toml @@ -44,7 +44,7 @@ git_describe_command = 'git describe --tags --match="integrations/ragas-v[0-9]*" dependencies = ["coverage[toml]>=6.5", "pytest", "pytest-rerunfailures", "haystack-pydoc-tools", "pytest-asyncio"] [tool.hatch.envs.default.scripts] test = "pytest {args:tests}" -test-cov = "coverage run -m pytest {args:tests}" +test-cov = "coverage run -m pytest --reruns 3 --reruns-delay 30 -x {args:tests}" cov-report = ["- coverage combine", "coverage report"] cov = ["test-cov", "cov-report"] docs = ["pydoc-markdown pydoc/config.yml"] diff --git a/integrations/unstructured/pyproject.toml b/integrations/unstructured/pyproject.toml index c93f6f3aa..5b2882e99 100644 --- a/integrations/unstructured/pyproject.toml +++ b/integrations/unstructured/pyproject.toml @@ -49,7 +49,7 @@ dependencies = [ ] [tool.hatch.envs.default.scripts] test = "pytest {args:tests}" -test-cov = "coverage run -m pytest {args:tests}" +test-cov = "coverage run -m pytest --reruns 3 --reruns-delay 30 -x {args:tests}" cov-report = ["- coverage combine", "coverage report"] cov = ["test-cov", "cov-report"] docs = ["pydoc-markdown pydoc/config.yml"] diff --git a/integrations/weaviate/pyproject.toml b/integrations/weaviate/pyproject.toml index cdd152d86..bf07ec756 100644 --- a/integrations/weaviate/pyproject.toml +++ b/integrations/weaviate/pyproject.toml @@ -50,7 +50,7 @@ git_describe_command = 'git describe --tags --match="integrations/weaviate-v[0-9 dependencies = ["coverage[toml]>=6.5", "pytest", "pytest-rerunfailures", "ipython"] [tool.hatch.envs.default.scripts] test = "pytest {args:tests}" -test-cov = "coverage run -m pytest {args:tests}" +test-cov = "coverage run -m pytest --reruns 3 --reruns-delay 30 -x {args:tests}" cov-report = ["- coverage combine", "coverage report"] cov = ["test-cov", "cov-report"] docs = ["pydoc-markdown pydoc/config.yml"]