Skip to content

chore(api): preserve file and video polling helpers - #4155

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

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

Conversation

@jbeckwith-oai

Copy link
Copy Markdown
Contributor

Summary

Preserves existing file, vector store, and video polling behavior.

Changes

  • Retain polling helper signatures, timeouts, and request options.
  • Retain synchronous and asynchronous upload and polling behavior.

Transition audit

Five polling files now match the generated checkpoint exactly, reducing mixed files from 32 to 27 and custom patch lines from 6,845 to 6,186. The repository plan records the completed predecessor #4152 and keeps this candidate's measurements separate from delivered results.

The API specification, public signatures/defaults/decorators, dependencies, handwritten runtimes, generation ownership and budget are unchanged. The configuration adds only seven existing polling-helper declarations while retaining all earlier settings.

Validation

  • 303 synchronous, asynchronous and Trio compatibility tests pass.
  • Ruff, Pyright (zero errors), Mypy (2,047 files) and import checks pass.
  • All 112 public facade contracts and 16 runtime exports are retained.
  • Independent review verified delegate behavior, checkpoint hashes, all 27 remaining per-file rows and the five cleared files.

Current hosted checks and SDK CODEOWNER review are required.

Castiron-Internal-PR: openai/openai-python-internal#326
Castiron-Source-SHA: 7ebb4b06ada7147f66a7e980e807b7a06b7a457b
Castiron-Public-Base-SHA: a29dc39
@jbeckwith-oai
jbeckwith-oai requested a review from a team as a code owner October 22, 2026 05:43
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Oct 22, 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-22T05:45:40.223523Z 1872a42 PR opened
🔒 Security Review ✅ Completed 2026-10-22T05:46:17.847033Z 1872a42 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.

@github-actions

Copy link
Copy Markdown
Contributor

Castiron custom code

Evaluated main: a29dc3947aeccecc2e85d8fbad4d7c03b8af13e9.

Trusted main policy: a29dc3947aeccecc2e85d8fbad4d7c03b8af13e9.

✅ No new custom-code files detected.

27 mixed files remain; 0 existing customizations changed; 5 customizations removed; 5 generated baselines changed.

Compared a29dc3947aec → 1872a423844e. Generated baselines verified.

File Result Current custom patch
src/openai/resources/files.py Generated baseline changed None
src/openai/resources/vector_stores/file_batches.py Generated baseline changed None
src/openai/resources/vector_stores/files.py Generated baseline changed None
src/openai/resources/videos.py Generated baseline changed None
tests/api_resources/test_videos.py Generated baseline changed None
27 existing customizations unchanged
  • api.md
  • src/openai/init.py
  • src/openai/_client.py
  • src/openai/resources/audio/transcriptions.py
  • src/openai/resources/audio/translations.py
  • src/openai/resources/beta/agents/sessions/sessions.py
  • src/openai/resources/beta/responses/responses.py
  • src/openai/resources/beta/threads/runs/runs.py
  • src/openai/resources/beta/threads/threads.py
  • src/openai/resources/chat/completions/completions.py
  • src/openai/resources/embeddings.py
  • src/openai/resources/realtime/api.md
  • src/openai/resources/realtime/realtime.py
  • src/openai/resources/realtime/translations/translations.py
  • src/openai/resources/responses/responses.py
  • src/openai/resources/webhooks/init.py
  • src/openai/resources/webhooks/webhooks.py
  • src/openai/types/decision_input_image_param.py
  • src/openai/types/decision_input_text_param.py
  • src/openai/types/fine_tuning/fine_tuning_job_integration.py
  • src/openai/types/realtime/conversation_item_input_audio_transcription_delta_event.py
  • src/openai/types/realtime/realtime_error_event.py
  • src/openai/types/responses/tool.py
  • src/openai/types/responses/tool_param.py
  • src/openai/types/webhooks/init.py
  • src/openai/types/webhooks/live_call_incoming_webhook_event.py
  • src/openai/types/webhooks/unwrap_webhook_event.py

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 39729743233 --repo openai/openai-python \
  --name castiron-custom-code-39729743233-1 --dir /tmp/castiron-custom-code-39729743233-1
git apply --stat /tmp/castiron-custom-code-39729743233-1/custom-code.patch
cat /tmp/castiron-custom-code-39729743233-1/custom-code.patch

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

git fetch --no-tags origin a29dc3947aeccecc2e85d8fbad4d7c03b8af13e9 1872a423844e331f681a5460ba07e1578f461cb2
python3 scripts/castiron/custom_code_report.py report \
  --base a29dc3947aeccecc2e85d8fbad4d7c03b8af13e9 \
  --head 1872a423844e331f681a5460ba07e1578f461cb2 --target-branch main --fetch --require-head-hash --public \
  --out /tmp/castiron-custom-code-1872a423844e
cat /tmp/castiron-custom-code-1872a423844e/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

@jbeckwith-oai
jbeckwith-oai added this pull request to the merge queue Oct 22, 2026
Merged via the queue into main with commit 7db9d88 Oct 22, 2026
33 checks passed
@jbeckwith-oai
jbeckwith-oai deleted the castiron/promotions/pr-326 branch October 22, 2026 05:56
@openai-sdks openai-sdks Bot mentioned this pull request Oct 22, 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