Skip to content

fix(ecosystem): preserve retry delays in parallel workers - #2673

Merged
HAYDEN-OAI merged 1 commit into
mainfrom
codex/ecosystem-worker-retry-delay
Sep 7, 2026
Merged

fix(ecosystem): preserve retry delays in parallel workers#2673
HAYDEN-OAI merged 1 commit into
mainfrom
codex/ecosystem-worker-retry-delay

Conversation

@HAYDEN-OAI

Copy link
Copy Markdown
Contributor

Summary

Forward --retryDelay to parallel ecosystem-test workers alongside --retry. The parent already parses this option, but workers previously reverted to the 1,000 ms default for ordinary project retries.

This is one production-line addition. It preserves explicit 0, custom delays, and the existing default without changing retry counts, option parsing, credentials, cleanup, or SDK code.

Regression coverage

Strengthen the existing offline local-package fixture so each project fails its first typecheck and then succeeds. It runs the actual CLI, actual pnpm worker processes, and real local npm installations, and still verifies the selected package version.

  • Before the fix: --jobs=2 --retryDelay=25 and --parallel --retryDelay=0 both report 1,000 ms project retries. The sequential custom-delay and parallel default-delay controls pass: two failures, two passes.
  • After the fix: all four cases use the expected delay and complete successfully.

Validation

  • Four focused cases pass on Node 22.22.3, 24.19.0, and 26.7.0.
  • Full handwritten suite: 7,885 tests across 208 files pass on Node 24.19.0.
  • Canonical formatting and lint checks, TypeScript 6, and the typechecked CLI --help entrypoint pass.
  • An independent before/after CLI probe confirms the actual worker arguments and exactly two project attempts in five scenarios, including custom, zero, default, sequential, and explicit-worker-count controls.
  • Independent adversarial review checked zero/default preservation, both worker-selection modes, argument-array safety, retry-count behavior, and fixture scope; no further changes were needed.

The first full run encountered an unrelated local SSH-signing-agent failure in a temporary Git fixture. The focused fixture and full suite passed with commit signing disabled only for synthetic test commits in that command's environment; repository signing configuration is unchanged.

Exact Node 22.0.0 cannot load this existing CLI's pinned ESM yargs dependency on either main or this branch. Repository tooling targets Node 24; this change does not alter the consumer SDK's Node 22.0.0 floor.

@HAYDEN-OAI
HAYDEN-OAI requested a review from a team as a code owner September 7, 2026 01:19
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Sep 7, 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-07T01:20:50.739360Z 2a4b801 PR opened
🔒 Security Review Completed 2026-09-07T01:22:36.374401Z 2a4b801 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 7, 2026

Copy link
Copy Markdown
Contributor

OkTest Summary

237/237 SDK tests passed in 10.324s for Node SDK PR #2673.

