PrefectHQ
prefect
Blog
Docs
Changelog
Blog
Docs
Changelog
Overview
Branches
Benchmarks
Runs
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
Update AGENTS.md files for 11576ed (#21104) Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
main
35 minutes ago
Fix noisy 'I/O operation on closed file' during test teardown (#21096)
main
44 minutes ago
Fix stale data shown when switching flow runs tabs (#21092) Co-authored-by: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com> Co-authored-by: alex.s <alex.s@prefect.io> Co-authored-by: alex.s <ajstreed1@gmail.com>
main
2 hours ago
Update AGENTS.md files for ffc0bfa (#21102) Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
main
4 hours ago
Add CSRF middleware for UI V2 API client (#21101) Co-authored-by: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com> Co-authored-by: alex.s@prefect.io <ajstreed1@gmail.com>
main
4 hours ago
Merge branch 'PrefectHQ:main' into fix/otel-flow-run-subprocess
shnhdan:fix/otel-flow-run-subprocess
12 hours ago
Make telemetry metrics module private (#21095) Co-authored-by: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com> Co-authored-by: alex.s <alex.s@prefect.io> Co-authored-by: alex.s <ajstreed1@gmail.com>
main
19 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%
Fix: propagate opentelemetry-instrument and ddtrace-run to flow run subprocesses
last run
12 hours ago
#21041
CodSpeed Performance Gauge
0%
Add server default result storage config surface
last run
2 days ago
#21075
CodSpeed Performance Gauge
0%
© 2026 CodSpeed Technology
Home
Terms
Privacy
Docs