Skip to content

chore(api): DO NOT MERGE - show custom code in SDK reviews - #3649

Closed
apcha-oai wants to merge 1 commit into
mainfrom
castiron/promotions/pr-34
Closed

chore(api): DO NOT MERGE - show custom code in SDK reviews#3649
apcha-oai wants to merge 1 commit into
mainfrom
castiron/promotions/pr-34

Conversation

@apcha-oai

@apcha-oai apcha-oai commented Aug 18, 2026

Copy link
Copy Markdown
Contributor

DO NOT MERGE. Draft workflow demonstration; no release or merge is intended.

Make handwritten changes in generated SDK files easier to review. One PR comment shows newly customized files, existing customizations that changed, and commands to inspect the current custom-code diff. It updates in place as the PR changes.

The reporting files come from shared Castiron templates and use normal three-way merges, so repository-specific customizations remain possible. The workflow checks the generated baseline's content hash. Public reporting uses only public snapshot history and needs no private-repository credentials.

This draft is limited to reporting and generation metadata; it does not change the SDK API or runtime. Workflow changes require the repository's normal workflow-write permissions.

@github-actions

github-actions Bot commented Aug 18, 2026

Copy link
Copy Markdown
Contributor

Castiron custom code

✅ No new custom-code files detected.

49 mixed files remain; 0 existing customizations changed.

Compared 44c1560ad2f731fe63743522. Generated baselines verified.

Legacy baseline: content hash computed from the pinned checkpoint; not yet recorded in that revision’s stats.

49 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/beta.py
  • src/openai/resources/beta/responses/responses.py
  • src/openai/resources/beta/threads/messages.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/completions.py
  • src/openai/resources/embeddings.py
  • src/openai/resources/files.py
  • src/openai/resources/fine_tuning/jobs/checkpoints.py
  • src/openai/resources/fine_tuning/jobs/jobs.py
  • src/openai/resources/models.py
  • src/openai/resources/realtime/realtime.py
  • src/openai/resources/responses/responses.py
  • src/openai/resources/uploads/uploads.py
  • src/openai/resources/vector_stores/file_batches.py
  • src/openai/resources/vector_stores/files.py
  • src/openai/resources/videos.py
  • src/openai/resources/webhooks/init.py
  • src/openai/resources/webhooks/webhooks.py
  • src/openai/types/init.py
  • src/openai/types/beta/threads/message_content.py
  • src/openai/types/chat/init.py
  • src/openai/types/chat/chat_completion_message_tool_call.py
  • src/openai/types/fine_tuning/fine_tuning_job_integration.py
  • src/openai/types/responses/init.py
  • src/openai/types/responses/response.py
  • src/openai/types/responses/response_function_web_search.py
  • src/openai/types/responses/response_function_web_search_param.py
  • src/openai/types/responses/tool.py
  • src/openai/types/responses/tool_param.py
  • src/openai/types/webhooks/init.py
  • src/openai/types/websocket_connection_options.py
  • tests/api_resources/audio/test_speech.py
  • tests/api_resources/chat/test_completions.py

9 more in the full report.

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

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

git fetch --no-tags origin 44c1560ad2f707d68e3f28d66aae602f7626e187 31fe6374352211c856f2f49cafb60f0ef846f2e2
python3 scripts/castiron/custom_code_report.py report \
  --base 44c1560ad2f707d68e3f28d66aae602f7626e187 \
  --head 31fe6374352211c856f2f49cafb60f0ef846f2e2 --fetch --require-head-hash --public \
  --out /tmp/castiron-custom-code-31fe63743522
cat /tmp/castiron-custom-code-31fe63743522/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 struct
import subprocess
import tempfile
import unittest
@apcha-oai apcha-oai changed the title chore(api): DO NOT MERGE - Castiron-owned custom-code reporting chore(api): DO NOT MERGE - show custom code in SDK reviews Aug 18, 2026
@apcha-oai
apcha-oai force-pushed the castiron/promotions/pr-34 branch from 8e3a784 to c99bd28 Compare August 18, 2026 18:54
Castiron-Internal-PR: openai/openai-python-internal#34
Castiron-Source-SHA: 9fbcafee1844a5bf2a661ec8e5c5c1dfecb9c003
Castiron-Public-Base-SHA: 44c1560
@apcha-oai
apcha-oai force-pushed the castiron/promotions/pr-34 branch from c99bd28 to 31fe637 Compare August 18, 2026 19:06
@apcha-oai apcha-oai closed this Aug 18, 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