Skip to content

refactor(cli): callers use the HTTP entry point, old factories go - #3836

Merged
dan-petty merged 3 commits into
mainfrom
refactor/3758-http-callers-rest-and-delete
Nov 6, 2026
Merged

dan-petty merged 3 commits into
mainfrom
refactor/3758-http-callers-rest-and-delete

Conversation

@dan-petty

Copy link
Copy Markdown
Owner

Ten callers build their HTTP client with http_client or async_http_client of devops_cli.http.entry. The old factories new_http_client and new_async_http_client and the shared-client getters are gone. devops_cli.http.client keeps the egress transports, the timeouts and the transport hook of a test. The tests use the web and dns fixtures, and the old stub_web fixture and its helper files are deleted. Each caller keeps its timeouts, headers and egress level, and the egress level table now also pins the PyPI metadata caller. Specs and docs name the entry point.

Closes #3758

Change: openspec/changes/archive/2026-11-06-3758-callers-use-the-http-entry-point/

@dan-petty dan-petty added type/refactor Type refactor: a new structure, same behavior scope/cli Core CLI framework, Typer subcommands, options, and tables labels Nov 6, 2026
@dan-petty

Copy link
Copy Markdown
Owner Author

Results of the full uv run devops ci on the rebased branch: 19,859 tests passed, 2 failed, 1 teardown error.

The failures come from the host, not from this change. Both fail the same way on a clean checkout of origin/main:

  • tests/commands/test_devcontainer_install_tools_dry_run.py::test_mark_only_commands_under_global_dry_run
  • tests/ai/test_tool_executor_contract.py::test_the_direct_executor_refuses_a_network_profile_before_it_starts_the_tool[direct] (the popeye binary in the shared home volume; also its teardown error)

Review fixes in this branch: the specs configured-service-urls and k8s-logs, the httpx2 knowledge-base page, ARCHITECTURE.md, README.md, SECURITY.md, docs/KNOWN_ISSUES.md and docs/ROUTINE_TASKS.md now name the entry point. Test comments no longer say "factory". The plan of change 2610 uses http_client and the web fixture. The egress level table pins the PyPI metadata caller of the survey.

The last ten callers build their HTTP client with http_client and
async_http_client of devops_cli.http.entry. new_http_client,
new_async_http_client, get_shared_client and get_shared_async_client are
gone. The tests use the web and dns fixtures. The stub_web and public_dns
fixtures, tests/web_fakes.py, scripted_resolver and the route_* helpers
are gone. The dial fake moves to tests/support/fakes/dial.py.

Closes #3758
Fix the specs, docs, test comments and the plan of change 2610 that still
named the deleted client factories. Pin the PyPI metadata caller of the
survey in the egress level table.
@dan-petty
dan-petty force-pushed the refactor/3758-http-callers-rest-and-delete branch from 3f6d829 to be4eed1 Compare November 6, 2026 19:22
@dan-petty
dan-petty marked this pull request as ready for review November 6, 2026 19:27
@dan-petty
dan-petty merged commit 0f66175 into main Nov 6, 2026
24 checks passed
@dan-petty
dan-petty deleted the refactor/3758-http-callers-rest-and-delete branch November 6, 2026 19:29
dan-petty pushed a commit that referenced this pull request Nov 6, 2026
🤖 I have created a release *beep* *boop*
---


##
[0.72.1](v0.72.0...v0.72.1)
(2026-11-06)


### Code Refactoring

* **cli:** callers use the HTTP entry point, old factories go
([#3836](#3836))
([0f66175](0f66175))

---
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>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

scope/cli Core CLI framework, Typer subcommands, options, and tables type/refactor Type refactor: a new structure, same behavior

Projects

None yet

Development

Successfully merging this pull request may close these issues.

refactor(cli): callers use the HTTP entry point, old factories go

1 participant