ccproxy-api icon indicating copy to clipboard operation
ccproxy-api copied to clipboard

feat: complete AnyIO migration

Open CaddyGlow opened this issue 1 year ago • 0 comments

Summary

  • migrate the runtime facade and task manager to AnyIO primitives, removing direct asyncio dependencies across core services
  • refactor hook execution, streaming responses, DuckDB access-log ingestion, and permissions flows to operate on the shared async runtime
  • tighten regression coverage with unit/integration stress suites that exercise high-concurrency hooks, task cancellation cycles, DuckDB ingest/pagination, streaming responses, and permissions SSE handling
  • update documentation and helper utilities so downstream services consistently consume the new runtime helpers

Testing

  • uv run ruff check
  • uv run mypy
  • uv run pytest
  • uv run pytest tests/api/middleware/test_streaming_stress.py -m slow
  • uv run pytest tests/plugins/permissions/integration/test_permissions_sse_stress.py -m slow
  • uv run pytest tests/plugins/analytics/integration/test_duckdb_access_log_stress.py tests/plugins/analytics/integration/test_analytics_pagination_stress.py -m slow
  • uv run pytest tests/unit/core/test_async_task_manager.py -m slow
  • uv run pytest tests/unit/core/test_background_hook_thread_manager.py -m slow

CaddyGlow avatar Oct 05 '25 23:10 CaddyGlow