Skip to content

[DO NOT MERGE] Preview custom-code reporting with a new mixed file - #3648

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

[DO NOT MERGE] Preview custom-code reporting with a new mixed file#3648
apcha-oai wants to merge 1 commit into
mainfrom
castiron/promotions/pr-32

Conversation

@apcha-oai

Copy link
Copy Markdown
Contributor

Why

Exercise the report for a PR that adds a new customization to a previously untouched generated file.

DO NOT MERGE. The edit in src/openai/types/model.py is an intentional comment-only example with no runtime behavior change. Expected report: 49 → 50 mixed files, with one newly customized file.

This draft contains the manually vendored reporter, hash-consistency tests, and an experimental workflow restricted to protected maintainer-owned branches. The report updates one comment and includes commands to inspect the exact custom-code patch. This is an experiment, not a release or a request to merge.

@github-actions

github-actions Bot commented Aug 18, 2026

Copy link
Copy Markdown
Contributor

Castiron custom code

Mixed files: 49 → 50

1 newly customized · 0 customizations removed · 0 existing customizations changed · 0 generated baselines changed

Compared 44c1560ad2f7661d42f3984d. Generated baselines verified.

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

File Result Current custom patch
src/openai/types/model.py Newly customized +1 / −0
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 32164416320 --repo openai/openai-python \
  --name castiron-custom-code-32164416320-1 --dir /tmp/castiron-custom-code-32164416320-1
git apply --stat /tmp/castiron-custom-code-32164416320-1/custom-code.patch
cat /tmp/castiron-custom-code-32164416320-1/custom-code.patch

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

git fetch --no-tags origin 44c1560ad2f707d68e3f28d66aae602f7626e187 661d42f3984dce357ed4868923b376a74a4f86c7
python3 scripts/castiron/custom_code_report.py report \
  --base 44c1560ad2f707d68e3f28d66aae602f7626e187 \
  --head 661d42f3984dce357ed4868923b376a74a4f86c7 --fetch --require-head-hash --public \
  --out /tmp/castiron-custom-code-661d42f3984d
cat /tmp/castiron-custom-code-661d42f3984d/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

@apcha-oai apcha-oai added the do-not-merge Intentional draft experiment; do not merge label Aug 18, 2026
Comment thread scripts/castiron/test_custom_code_report.py Dismissed
Castiron-Internal-PR: openai/openai-python-internal#32
Castiron-Source-SHA: 9092fbb4836628641cc5504827339e853cad241f
Castiron-Public-Base-SHA: 44c1560
@apcha-oai
apcha-oai force-pushed the castiron/promotions/pr-32 branch from ca0f0a9 to 661d42f Compare August 18, 2026 17:12
@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

do-not-merge Intentional draft experiment; do not merge

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant