AIMVT-303: Implement HTTP client in ParallelHTTPClient class - #368
Open
speriaswamy-amd wants to merge 6 commits into
Conversation
atnair-amd
self-requested a review
August 28, 2026 21:29
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
ParallelHTTPClient(cvs/core/agent/http_client.py), an async httpx-based client providing API parity withParallelSSHClient:run_command,health,shutdown, lazy shared connection reuse, andrebuild/destroyfor host-set changes.HostOutputdataclass and exception mapping (HTTPConnectionError/HTTPProtocolError) so unreachable vs. failed-request hosts can be distinguished the same wayprune_unreachable_hostsdistinguishes pssh exceptions.stop_on_errors,host_args(per-host command substitution), and inline/file output modes, collecting file-mode output back intolist[str]for a uniform response shape.Stacked on #365 (AIMVT-302) — this PR's diff is limited to
http_client.pyand its tests; base branch will be retargeted tomainonce #365 merges.Jira: AIMVT-303
Test plan
cvs/core/agent/unittests/test_http_client.pycoversrun_command(inline/file/exit-code-only modes,host_args,stop_on_errors),health,shutdown, and exception classification, all against mocked HTTP transport