Skip to content

fix(ci): run Cloudflare example regressions before release - #2706

Merged
marcuswood-oai merged 1 commit into
mainfrom
codex/fix-cloudflare-example-ci
Sep 9, 2026
Merged

marcuswood-oai merged 1 commit into
mainfrom
codex/fix-cloudflare-example-ci

Conversation

@marcuswood-oai

Copy link
Copy Markdown
Contributor
  • I understand that this repository is auto-generated and my pull request may not be merged

Changes being requested

Fix the Cloudflare test harness missing node:events, introduced when #2663 added backpressure handling to the raw streaming example. All 21 failures in the 7.12.0 release CI run happen at module loading, before assertions run.

The harness now exposes Node's real once export. The existing pre-merge smoke command also runs the three offline suites, so they no longer depend on the post-merge live job to catch failures. Previously, the offline ecosystem job only typechecked and checked startup; the failing suite ran behind --live on pushes to main.

Verification

  • Reproduced 21 failures on release source; all 44 example tests pass with the pre-fix(examples): respect raw streaming proxy backpressure #2663 source or corrected harness.
  • All 58 offline Cloudflare tests pass on Node 24 with no API credentials; 71 ecosystem CLI tests and repository lint pass.
  • The full offline ecosystem run built the SDK, passed TypeScript and all 58 tests, then hit a local macOS sandbox restriction starting Wrangler. CI will verify that runtime step.

Only the harness and package scripts change. No dependency, lockfile, SDK runtime, or publishing-gate changes. The tagged 7.12.0 commit remains unchanged; publication recovery needs a new release containing this fix.

@marcuswood-oai
marcuswood-oai requested a review from a team as a code owner September 9, 2026 00:29
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Sep 9, 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-09-09T00:30:58.076320Z a7764e9 PR opened
🔒 Security Review ✅ Completed 2026-09-09T00:32:21.810953Z a7764e9 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.

@openai-sdks

openai-sdks Bot commented Sep 9, 2026 •

Copy link
Copy Markdown
Contributor

OkTest Summary

✅ 236/236 SDK tests passed in 10.658s for Node SDK PR #2706.

Test results — 42 files
Test Result Time
tests/chat-completions-complex-body.test.ts ✅ Passed 193ms
tests/chat-completions-create.test.ts ✅ Passed 240ms
tests/chat-completions-stream.test.ts ✅ Passed 154ms
tests/files-content-binary.test.ts ✅ Passed 207ms
tests/files-create-multipart.test.ts ✅ Passed 276ms
tests/files-list-pagination.test.ts ✅ Passed 147ms
tests/initialize-config.test.ts ✅ Passed 125ms
tests/instance-isolation.test.ts ✅ Passed 205ms
tests/models-list.test.ts ✅ Passed 234ms
tests/responses-background-lifecycle.test.ts ✅ Passed 240ms
tests/responses-body-method-errors.test.ts ✅ Passed 363ms
tests/responses-cancel-timeout.test.ts ✅ Passed 209ms
tests/responses-cancel.test.ts ✅ Passed 190ms
tests/responses-compact-retries.test.ts ✅ Passed 277ms
tests/responses-compact.test.ts ✅ Passed 179ms
tests/responses-create-advanced-stream.test.ts ✅ Passed 128ms
tests/responses-create-advanced.test.ts ✅ Passed 197ms
tests/responses-create-disconnect.test.ts ✅ Passed 1.017s
tests/responses-create-errors.test.ts ✅ Passed 196ms
tests/responses-create-malformed-api-responses.test.ts ✅ Passed 210ms
tests/responses-create-retries.test.ts ✅ Passed 299ms
tests/responses-create-stream-failures.test.ts ✅ Passed 147ms
tests/responses-create-stream-timeout.test.ts ✅ Passed 2.165s
tests/responses-create-stream-wire.test.ts ✅ Passed 2.533s
tests/responses-create-stream.test.ts ✅ Passed 72ms
tests/responses-create-terminal-states.test.ts ✅ Passed 229ms
tests/responses-create-timeout.test.ts ✅ Passed 198ms
tests/responses-create.test.ts ✅ Passed 299ms
tests/responses-delete.test.ts ✅ Passed 231ms
tests/responses-input-items-errors.test.ts ✅ Passed 186ms
tests/responses-input-items-list.test.ts ✅ Passed 193ms
tests/responses-input-items-options.test.ts ✅ Passed 171ms
tests/responses-input-tokens-count-timeout.test.ts ✅ Passed 252ms
tests/responses-input-tokens-count.test.ts ✅ Passed 325ms
tests/responses-malformed-inputs.test.ts ✅ Passed 2.152s
tests/responses-not-found-errors.test.ts ✅ Passed 260ms
tests/responses-parse.test.ts ✅ Passed 244ms
tests/responses-retrieve-retries.test.ts ✅ Passed 264ms
tests/responses-retrieve.test.ts ✅ Passed 281ms
tests/responses-stored-method-errors.test.ts ✅ Passed 578ms
tests/retry-behavior.test.ts ✅ Passed 3.027s
tests/sdk-error-shape.test.ts ✅ Passed 270ms