Test results — 42 files
Test Result Time
tests/chat-completions-complex-body.test.ts ✅ Passed 170ms
tests/chat-completions-create.test.ts ✅ Passed 256ms
tests/chat-completions-stream.test.ts ✅ Passed 144ms
tests/files-content-binary.test.ts ✅ Passed 155ms
tests/files-create-multipart.test.ts ✅ Passed 172ms
tests/files-list-pagination.test.ts ✅ Passed 142ms
tests/initialize-config.test.ts ✅ Passed 145ms
tests/instance-isolation.test.ts ✅ Passed 107ms
tests/models-list.test.ts ✅ Passed 139ms
tests/responses-background-lifecycle.test.ts ✅ Passed 261ms
tests/responses-body-method-errors.test.ts ✅ Passed 299ms
tests/responses-cancel-timeout.test.ts ✅ Passed 221ms
tests/responses-cancel.test.ts ✅ Passed 198ms
tests/responses-compact-retries.test.ts ✅ Passed 256ms
tests/responses-compact.test.ts ✅ Passed 278ms
tests/responses-create-advanced-stream.test.ts ✅ Passed 100ms
tests/responses-create-advanced.test.ts ✅ Passed 209ms
tests/responses-create-disconnect.test.ts ✅ Passed 1.174s
tests/responses-create-errors.test.ts ✅ Passed 191ms
tests/responses-create-malformed-api-responses.test.ts ✅ Passed 127ms
tests/responses-create-retries.test.ts ✅ Passed 227ms
tests/responses-create-stream-failures.test.ts ✅ Passed 248ms
tests/responses-create-stream-timeout.test.ts ✅ Passed 2.162s
tests/responses-create-stream-wire.test.ts ✅ Passed 2.44s
tests/responses-create-stream.test.ts ✅ Passed 70ms
tests/responses-create-terminal-states.test.ts ✅ Passed 233ms
tests/responses-create-timeout.test.ts ✅ Passed 241ms
tests/responses-create.test.ts ✅ Passed 213ms
tests/responses-delete.test.ts ✅ Passed 204ms
tests/responses-input-items-errors.test.ts ✅ Passed 173ms
tests/responses-input-items-list.test.ts ✅ Passed 182ms
tests/responses-input-items-options.test.ts ✅ Passed 125ms
tests/responses-input-tokens-count-timeout.test.ts ✅ Passed 255ms
tests/responses-input-tokens-count.test.ts ✅ Passed 227ms
tests/responses-malformed-inputs.test.ts ✅ Passed 2.134s
tests/responses-not-found-errors.test.ts ✅ Passed 221ms
tests/responses-parse.test.ts ✅ Passed 246ms
tests/responses-retrieve-retries.test.ts ✅ Passed 248ms
tests/responses-retrieve.test.ts ✅ Passed 292ms
tests/responses-stored-method-errors.test.ts ✅ Passed 521ms
tests/retry-behavior.test.ts ✅ Passed 3.082s
tests/sdk-error-shape.test.ts ✅ Passed 251ms

View OkTest run #34072646727

SDK merge (50150e02f755) · head (2a4b8011c02b) · base (fdb038e21509) · OkTest (2b1bdfd25e98)

@github-actions

github-actions Bot commented Sep 7, 2026

Copy link
Copy Markdown
Contributor

Castiron custom code

✅ No new custom-code files detected.

32 mixed files remain; 0 existing customizations changed.

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

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

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

@markstuart-oai markstuart-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 full diff against fdb038e and traced parsed retryDelay through both worker-selection modes into the project retry loop. The direct argument-array addition preserves explicit zero, custom/default delays, retry budgets, and existing credential/cleanup behavior without adding an abstraction. The existing fixture remains the right home: CLI 1238→1239 lines, tests 600→618; no new 1k-line crossing or substantive structural regression.

Independently reproduced two failures/two passing controls on the base using the strengthened fixture, then all four passing on head. All 71 ecosystem CLI tests pass on Node 24.20.0; the four focused cases also pass with Node 22.22.3 and 26.7.0. A separate offline real-worker/local-install probe passed seven scenarios, checking package versions, install counts, and exactly 1/2/3 project attempts for the relevant retry budgets. Canonical lint/format checks, TypeScript 6 no-emit checking, and typechecked CLI help pass.

Validation limits: these are synthetic project commands (including the typecheck script), not full ecosystem compiler suites or wall-clock timing assertions; the complete SDK suite was not rerun. Exact Node 22.0.0 fails CLI bootstrap with the same existing yargs ERR_REQUIRE_ESM on base and head, independently of the consumer SDK support floor. Reused matching installed dependencies; no live API calls, source edits, or signing/auth changes. No substantive findings.

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

Reviewed exact head 2a4b801. Forwarding retryDelay into parallel worker arguments is the missing link in the existing option flow and preserves explicit zero, custom values, the 1000 ms default, retry counts, and sequential behavior. Focused real-worker coverage and the full CI matrix are green, with no unresolved threads. No in-scope findings.

@HAYDEN-OAI
HAYDEN-OAI added this pull request to the merge queue Sep 7, 2026
Merged via the queue into main with commit 6164745 Sep 7, 2026
38 checks passed
@HAYDEN-OAI
HAYDEN-OAI deleted the codex/ecosystem-worker-retry-delay branch September 7, 2026 18:08
@openai-sdks openai-sdks Bot mentioned this pull request Sep 7, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants