The platform for continuously improving AI agents.
Give the load journeys' wall-clock bounds headroom for shared CI runners (#272)
Freyam Mehta16db2447dcf1
diff --git a/tests/load/landing_burst.py b/tests/load/landing_burst.pyindex d799551c..e3bccd98 100644--- a/tests/load/landing_burst.py+++ b/tests/load/landing_burst.py@@ -86,7 +86,8 @@ def test_thousand_queued_imports_do_not_flood_the_broker_or_delay_another_projec"quiet_page_latency": latency_summary,}Path("/tmp/overmind-landing-burst.json").write_text(json.dumps(report, indent=2))- assert latencies[int(len(latencies) * 0.95)] < 0.5, latency_summary+ # Bounds leave headroom for shared CI runners; starvation shows up as multi-second reads.+ assert latencies[int(len(latencies) * 0.95)] < 1, latency_summaryassert latencies[-1] < 2, latency_summaryassert queued <= 2, reportwith landing_workers(settings, tmp_path):diff --git a/tests/load/query_capacity.py b/tests/load/query_capacity.pyindex 8e58b06c..4938a47e 100644--- a/tests/load/query_capacity.py+++ b/tests/load/query_capacity.py@@ -82,7 +82,9 @@ def test_cpu_heavy_queries_cannot_take_another_projects_sql_capacity(settings, t)elapsed = time.monotonic() - startedassert answer["rows"] == [{"count": 1}]- assert elapsed < 0.5+ # The heavy queries hold their slots until the 10 s timeout, so waiting for one+ # would take seconds; the bound leaves headroom for shared CI runners.+ assert elapsed < 2assert not any(future.done() for future in futures)futures.append(executor.submit(