Skip to content

fix(ci): retry transient Deno download failures - #2752

Merged
HAYDEN-OAI merged 4 commits into
mainfrom
codex/fix-main-release-ci-20260916
Sep 16, 2026
Merged

HAYDEN-OAI merged 4 commits into
mainfrom
codex/fix-main-release-ci-20260916

Conversation

@HAYDEN-OAI

@HAYDEN-OAI HAYDEN-OAI commented Sep 16, 2026 •

Copy link
Copy Markdown
Contributor

A transient TLS reset while downloading the pinned Deno runtime failed the build and blocked release publication. Retry failed downloads without aborting slow transfers that are still making progress.

The installer uses a small download helper with three retries, a 15-second connection timeout, a 15-second stall timeout, and a 60-second retry window. The window limits retry eligibility rather than an active transfer's duration. HTTPS-only redirects, SHA-256 verification, temporary-file cleanup, and atomic publication remain intact. Document the required curl version and the download policy.

Add a deterministic local HTTPS suite using real curl and temporary synthetic certificates. It covers TLS reset recovery, replacing truncated output, permanent TLS and HTTP failures, checksum rejection, HTTPS-to-HTTP redirect rejection, stall recovery, and sustained progress beyond a scaled retry window. Every case exercises the installer and checks publication and staging cleanup. Run it in the existing CI runtime matrix and the Steady test entrypoint, retaining the original five-minute build timeout.

Validation:

  • Eight download regressions passed on Node 22.0.0 and 24.19.0 on macOS.
  • Confirmed the suite fails when retries are removed or the old absolute transfer deadline is restored.
  • The full Steady installation, offline launch, integrity, cache/publication, and cleanup suite passed.
  • Pinned lint/format checks, shell syntax, and git diff --check passed.

@github-actions

github-actions Bot commented Sep 16, 2026 •

Copy link
Copy Markdown
Contributor

Castiron custom code

✅ No new custom-code files detected.

45 mixed files remain; 0 existing customizations changed.

Compared eda4d0cd5427 → 522178c5d77e. Generated baselines verified.

45 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/agents/environments/files.ts
  • src/resources/beta/agents/sessions/sessions.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/responses/ws-base.ts
  • src/resources/beta/responses/ws.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/live/forks/ws-base.ts
  • src/resources/live/forks/ws.ts
  • src/resources/live/sideband/ws-base.ts
  • src/resources/live/sideband/ws.ts
  • src/resources/live/ws-base.ts
  • src/resources/live/ws.ts
  • src/resources/responses/internal-base.ts
  • src/resources/responses/responses.ts
  • src/resources/responses/ws-base.ts
  • src/resources/responses/ws.ts
  • src/resources/skills/skills.ts
  • src/resources/skills/versions/versions.ts
  • src/resources/vector-stores/file-batches.ts

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

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

git fetch --no-tags origin eda4d0cd54271ac9fc05a3e44dfe7fd1c16d2d77 522178c5d77e71798f02df7f16ebc87e6a996e01
python3 scripts/castiron/custom_code_report.py report \
  --base eda4d0cd54271ac9fc05a3e44dfe7fd1c16d2d77 \
  --head 522178c5d77e71798f02df7f16ebc87e6a996e01 --fetch --require-head-hash --public \
  --out /tmp/castiron-custom-code-522178c5d77e
cat /tmp/castiron-custom-code-522178c5d77e/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 marked this pull request as ready for review September 16, 2026 16:32
@HAYDEN-OAI
HAYDEN-OAI requested a review from a team as a code owner September 16, 2026 16:32
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Sep 16, 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-16T16:52:36.211211Z 522178c New commits
🔒 Security Review ✅ Completed 2026-09-16T16:53:06.700702Z 522178c New commits
ℹ️ 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 16, 2026 •

Copy link
Copy Markdown
Contributor

OkTest Summary

✅ 236/236 SDK tests passed in 10.392s for Node SDK PR #2752.

Test results — 42 files
Test Result Time
tests/chat-completions-complex-body.test.ts ✅ Passed 197ms
tests/chat-completions-create.test.ts ✅ Passed 229ms
tests/chat-completions-stream.test.ts ✅ Passed 137ms
tests/files-content-binary.test.ts ✅ Passed 237ms
tests/files-create-multipart.test.ts ✅ Passed 245ms
tests/files-list-pagination.test.ts ✅ Passed 181ms
tests/initialize-config.test.ts ✅ Passed 141ms
tests/instance-isolation.test.ts ✅ Passed 187ms
tests/models-list.test.ts ✅ Passed 231ms
tests/responses-background-lifecycle.test.ts ✅ Passed 212ms
tests/responses-body-method-errors.test.ts ✅ Passed 287ms
tests/responses-cancel-timeout.test.ts ✅ Passed 207ms
tests/responses-cancel.test.ts ✅ Passed 183ms
tests/responses-compact-retries.test.ts ✅ Passed 247ms
tests/responses-compact.test.ts ✅ Passed 212ms
tests/responses-create-advanced-stream.test.ts ✅ Passed 103ms
tests/responses-create-advanced.test.ts ✅ Passed 211ms
tests/responses-create-disconnect.test.ts ✅ Passed 1.116s
tests/responses-create-errors.test.ts ✅ Passed 217ms
tests/responses-create-malformed-api-responses.test.ts ✅ Passed 223ms
tests/responses-create-retries.test.ts ✅ Passed 265ms
tests/responses-create-stream-failures.test.ts ✅ Passed 127ms
tests/responses-create-stream-timeout.test.ts ✅ Passed 2.165s
tests/responses-create-stream-wire.test.ts ✅ Passed 2.389s
tests/responses-create-stream.test.ts ✅ Passed 88ms
tests/responses-create-terminal-states.test.ts ✅ Passed 260ms
tests/responses-create-timeout.test.ts ✅ Passed 208ms
tests/responses-create.test.ts ✅ Passed 221ms
tests/responses-delete.test.ts ✅ Passed 256ms
tests/responses-input-items-errors.test.ts ✅ Passed 162ms
tests/responses-input-items-list.test.ts ✅ Passed 166ms
tests/responses-input-items-options.test.ts ✅ Passed 151ms
tests/responses-input-tokens-count-timeout.test.ts ✅ Passed 240ms
tests/responses-input-tokens-count.test.ts ✅ Passed 208ms
tests/responses-malformed-inputs.test.ts ✅ Passed 2.089s
tests/responses-not-found-errors.test.ts ✅ Passed 231ms
tests/responses-parse.test.ts ✅ Passed 176ms
tests/responses-retrieve-retries.test.ts ✅ Passed 285ms
tests/responses-retrieve.test.ts ✅ Passed 227ms
tests/responses-stored-method-errors.test.ts ✅ Passed 553ms
tests/retry-behavior.test.ts ✅ Passed 3.11s
tests/sdk-error-shape.test.ts ✅ Passed 282ms

View OkTest run #35124441656

SDK merge (18b147002a23) · head (522178c5d77e) · base (eda4d0cd5427) · OkTest (c6ef21c7db64)

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 7d59ba9e45

ℹ️ 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".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread scripts/steady/install Resolved
Comment thread scripts/steady/install Resolved
Comment thread scripts/steady/install Resolved

@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 7d59ba9e4591f69cc0126a26ef0eecd19a30d423. The retry placement and retained integrity/cleanup path are sound, but the new absolute download deadline needs adjustment before approval.

This installer also runs during local bootstrap. The pinned Linux x64 archive is 50,430,922 bytes: a healthy 128 KiB/s transfer needs about 385 seconds, so --max-time 300 aborts every attempt and retries discard the progress. Remove the absolute transfer limit or use an inactivity limit so slow, progressing downloads can finish. Keep the connection timeout and retry count, and cover the progressing-download case alongside reset recovery.

Validation on Linux with curl 8.5.0: the exact command recovers from TLS resets and replaces a truncated output file; permanent resets stop after four attempts; HTTPS-to-HTTP redirects remain rejected. A separate local HTTPS comparison, with only the 300-second limit scaled to one second, completes on the base command and fails with code 28 after four attempts on the new command. The curl 7.71.0 minimum and retry semantics were checked against official documentation and tagged source; that older binary and native macOS/Windows were not executed.

The pinned Steady install, offline launch, integrity, cache-lifetime/concurrent-publication, and cleanup checks passed after reusing a local dependency cache with the same frozen lock and import mapping (the initial JSR metadata fetch failed). Frozen dependency installation, lint, shell syntax, and diff checks passed. Exact-head CI 35122536232 also passed.

@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 the exact head. The retry budget is bounded, curl resets the -o file between failed attempts, and HTTPS-only redirects, SHA-256 verification, temporary-directory cleanup, and atomic publication remain intact. I also checked the documented curl floor and the surrounding cache/publication lifecycle. Locally, bash -n scripts/steady/install, node scripts/steady/test.cjs on Node 24, pnpm install --frozen-lockfile, pnpm lint, and git diff --check passed. Exact-head CI, CodeQL/security review, Castiron, and OkTest 236/236 are green. No blocking findings.

Comment thread scripts/steady/download.test.cjs Fixed

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 7b694ebc48

ℹ️ 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".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread .github/workflows/ci.yml Resolved
@HAYDEN-OAI
HAYDEN-OAI added this pull request to the merge queue Sep 16, 2026
Merged via the queue into main with commit e39037b Sep 16, 2026
49 checks passed
@HAYDEN-OAI
HAYDEN-OAI deleted the codex/fix-main-release-ci-20260916 branch September 16, 2026 17:01
@openai-sdks openai-sdks Bot mentioned this pull request Sep 16, 2026
HAYDEN-OAI pushed a commit that referenced this pull request Sep 16, 2026
Automated Release PR
---


##
[7.17.0](v7.16.0...v7.17.0)
(2026-09-16)


### Features

* **api:** add compaction progress events
([#2749](#2749))
([425502d](425502d))


### Bug Fixes

* **ci:** retry transient Deno download failures
([#2752](#2752))
([e39037b](e39037b))
* preserve chat runner abort reasons
([#2607](#2607))
([eda4d0c](eda4d0c))
* **realtime:** preserve native WebSocket error causes
([#2715](#2715))
([58fa72a](58fa72a))
* **responses:** reject function-based API keys in WebSocket
constructors
([#2586](#2586))
([eea7618](eea7618))
* **runners:** reject unfinished turns in streaming runTools
([#2716](#2716))
([937ed67](937ed67))
* **streaming:** emit terminal SSE events missing a trailing blank line
([#2726](#2726))
([94d6418](94d6418))
* **zod:** omit impossible optional branch in strict schemas
([#2751](#2751))
([2b4c2c7](2b4c2c7))


### Chores

* update lint tooling and tailor anti-slop for the SDK
([#2753](#2753))
([21a03c2](21a03c2))


### Documentation

* **examples:** preserve split UTF-8 in raw stream consumer
([#2714](#2714))
([f44152a](f44152a))

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

5 participants