Repository navigation
refactor(cli): one HTTP entry point with a shared fake - #3786
Conversation
…ared fake and its contract suite Every httpx2 client comes from http_client or async_http_client in devops_cli.http.entry, pooled when the caller names a key. A client takes its transport from one seam: the transport that install_transport put in place, else the egress transport of its level. install_transport and remove_transport close the pooled clients first. HttpClientBroker, get_broker and DEFAULT_HTTP_BROKER are deleted. Vault, the AI clients, the Kubernetes service reader, the status pages and the memory profiler build their clients through the entry point. create_retry_transport takes wrapped as a required argument. WebFake and the web fixture promote StubWeb. The contract suite in tests/http runs each case over the fake and over the real egress transport against a loopback server.
…tests to the web fixture The transport hook is process-wide state, so the floor resets it. The status page tests use the web fixture, and the route table names the renamed ARCHITECTURE.md section.
Test and check resultsFull Fixed (caused by this change):
Failed for a host reason, and fail the same way on
The The full run took 6m 24s on a host under load average 30 (test row 5m 56s), over the 5-minute budget. The roadmap-step tests and |
🤖 I have created a release *beep* *boop* --- ## [0.69.0](v0.68.0...v0.69.0) (2026-11-06) ### Features * **k8s:** post a GitHub deployment for each Argo CD deploy ([#3783](#3783)) ([5515975](5515975)) ### Bug Fixes * **k8s:** the ebpf profiler skips the node hawk ([#3788](#3788)) ([bd65ef6](bd65ef6)) ### Code Refactoring * **cli:** one HTTP entry point with a shared fake ([#3786](#3786)) ([0feeb8b](0feeb8b)), closes [#3755](#3755) --- This PR was generated with [Release Please](https://github.com/googleapis/release-please). See [documentation](https://github.com/googleapis/release-please#release-please). Co-authored-by: dan-petty-release[bot] <346998822+dan-petty-release[bot]@users.noreply.github.com>
Every httpx2 client now comes from devops_cli.http.entry, pooled when the caller names a key. A client takes its transport from one seam, and a test replaces it with install_transport and the web fixture. This removes HttpClientBroker, the second place that kept clients. WebFake and a contract suite over the fake and the real transport replace the per-test patches of client classes. The older factories stay until the last caller moves (#1314).
Closes #3755
Change:
openspec/changes/archive/2026-11-06-3755-http-entry-point/