Avatar for the PrefectHQ user
PrefectHQ
prefect
BlogDocsChangelog

Performance History

Latest Results

Fix flaky hosted API tests: unify SQLite timeout, increase httpx timeout, fix missing await Three root causes addressed for flaky test failures on main: 1. SQLite busy_timeout was 30s in test mode vs 60s in production. Under heavy parallel test execution (pytest-xdist), the hosted API server subprocess and test process compete for the same SQLite file, causing lock contention that can exceed 30s. Unified to 60s for all modes. 2. hosted_api_client used the default httpx timeout of 5s. When the hosted server is slow to respond under CI load (e.g., waiting on SQLite locks), 5s is insufficient. Increased to 30s. 3. test_delete_task_run_deletes_logs had a missing 'await' on asyncio.sleep(1), creating a tight polling loop that hammered the DB instead of yielding between retries. Failing tests: - test_get_runs_in_queue_concurrency_limit_and_limit[1] (httpx.ReadError) - test_delete_task_run_deletes_logs (httpx.ConnectTimeout) Co-authored-by: bot_apk <apk@cognition.ai>
devin/1773342657-fix-flaky-hosted-api-tests
16 minutes ago
Merge branch 'PrefectHQ:main' into fix/otel-flow-run-subprocess
shnhdan:fix/otel-flow-run-subprocess
12 hours ago

Active Branches

Fix flaky hosted API tests: unify SQLite timeout, increase httpx timeout, fix missing await
last run
16 minutes ago
#21105
CodSpeed Performance Gauge
0%
#21075
CodSpeed Performance Gauge
0%
© 2026 CodSpeed Technology
Home Terms Privacy Docs