Skip to content

test: stabilize Node CI subprocess fixtures - #2601

Merged
markstuart-oai merged 1 commit into
mainfrom
codex/fix-node-ci-test-flakes
Sep 4, 2026
Merged

markstuart-oai merged 1 commit into
mainfrom
codex/fix-node-ci-test-flakes

Conversation

@markstuart-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

Reduce repeated setup work in handwritten tests that intermittently exceed the Node 22 CI deadlines:

  • Run the real pnpm lint → pnpm format → pnpm lint integration in a small temporary project containing the repository's actual aliases, scripts, and configs. Give the fixture its own offline pnpm state and link the installed tools. This avoids whole-repository scans and writes into other tests' temporary fixtures while preserving generated-import assertions and checking handwritten formatting.
  • Select ts-node's existing SWC backend in the eight executable-example subprocess suites. Each child still runs the actual example against SDK source and synthetic local services, but avoids repeatedly compiling the SDK import graph with TypeScript. SWC is already a repository dependency.
  • Disable npm's update notifier in the existing offline ecosystem fixtures. Main already contains their project-local offline configuration; preserve that configuration and its current smoke and credential coverage.

The existing 15-second child deadlines, 30-second test deadline, assertions, and worker modes remain. No production code, dependencies, lockfile, workflow policy, or generated files change. Main's newer LF and audio-input regression tests are preserved.

Validation

  • The equivalent test changes passed the full Node 22/24/26 suites: 7,329 handwritten tests and 556 generated tests per runtime, retaining the existing two generated skips; all 14 ecosystem projects and packaging/runtime-floor checks passed. Previously timing-out Node 22 WebSocket/audio cases completed in approximately two seconds under the same 15-second deadline.
  • Independent review verified the public port preserves newer main-branch coverage and carries the same fixture and subprocess behavior. git diff --check passes.
  • A fresh local frozen installation on the latest public base is blocked because the configured registry omits publication metadata for [email protected], also reported in PR 2589. A fresh metadata cache gives the same missing-version result. The lockfile and dependency policies remain unchanged; this PR's CI will validate the current base.

@markstuart-oai
markstuart-oai requested a review from a team as a code owner September 4, 2026 03:54
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Sep 4, 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-04T03:57:02.930113Z bf463f0 PR opened
🔒 Security Review ✅ Completed 2026-09-04T03:57:07.232639Z bf463f0 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 4, 2026 •

Copy link
Copy Markdown
Contributor

OkTest Summary

✅ 237/237 SDK tests passed in 11.195s for Node SDK PR #2601.

Test results — 42 files
Test Result Time
tests/chat-completions-complex-body.test.ts ✅ Passed 173ms
tests/chat-completions-create.test.ts ✅ Passed 261ms
tests/chat-completions-stream.test.ts ✅ Passed 249ms
tests/files-content-binary.test.ts ✅ Passed 177ms
tests/files-create-multipart.test.ts ✅ Passed 140ms
tests/files-list-pagination.test.ts ✅ Passed 170ms
tests/initialize-config.test.ts ✅ Passed 157ms
tests/instance-isolation.test.ts ✅ Passed 105ms
tests/models-list.test.ts ✅ Passed 131ms
tests/responses-background-lifecycle.test.ts ✅ Passed 246ms
tests/responses-body-method-errors.test.ts ✅ Passed 403ms
tests/responses-cancel-timeout.test.ts ✅ Passed 294ms
tests/responses-cancel.test.ts ✅ Passed 213ms
tests/responses-compact-retries.test.ts ✅ Passed 250ms
tests/responses-compact.test.ts ✅ Passed 227ms
tests/responses-create-advanced-stream.test.ts ✅ Passed 197ms
tests/responses-create-advanced.test.ts ✅ Passed 174ms
tests/responses-create-disconnect.test.ts ✅ Passed 1.112s
tests/responses-create-errors.test.ts ✅ Passed 286ms
tests/responses-create-malformed-api-responses.test.ts ✅ Passed 224ms
tests/responses-create-retries.test.ts ✅ Passed 272ms
tests/responses-create-stream-failures.test.ts ✅ Passed 204ms
tests/responses-create-stream-timeout.test.ts ✅ Passed 2.19s
tests/responses-create-stream-wire.test.ts ✅ Passed 2.709s
tests/responses-create-stream.test.ts ✅ Passed 126ms
tests/responses-create-terminal-states.test.ts ✅ Passed 285ms
tests/responses-create-timeout.test.ts ✅ Passed 264ms
tests/responses-create.test.ts ✅ Passed 202ms
tests/responses-delete.test.ts ✅ Passed 232ms
tests/responses-input-items-errors.test.ts ✅ Passed 196ms
tests/responses-input-items-list.test.ts ✅ Passed 212ms
tests/responses-input-items-options.test.ts ✅ Passed 133ms
tests/responses-input-tokens-count-timeout.test.ts ✅ Passed 306ms
tests/responses-input-tokens-count.test.ts ✅ Passed 257ms
tests/responses-malformed-inputs.test.ts ✅ Passed 2.313s
tests/responses-not-found-errors.test.ts ✅ Passed 274ms
tests/responses-parse.test.ts ✅ Passed 204ms
tests/responses-retrieve-retries.test.ts ✅ Passed 267ms
tests/responses-retrieve.test.ts ✅ Passed 252ms
tests/responses-stored-method-errors.test.ts ✅ Passed 612ms
tests/retry-behavior.test.ts ✅ Passed 3.197s
tests/sdk-error-shape.test.ts ✅ Passed 440ms

View OkTest run #33834912656

SDK merge (eaaba9dd323a) · head (bf463f07f00c) · base (135ac7ef85ce) · OkTest (2b1bdfd25e98)

@github-actions

github-actions Bot commented Sep 4, 2026

Copy link
Copy Markdown
Contributor

Castiron custom code

✅ No new custom-code files detected.

32 mixed files remain; 0 existing customizations changed.

Compared 135ac7ef85ce → bf463f07f00c. 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 33834931150 --repo openai/openai-node \
  --name castiron-custom-code-33834931150-1 --dir /tmp/castiron-custom-code-33834931150-1
git apply --stat /tmp/castiron-custom-code-33834931150-1/custom-code.patch
cat /tmp/castiron-custom-code-33834931150-1/custom-code.patch

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

git fetch --no-tags origin 135ac7ef85cebeadf7ba600b59b42f937af44c3d bf463f07f00c1b4497df5301f5bb9754d93f2877
python3 scripts/castiron/custom_code_report.py report \
  --base 135ac7ef85cebeadf7ba600b59b42f937af44c3d \
  --head bf463f07f00c1b4497df5301f5bb9754d93f2877 --fetch --require-head-hash --public \
  --out /tmp/castiron-custom-code-bf463f07f00c
cat /tmp/castiron-custom-code-bf463f07f00c/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

@HAYDEN-OAI HAYDEN-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.

Reviewed the complete 10-file test-only diff. The isolated lint/format fixture still exercises the real package entrypoints and generated-import behavior without scanning neighboring fixtures, while the SWC substitutions preserve the executable-example coverage using the repository's existing backend. I found no substantive issues.

@markstuart-oai
markstuart-oai added this pull request to the merge queue Sep 4, 2026
Merged via the queue into main with commit 3e92f44 Sep 4, 2026
38 checks passed
@markstuart-oai
markstuart-oai deleted the codex/fix-node-ci-test-flakes branch September 4, 2026 04:12
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