Avatar for the PrefectHQ user
PrefectHQ
prefect
BlogDocsChangelog

Branches performance

Pull requests

Fix flaky hosted API tests: unify SQLite timeout, increase httpx timeout, fix missing await#21105
last run
3 hours ago
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>
3 hours ago
8b8a90e
devin/1773342657-fix-flaky-hosted-api-tests
CodSpeed Performance Gauge
0%
Fix noisy 'I/O operation on closed file' during test teardown#21096
last run
22 hours ago
Prefix SafeStreamHandler with underscore to mark as private Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
22 hours ago
c7af34f
fix/safe-stream-handler-teardown-16626
CodSpeed Performance Gauge
0%
Make telemetry metrics module private Rename src/prefect/telemetry/metrics.py to src/prefect/telemetry/_metrics.py and update all imports and mock paths accordingly. Co-authored-by: alex.s <alex.s@prefect.io> Co-Authored-By: alex.s <ajstreed1@gmail.com>
22 hours ago
b2a70e4
devin/1773271805-make-metrics-module-private
CodSpeed Performance Gauge
0%
Revert unrelated generated UI API client diff
1 day ago
0705a38
codex/21083-pgbouncer-automation-reconcile
CodSpeed Performance Gauge
0%
© 2026 CodSpeed Technology
Home Terms Privacy Docs