Repository navigation
Description
Problem
Slice 1 of #3758 (part 3 of #1314). Eight modules of src/devops_cli/ai/ build their HTTP client with new_http_client or new_async_http_client: gateway.py, pool_load.py, library/docs_ingester.py, providers/__init__.py, models/ollama.py, rag/embeddings.py, spend/pricing.py. About 50 test files in tests/ai/ and tests/review/ still use stub_web, public_dns, scripted_resolver, record_connects, patches of httpx2.Client methods, MockTransport clients built by hand, or patches of private client methods of LLMClient.
Expected
Every caller in src/devops_cli/ai/ builds its client through devops_cli.http.entry (http_client, async_http_client). Every test of these callers uses the web and dns fixtures and patches no httpx2 class and no devops_cli name for HTTP.
Acceptance criteria
- No file in
src/devops_cli/ai/namesnew_http_client,new_async_http_client,get_shared_clientorget_shared_async_client. - No test in
tests/ai/ortests/review/usesstub_web,public_dns,scripted_resolver,record_connectsortests/web_fakes.py. - No test in these directories patches an
httpx2class orsocket.getaddrinfo, and none builds aMockTransportclient by hand. - Each caller keeps its timeouts, redirect rules and egress level.
-
uv run devops ciis green.
Existing tool considered
Not applicable. The slice uses the seams of parts 1 and 2 (the dns and web fixtures, devops_cli.http.entry) and adds no tool.
Activity
dan-petty commentedon Nov 6, 2026
Intake placed this item to the backlog: intake puts every new item in the backlog. A person plans the milestones.
refactorprefix of the title gives the type.(ai)scope of the title gives the scope.It is a planned refactor slice with no user-facing defect or security gap.It removes duplicate client-construction paths and unifies test doubles for the AI module.Eight source modules and about fifty test files change, but the swap pattern is fixed.Both move AI-module callers to the HTTP entry point, but #3758 covers all 36 modules while the candidate covers only the 8 modules in src/devops_cli/ai/.chore(main): release 0.70.0 (#3799)
devops-cli-service commentedon Nov 6, 2026
Released in v0.70.0: https://github.com/dan-petty/devops-cli/releases/tag/v0.70.0
devops-cli-service commentedon Nov 6, 2026
Live since 2026-11-06 16:15 UTC