Skip to content

refactor(ai): ai callers use the HTTP entry point - #3801

Merged
dan-petty merged 7 commits into
mainfrom
refactor/3758-http-callers-ai
Nov 6, 2026
Merged

dan-petty merged 7 commits into
mainfrom
refactor/3758-http-callers-ai

Conversation

@dan-petty

Copy link
Copy Markdown
Owner

The AI client, RAG, spend, review and gateway callers build their HTTP
clients with http_client from devops_cli.http.entry. Their tests use the
web and dns fixtures. They no longer use stub_web, public_dns,
scripted_resolver or patches of httpx2 and socket. Each test file sits
in the mirror directory of its source file. This is one slice of the
HTTP entry point work. The old factories stay until the last slice.

Closes #3791

Change: openspec/changes/archive/2026-11-06-3791-http-callers-ai/

@dan-petty dan-petty added type/refactor Type refactor: a new structure, same behavior scope/ai AI review pipeline, personas, prompts, LLM client, or RAG labels Nov 6, 2026
@dan-petty

Copy link
Copy Markdown
Owner Author

Test and check results for this pull request.

  • Full devops ci run on the branch before the final rebase: 19779 passed, 2 failed, 1 error. The failures are test_mark_only_commands_under_global_dry_run and test_the_direct_executor_refuses_a_network_profile_before_it_starts_the_tool[direct]. Both depend on tools in the shared home volume of this host (the popeye executor binary and the installed-tool list). Neither touches code of this change.
  • After the review fixes and the rebase onto origin/main: all 1044 tests in the test files this change touches pass. The pre-push fast static checks pass.
  • Review fixes: the unclosed plain client in test_ai_client_error_reason.py is now closed, one long docstring is wrapped, and the hand-built transport in test_ai_client_security.py is explained.
  • Known residual, recorded in the OpenSpec design: three batch-timeout tests in test_rag_embeddings.py still patch httpcore2.SyncBackend.connect_tcp, because the web fake sits above the connection pool. They move when the http contract suite gets a loopback fake peer.

@dan-petty
dan-petty marked this pull request as ready for review November 6, 2026 15:34
@dan-petty
dan-petty merged commit 2f2548b into main Nov 6, 2026
24 checks passed
@dan-petty
dan-petty deleted the refactor/3758-http-callers-ai branch November 6, 2026 15:46
dan-petty pushed a commit that referenced this pull request Nov 6, 2026
🤖 I have created a release *beep* *boop*
---


##
[0.70.0](v0.69.1...v0.70.0)
(2026-11-06)


### Features

* **review:** name the repository in a tool run and the SARIF export
([#3798](#3798))
([6d12548](6d12548))


### Bug Fixes

* **k8s:** a log query dials the loki.url setting
([#3802](#3802))
([98686f4](98686f4))
* **k8s:** loki values name the Monolithic deployment mode
([#3800](#3800))
([cf4ac8f](cf4ac8f))


### Code Refactoring

* **ai:** ai callers use the HTTP entry point
([#3801](#3801))
([2f2548b](2f2548b)),
closes [#3791](#3791)

---
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/ai AI review pipeline, personas, prompts, LLM client, or RAG type/refactor Type refactor: a new structure, same behavior

Projects

None yet

Development

Successfully merging this pull request may close these issues.

refactor(ai): ai callers use the HTTP entry point

1 participant