Skip to content

[2/6] Generate Python SDK types from pinned runtime#21893

Open
aibrahim-oai wants to merge 2 commits intocodex/python-sdk-pin-runtime-typesfrom
codex/python-sdk-generate-types-from-pinned-runtime
Open

[2/6] Generate Python SDK types from pinned runtime#21893
aibrahim-oai wants to merge 2 commits intocodex/python-sdk-pin-runtime-typesfrom
codex/python-sdk-generate-types-from-pinned-runtime

Conversation

@aibrahim-oai
Copy link
Copy Markdown
Collaborator

@aibrahim-oai aibrahim-oai commented May 9, 2026

Stack

This PR is the second change in the stack, on top of #21891.

Why

Once the SDK has a declared runtime dependency, generated Python API/types should come from that pinned runtime instead of the app-server schema in the current checkout. That keeps checked-in generated artifacts aligned with the runtime package users install.

What changed

  • Make scripts/update_sdk_artifacts.py generate-types invoke the pinned runtime package to emit schema.
  • Regenerate v2_all.py, notification_registry.py, and generated api.py from that schema.
  • Update tests so generated artifacts are checked for freshness against the pinned runtime.

Verification

  • CI is running on this PR stack.
  • Local structural checks before submitting: git diff --check and workflow YAML parse.

@aibrahim-oai
Copy link
Copy Markdown
Collaborator Author

@aibrahim-oai aibrahim-oai changed the title Generate Python SDK types from pinned runtime [2/3] Generate Python SDK types from pinned runtime May 9, 2026
aibrahim-oai and others added 2 commits May 9, 2026 10:23
Make the SDK artifact generator fetch schema from the pinned runtime package, regenerate the checked-in Python types from that schema, and assert generated artifacts stay up to date.

Co-authored-by: Codex <noreply@openai.com>
Co-authored-by: Codex <noreply@openai.com>
@aibrahim-oai aibrahim-oai force-pushed the codex/python-sdk-pin-runtime-types branch from edf326e to c24694b Compare May 9, 2026 07:24
@aibrahim-oai aibrahim-oai force-pushed the codex/python-sdk-generate-types-from-pinned-runtime branch from 7902536 to 242ca6d Compare May 9, 2026 07:24
@aibrahim-oai aibrahim-oai changed the title [2/3] Generate Python SDK types from pinned runtime [2/4] Generate Python SDK types from pinned runtime May 9, 2026
@aibrahim-oai aibrahim-oai changed the title [2/4] Generate Python SDK types from pinned runtime [2/5] Generate Python SDK types from pinned runtime May 9, 2026
@aibrahim-oai aibrahim-oai changed the title [2/5] Generate Python SDK types from pinned runtime [2/6] Generate Python SDK types from pinned runtime May 9, 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.

1 participant