The platform for continuously improving AI agents.
Settle the native benchmark backfill; stream journey progress per test (#251)
Freyam Mehta5031c63d1666
diff --git a/Makefile b/Makefileindex ee00c05e..cf0f7e1e 100644--- a/Makefile+++ b/Makefile@@ -68,4 +68,4 @@ test-serial: ## Run all tests serially (for debugging)test-journeys: ## Run end-to-end journeys on the live stack (needs compose Postgres and Redis)TEST_REDIS_URL=redis://localhost:6379/15 OVERMIND_JOURNEY_XDIST=1 \- uv run pytest tests/journeys -n $(WORKERS) --dist loadfile -q $(test_args)+ uv run pytest tests/journeys -n $(WORKERS) --dist loadfile -v -o console_output_style=count --durations=10 $(test_args)diff --git a/tests/journeys/console/test_native_benchmark_monitor.py b/tests/journeys/console/test_native_benchmark_monitor.pyindex f3d80414..08a35fe8 100644--- a/tests/journeys/console/test_native_benchmark_monitor.py+++ b/tests/journeys/console/test_native_benchmark_monitor.py@@ -13,7 +13,7 @@ from overbae.services.datasets import landfrom overbae.services.decision_benchmark_scoring import recordsfrom ..conftest import RUNS-from ..stack import drain+from ..stack import settle@pytest.mark.parametrize("participant_count", [1, 3, 6])@@ -443,8 +443,8 @@ def test_native_benchmark_progress_samples_and_completed_backfill((source / "monitor.sqlite").unlink()(source / "monitor.json").unlink()assert rest.request("GET", endpoint)["state"] == "pending"- drain(worker)- assert rest.request("GET", endpoint)["arms"][0]["scored"] == 28+ rebuilt = settle(worker, lambda: rest.request("GET", endpoint)["arms"])+ assert rebuilt[0]["scored"] == 28assert fake_modal.spawns() == beforefor query in ("?participant=unknown", "?outcome=unknown", "?key=0&search=Passenger"):with pytest.raises(AssertionError, match="400"):