From a70c34058d797eec26711840c2689b5a496d2fca Mon Sep 17 00:00:00 2001 From: Adrian Chang Date: Tue, 25 Jun 2024 16:22:28 -0700 Subject: [PATCH 1/2] Reduce reruns --- pyproject.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pyproject.toml b/pyproject.toml index 82c6d2f71..f7ca33191 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -30,7 +30,7 @@ dev-dependencies = [ members = ["libs/*", "examples"] [tool.pytest.ini_options] -addopts = "-rP -vvv --reruns 2 --reruns-delay 10 --durations=20 -n auto --cov=labelbox --import-mode=importlib" +addopts = "-rP -vvv --reruns 1 --reruns-delay 5 --durations=20 -n 10 --cov=labelbox --import-mode=importlib" markers = """ slow: marks tests as slow (deselect with '-m "not slow"') """ From b447c97f96fb7b80c38c7e3bb700007763a5cedd Mon Sep 17 00:00:00 2001 From: Adrian Chang Date: Tue, 25 Jun 2024 16:27:23 -0700 Subject: [PATCH 2/2] add max processes --- pyproject.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pyproject.toml b/pyproject.toml index f7ca33191..238a6e247 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -30,7 +30,7 @@ dev-dependencies = [ members = ["libs/*", "examples"] [tool.pytest.ini_options] -addopts = "-rP -vvv --reruns 1 --reruns-delay 5 --durations=20 -n 10 --cov=labelbox --import-mode=importlib" +addopts = "-rP -vvv --reruns 1 --reruns-delay 5 --durations=20 -n auto --maxprocesses=10 --cov=labelbox --import-mode=importlib" markers = """ slow: marks tests as slow (deselect with '-m "not slow"') """