View OkTest run #34295231430

SDK merge (f01e7bcea230) · head (a7764e9edff8) · base (e8b6065e60b4) · OkTest (08ec4299e769)

@github-actions

github-actions Bot commented Sep 9, 2026

Copy link
Copy Markdown
Contributor

Castiron custom code

✅ No new custom-code files detected.

32 mixed files remain; 0 existing customizations changed.

Compared e8b6065e60b4 → a7764e9edff8. Generated baselines verified.

32 existing customizations unchanged
  • api.md
  • scripts/castiron/README.md
  • scripts/castiron/custom_code_report.py
  • scripts/castiron/test_custom_code_report.py
  • src/client.ts
  • src/resources/audio/transcriptions.ts
  • src/resources/audio/translations.ts
  • src/resources/beta/assistants.ts
  • src/resources/beta/beta.ts
  • src/resources/beta/index.ts
  • src/resources/beta/responses/internal-base.ts
  • src/resources/beta/responses/responses.ts
  • src/resources/beta/threads/index.ts
  • src/resources/beta/threads/runs/index.ts
  • src/resources/beta/threads/runs/runs.ts
  • src/resources/beta/threads/threads.ts
  • src/resources/chat/completions/completions.ts
  • src/resources/chat/completions/index.ts
  • src/resources/conversations/index.ts
  • src/resources/embeddings.ts
  • src/resources/files.ts
  • src/resources/fine-tuning/checkpoints/permissions.ts
  • src/resources/images.ts
  • src/resources/responses/internal-base.ts
  • src/resources/responses/responses.ts
  • src/resources/skills/skills.ts
  • src/resources/skills/versions/versions.ts
  • src/resources/vector-stores/file-batches.ts
  • src/resources/vector-stores/files.ts
  • src/resources/webhooks/index.ts
  • src/resources/webhooks/webhooks.ts
  • tests/lib/data-residency.test.ts

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

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

git fetch --no-tags origin e8b6065e60b40d4ee723e344b0ff295aaf9c7156 a7764e9edff8c01f177efeec50a3fc450c4dbd80
python3 scripts/castiron/custom_code_report.py report \
  --base e8b6065e60b40d4ee723e344b0ff295aaf9c7156 \
  --head a7764e9edff8c01f177efeec50a3fc450c4dbd80 --fetch --require-head-hash --public \
  --out /tmp/castiron-custom-code-a7764e9edff8
cat /tmp/castiron-custom-code-a7764e9edff8/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 left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The release-blocking harness fix is narrowly scoped and correct: the VM loader now exposes the real node:events once export used by the raw streaming example, and the three offline suites are included in the pre-merge smoke path. The focused streaming regression suite passes all 44 scenarios, both exact-head ecosystem jobs pass, and the completed static/build checks are green. The sole Node 22 failure is in an untouched X.509 timing/attempt test and is unrelated to this two-file change.

@marcuswood-oai
marcuswood-oai added this pull request to the merge queue Sep 9, 2026
Merged via the queue into main with commit c5cc31c Sep 9, 2026
46 of 48 checks passed
@marcuswood-oai
marcuswood-oai deleted the codex/fix-cloudflare-example-ci branch September 9, 2026 00:50
@openai-sdks openai-sdks Bot mentioned this pull request Sep 9, 2026
winnyschuster pushed a commit to winnyschuster/openai-node that referenced this pull request Sep 11, 2026
Automated Release PR
---

##
[7.12.1](openai/openai-node@v7.12.0...v7.12.1)
(2026-09-09)

Includes the GPT Image 2.5 support from 7.12.0, which was not published
to npm.

### Features

* **api:** add GPT Image 2.5 models and image options
([openai#2705](openai#2705))
([6500a16](openai@6500a16))


### Bug Fixes

* **ci:** run Cloudflare example regressions before release
([openai#2706](openai#2706))
([c5cc31c](openai@c5cc31c))

---
This PR was generated with [Release
Please](https://github.com/googleapis/release-please). See
[documentation](https://github.com/googleapis/release-please#release-please).

---------

Co-authored-by: openai-sdks[bot] <284451331+openai-sdks[bot]@users.noreply.github.com>
Co-authored-by: Marcus Wood <[email protected]>
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.

3 participants