Skip to content

Incremental engine for long horizon agents 🌟 Star if you like it!

test: raise timeout for the heavy selector tests on slow Windows runners (#2826)

Jiangzhoue4bdc783dac0
diff --git a/python/tests/core/test_component_selector_concurrency.py b/python/tests/core/test_component_selector_concurrency.py
index 9d04b8a5..a51af210 100644
--- a/python/tests/core/test_component_selector_concurrency.py
+++ b/python/tests/core/test_component_selector_concurrency.py
@@ -16,6 +16,10 @@ from tests.common.target_states import GlobalDictTarget
ITERS = int(os.environ.get("SELECTOR_STRESS_ITERS", "40"))
+# The stress tests run ITERS rounds of parallel updates: up to ~7 s locally, but
+# over the suite's 30 s default on a slow Windows runner.
+_STRESS_TIMEOUT = pytest.mark.timeout(120)
+
@pytest.fixture(autouse=True)
def _reset() -> None:
@@ -216,6 +220,7 @@ def _check_batch(
)
+@_STRESS_TIMEOUT
@pytest.mark.asyncio
@pytest.mark.parametrize("max_inflight", [None, 1, 2])
async def test_stress_parallel_selective_plain_preview_one_app(
@@ -246,6 +251,7 @@ async def test_stress_parallel_selective_plain_preview_one_app(
assert _stored() == model.expected()
+@_STRESS_TIMEOUT
@pytest.mark.asyncio
async def test_stress_two_apps_one_env(request: pytest.FixtureRequest) -> None:
env = common.create_test_env(__file__, suffix=request.node.name)
diff --git a/python/tests/core/test_component_selector_panel.py b/python/tests/core/test_component_selector_panel.py
index 3afe26e9..ecbfe73e 100644
--- a/python/tests/core/test_component_selector_panel.py
+++ b/python/tests/core/test_component_selector_panel.py
@@ -664,6 +664,10 @@ def _seeds() -> list[int]:
return list(range(int(lo), int(hi or lo) + 1))
+# Each seed runs 20 updates on two apps and compares their target states after
+# each one: ~4 s locally, but over the suite's 30 s default on a slow Windows
+# runner.
@pytest.mark.parametrize("seed", _seeds())
def test_panel_flow(seed: int) -> None:
run_panel(seed, int(os.environ.get("COCO_PANEL_ITERS", "20")), _raw())