Skip to content

chore: update generated-code verification and preserve SDK helpers - #4186

Merged
jbeckwith-oai merged 1 commit into
mainfrom
castiron/promotions/pr-354
Oct 26, 2026
Merged

jbeckwith-oai merged 1 commit into
mainfrom
castiron/promotions/pr-354

Conversation

@jbeckwith-oai

@jbeckwith-oai jbeckwith-oai commented Oct 26, 2026 •

Copy link
Copy Markdown
Contributor

Summary

Updates generated-code verification and records the incremental transition to ordinary compiler templates while preserving existing Chat, streaming, and chunked-upload interfaces.

Most of the diff is generated ownership-reporting tooling, its workflows, and regression tests, including moving existing tests into separate modules. The transition document distinguishes the current zero mixed-file baseline from the remaining compiler cleanup.

The only SDK source change is nested-query filtering in the private WebSocket fallback in both clients. Current resource adapters and their inherited query helper are unchanged. Public signatures, types, dependencies, and runtime helper files are unchanged.

Validation

  • 841 Python renderer tests passed.
  • 292 generated reporting tests passed, with the compiler contract enabled.
  • Legacy, Chat-only, and combined compiler configurations produced identical output within each of two input sets.
  • Strict generated-code verification passed: zero mixed files and zero custom patch lines.

Hosted checks and required reviews must pass on this public PR before merging.

Castiron-Internal-PR: openai/openai-python-internal#354
Castiron-Source-SHA: 8a7d93e1f9b41bf88d48280f7917b2850f9b1f14
Castiron-Public-Base-SHA: 06dbb5d
@jbeckwith-oai
jbeckwith-oai requested a review from a team as a code owner October 26, 2026 23:34
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Oct 26, 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-26T23:37:34.313928Z 9f03955 PR opened
🔒 Security Review ✅ Completed 2026-10-26T23:37:53.002312Z 9f03955 PR opened
ℹ️ 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.

@jbeckwith-oai jbeckwith-oai changed the title chore(api): preserve Chat and chunked-upload helper interfaces chore: update generated-code verification and preserve SDK helpers Oct 26, 2026
@github-actions

github-actions Bot commented Oct 26, 2026 •

Copy link
Copy Markdown
Contributor

Castiron custom code

Evaluated main: 06dbb5d019d7b6870b5898bf5df579ca60b61d28.

Trusted main policy: 06dbb5d019d7b6870b5898bf5df579ca60b61d28.

✅ No new custom-code files detected.

0 mixed files remain; 0 existing customizations changed.

Compared 06dbb5d019d7 → 9f03955d858f. Generated baselines verified.

A changed generated baseline means this report cannot reliably identify which handwritten lines changed.

Inspect the custom-code diff

Download the exact patch produced by this run (requires repository access):

gh run download 40420935477 --repo openai/openai-python \
  --name castiron-custom-code-40420935477-1 --dir /tmp/castiron-custom-code-40420935477-1
git apply --stat /tmp/castiron-custom-code-40420935477-1/custom-code.patch
cat /tmp/castiron-custom-code-40420935477-1/custom-code.patch

Or reproduce it from an SDK checkout containing the vendored reporter:

git fetch --no-tags origin 06dbb5d019d7b6870b5898bf5df579ca60b61d28 9f03955d858fed3f056c1bbf297b27dc5ee575a7
python3 scripts/castiron/custom_code_report.py report \
  --base 06dbb5d019d7b6870b5898bf5df579ca60b61d28 \
  --head 9f03955d858fed3f056c1bbf297b27dc5ee575a7 --target-branch main --fetch --require-head-hash --public \
  --out /tmp/castiron-custom-code-9f03955d858f
cat /tmp/castiron-custom-code-9f03955d858f/custom-code.patch

This is the current full custom patch for mixed files, not an attribution of only the handwritten lines changed by this PR.

Full report and patch

import json
import subprocess
import sys
import unittest
@jbeckwith-oai
jbeckwith-oai added this pull request to the merge queue Oct 26, 2026
Merged via the queue into main with commit 9412200 Oct 26, 2026
42 checks passed
@jbeckwith-oai
jbeckwith-oai deleted the castiron/promotions/pr-354 branch October 26, 2026 23:45
@openai-sdks openai-sdks Bot mentioned this pull request Oct 26, 2026
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.

2 participants