From 1457ad739e2368c10206758ca3ea2c23661846f2 Mon Sep 17 00:00:00 2001 From: anakin87 Date: Thu, 1 Feb 2024 08:34:59 +0100 Subject: [PATCH 1/2] pinecone - decrease concurrency --- integrations/pinecone/pyproject.toml | 4 ++-- integrations/pinecone/tests/conftest.py | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/integrations/pinecone/pyproject.toml b/integrations/pinecone/pyproject.toml index 2d73cdf58..c95ee0aac 100644 --- a/integrations/pinecone/pyproject.toml +++ b/integrations/pinecone/pyproject.toml @@ -54,8 +54,8 @@ dependencies = [ [tool.hatch.envs.default.scripts] # 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=3 {args:tests}" -test-cov = "coverage run -m pytest -n auto --maxprocesses=3 {args:tests}" +test = "pytest -n auto --maxprocesses=2 {args:tests}" +test-cov = "coverage run -m pytest -n auto --maxprocesses=2 {args:tests}" cov-report = [ "- coverage combine", "coverage report", diff --git a/integrations/pinecone/tests/conftest.py b/integrations/pinecone/tests/conftest.py index 79d2608f2..24cfcd12b 100644 --- a/integrations/pinecone/tests/conftest.py +++ b/integrations/pinecone/tests/conftest.py @@ -6,7 +6,7 @@ from haystack_integrations.document_stores.pinecone import PineconeDocumentStore # This is the approximate time it takes for the documents to be available -SLEEP_TIME = 25 +SLEEP_TIME = 22 @pytest.fixture() From b94572f2dcdb0d4582cd510839ef679f28131cc4 Mon Sep 17 00:00:00 2001 From: anakin87 Date: Thu, 1 Feb 2024 08:46:24 +0100 Subject: [PATCH 2/2] decrease more sleep time --- integrations/pinecone/tests/conftest.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/integrations/pinecone/tests/conftest.py b/integrations/pinecone/tests/conftest.py index 24cfcd12b..c7a1342d5 100644 --- a/integrations/pinecone/tests/conftest.py +++ b/integrations/pinecone/tests/conftest.py @@ -6,7 +6,7 @@ from haystack_integrations.document_stores.pinecone import PineconeDocumentStore # This is the approximate time it takes for the documents to be available -SLEEP_TIME = 22 +SLEEP_TIME = 20 @pytest.fixture()