Repository navigation
Description
Problem
Part 3 of #1314, which is too large for one pull request (comment of 2026-11-05).
After parts 1 and 2, 36 modules outside http/ still name the four factory functions, at about 180 sites. 21 test files name them. 93 test files use stub_web, public_dns or scripted_resolver. The deletion of a name cannot be partial, because a part that keeps a name needs a shim.
Expected
Every caller builds its client through the one entry point of part 2, and every test uses the web and dns fixtures. The old names and fakes are gone.
Acceptance criteria
- The callers move by package, one pull request for each group, in 4 to 6 pull requests: ai; k8s and argo; security and telemetry; commands and the rest. Each pull request moves its callers to the entry point, and its tests from
stub_web,public_dnsandscripted_resolverto thewebanddnsfixtures. Each caller keeps its timeouts, limits, redirect rules and SSRF validation. - The last pull request deletes
new_http_client,new_async_http_client,get_shared_client,get_shared_async_client,stub_web,public_dns,ScriptedResolverandtests/web_fakes.py. No source file names the deleted functions. - The tests of the moved packages patch no devops_cli name, no httpx2 class and not
socket.getaddrinfo. - The inline httpx2 builders and the direct
socket.getaddrinfocallers of each package move to the entry point and the resolver seam, with the package. - Each pull request runs
uv run devops cigreen.
Existing tool considered
Alternatives check of #1314 (2026-10-29): not-applicable. This part uses the seams of parts 1 and 2 and adds no tool.
Related
Parent: #1314. Blocked by part 2 (the entry point and the web fixture) and by part 1 (the dns fixture). The test migration items #1317, #1321, #1331, #1333, #1334 and #1335 own the tests of their packages; this part moves their stub_web and DNS users onto the new fixtures. Refine splits this issue into one issue for each package group when part 2 merges.
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.(cli)scope of the title gives the scope.A large planned refactoring with no user-facing defect, blocked on parts 1 and 2.Removes 180 call sites and 93 test files of duplication but adds no new user capability.Spans 4 to 6 pull requests across 36 modules and 114 test files.Both belong to the HTTP seam refactor; #1314 is the umbrella that contains this part, while the candidate is one sub-task that moves callers and deletes the old factories.refactor(security): security and telemetry callers use the HTTP entry…
refactor(cli): callers use the HTTP entry point, old factories go
devops-cli-service commentedon Nov 6, 2026
Released in v0.72.1: https://github.com/dan-petty/devops-cli/releases/tag/v0.72.1
devops-cli-service commentedon Nov 6, 2026
Live since 2026-11-06 19:47 UTC