Skip to content

Share buffered AWC transport for OIDC and telemetry - #1536

Merged
lovasoa merged 3 commits into
mainfrom
codex/cleanup-http-bridge
Oct 7, 2026
Merged

lovasoa merged 3 commits into
mainfrom
codex/cleanup-http-bridge

Conversation

@lovasoa

@lovasoa lovasoa commented Oct 7, 2026 •

Copy link
Copy Markdown
Collaborator

OIDC discovery/token requests and OTLP exports each implement the same buffered AWC send and response-body lifecycle. Share that transport in the HTTP client module while keeping protocol-specific request conversion, response-header validation, logging, and error context in the adapters.

The helper validates response headers before reading the body and keeps send, header, and body failures distinct. OIDC retains its body timeout and text-only request headers; telemetry retains raw request-header support, existing timeout behavior, and its dedicated worker thread.

One parameterized suite exercises both adapters through a shared raw-response fixture: methods, request and response bodies, status codes, duplicate response headers, malformed headers, connection failures, invalid chunked payloads, and body timeouts. Raw responses cover malformed wire data that the existing echo/provider servers normalize. The existing hanging-body OIDC integration test verifies its configured timeout.

Consolidating the original adapter test modules retains all 16 request scenarios and their assertions while reducing the PR from 354 additions / 39 deletions to 279 additions / 41 deletions.

Validation: cargo fmt --all -- --check, cargo clippy --all-targets --all-features -- -D warnings, and cargo test.

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Oct 7, 2026 •

Copy link
Copy Markdown

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-10-07T11:09:41.305856Z 78706e8 New commits
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@lovasoa
lovasoa enabled auto-merge October 7, 2026 11:10
@lovasoa
lovasoa added this pull request to the merge queue Oct 7, 2026
Merged via the queue into main with commit 1dd2397 Oct 7, 2026
52 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant