Repository navigation
test: remove duplicate client tests and fix base URL coverage - #4170
Conversation
Castiron custom codeEvaluated main: Trusted main policy: ✅ No new custom-code files detected. 0 mixed files remain; 0 existing customizations changed. Compared A changed generated baseline means this report cannot reliably identify which handwritten lines changed. Inspect the custom-code diffDownload the exact patch produced by this run (requires repository access): gh run download 40371849316 --repo openai/openai-python \
--name castiron-custom-code-40371849316-1 --dir /tmp/castiron-custom-code-40371849316-1
git apply --stat /tmp/castiron-custom-code-40371849316-1/custom-code.patch
cat /tmp/castiron-custom-code-40371849316-1/custom-code.patchOr reproduce it from an SDK checkout containing the vendored reporter: git fetch --no-tags origin a93b62c2638d41031a661d3ed9c2155860ccb9b3 d92a22cb2272d4aac80a0d6cfa41ac7152e08d74
python3 scripts/castiron/custom_code_report.py report \
--base a93b62c2638d41031a661d3ed9c2155860ccb9b3 \
--head d92a22cb2272d4aac80a0d6cfa41ac7152e08d74 --target-branch main --fetch --require-head-hash --public \
--out /tmp/castiron-custom-code-d92a22cb2272
cat /tmp/castiron-custom-code-d92a22cb2272/custom-code.patchThis is the current full custom patch for mixed files, not an attribution of only the handwritten lines changed by this PR. |
markstuart-oai
left a comment
There was a problem hiding this comment.
Reviewed d92a22cb2272d4aac80a0d6cfa41ac7152e08d74. No blocking findings. The three removed tests duplicate retained synchronous client coverage. The corrected inputs now exercise base URLs without a trailing slash for both synchronous and asynchronous clients, including custom HTTP clients.
Source-only review; I did not run candidate code or tests. Hosted checks: 22 successful and 13 skipped.
Codex Review SummaryThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
Changes being requested
Remove three tests in
TestAsyncOpenAIthat use the synchronousOpenAIfixture and repeat the correspondingTestOpenAIassertions for extra JSON, headers, and query parameters. Correct the standard and custom HTTP client inputs in both no-trailing-slash tests so they actually exercise base URLs without a trailing slash.Additional context & links
292 passed, 2 skipped; Ruff lint and format checks passed.