Skip to content

OpenAI's Codex Security CLI and TypeScript SDK for finding, validating, and fixing security vulnerabilities. npm: https://www.npmjs.com/package/@openai/codex-security

chore(deps): update the Bun toolchain to 1.4.4 (#2417)

khai-oai794edbe9575a
diff --git a/.devcontainer/install.sh b/.devcontainer/install.sh
index ad4fb9ead..eff90fc15 100644
--- a/.devcontainer/install.sh
+++ b/.devcontainer/install.sh
@@ -15,7 +15,7 @@ export COREPACK_ENABLE_DOWNLOAD_PROMPT
corepack install
# Keep bun aligned with the version pinned in .github/workflows/node-ci.yml.
-npm install --global [email protected] --no-audit --no-fund
+npm install --global [email protected] --no-audit --no-fund
if ! command -v rg >/dev/null 2>&1; then
# Refresh only the Ubuntu sources. Dev container features add APT sources of
diff --git a/.github/workflows/action-ci.yml b/.github/workflows/action-ci.yml
index 31524c9e9..1e0a04a6e 100644
--- a/.github/workflows/action-ci.yml
+++ b/.github/workflows/action-ci.yml
@@ -65,7 +65,7 @@ jobs:
if: inputs.sdk-contracts
uses: oven-sh/setup-bun@0c5077e51419868618aeaa5fe8019c62421857d6 # v2
with:
- bun-version: "1.3.14"
+ bun-version: "1.4.4"
no-cache: true
- name: Test Action release contracts
if: inputs.sdk-contracts
diff --git a/.github/workflows/node-ci.yml b/.github/workflows/node-ci.yml
index eb0e94c42..0c65c9989 100644
--- a/.github/workflows/node-ci.yml
+++ b/.github/workflows/node-ci.yml
@@ -203,7 +203,7 @@ jobs:
name: Set up Bun
uses: oven-sh/setup-bun@0c5077e51419868618aeaa5fe8019c62421857d6 # v2
with:
- bun-version: "1.3.14"
+ bun-version: "1.4.4"
- *install-dependencies
- &download-package-for-this-commit
name: Download package for this commit
diff --git a/.github/workflows/node-release.yml b/.github/workflows/node-release.yml
index 2fd6dc7f9..1bc1ffe7c 100644
--- a/.github/workflows/node-release.yml
+++ b/.github/workflows/node-release.yml
@@ -84,7 +84,7 @@ jobs:
name: Set up Bun
uses: oven-sh/setup-bun@0c5077e51419868618aeaa5fe8019c62421857d6 # v2
with:
- bun-version: "1.3.14"
+ bun-version: "1.4.4"
no-cache: true
- &setup-release-pnpm
diff --git a/.github/workflows/test-quality.yml b/.github/workflows/test-quality.yml
index ec2a5ef29..6542fe15b 100644
--- a/.github/workflows/test-quality.yml
+++ b/.github/workflows/test-quality.yml
@@ -112,7 +112,7 @@ jobs:
- &set-up-bun
uses: oven-sh/setup-bun@0c5077e51419868618aeaa5fe8019c62421857d6 # v2
with:
- bun-version: "1.3.14"
+ bun-version: "1.4.4"
- &install-plugin-dependencies
name: Install dependencies
shell: bash
diff --git a/sdk/typescript/scripts/bun-test-timeout.mts b/sdk/typescript/scripts/bun-test-timeout.mts
index 608939742..7733bf926 100644
--- a/sdk/typescript/scripts/bun-test-timeout.mts
+++ b/sdk/typescript/scripts/bun-test-timeout.mts
@@ -1,7 +1,7 @@
import { parseArgs } from "node:util";
-// Keep arities aligned with the pinned Bun's test_params:
-// https://github.com/oven-sh/bun/blob/bun-v1.3.14/src/cli/Arguments.zig
+// Keep arities aligned with the pinned Bun's TEST_PARAMS.
+// https://github.com/oven-sh/bun/blob/bun-v1.4.4/src/runtime/cli/Arguments.rs
const optionalBunOptions = {
bail: { type: "string" },
changed: { type: "string" },
@@ -9,6 +9,7 @@ const optionalBunOptions = {
inspect: { type: "string" },
"inspect-wait": { type: "string" },
"inspect-brk": { type: "string" },
+ "disallow-code-generation-from-strings": { type: "string" },
config: { type: "string", short: "c" },
} as const;
@@ -39,6 +40,8 @@ export function bunTestTimeout(testArguments: readonly string[]) {
"path-ignore-patterns": { type: "string" },
"parallel-delay": { type: "string" },
shard: { type: "string" },
+ timings: { type: "string" },
+ "watch-kill-signal": { type: "string" },
preload: { type: "string", short: "r" },
require: { type: "string" },
import: { type: "string" },
@@ -47,6 +50,7 @@ export function bunTestTimeout(testArguments: readonly string[]) {
"cpu-prof-interval": { type: "string" },
"heap-prof-name": { type: "string" },
"heap-prof-dir": { type: "string" },
+ "heap-prof-interval": { type: "string" },
install: { type: "string" },
eval: { type: "string", short: "e" },
print: { type: "string", short: "p" },
@@ -58,6 +62,11 @@ export function bunTestTimeout(testArguments: readonly string[]) {
"dns-result-order": { type: "string" },
title: { type: "string" },
"unhandled-rejections": { type: "string" },
+ "redirect-warnings": { type: "string" },
+ "disable-warning": { type: "string" },
+ "trace-event-categories": { type: "string" },
+ "trace-event-file-pattern": { type: "string" },
+ "stack-trace-limit": { type: "string" },
"console-depth": { type: "string" },
"user-agent": { type: "string" },
"cron-title": { type: "string" },
diff --git a/sdk/typescript/tests-ts/skeleton.test.ts b/sdk/typescript/tests-ts/skeleton.test.ts
index 7f14f10fc..5a50312be 100644
--- a/sdk/typescript/tests-ts/skeleton.test.ts
+++ b/sdk/typescript/tests-ts/skeleton.test.ts
@@ -434,7 +434,7 @@ describe("TypeScript package skeleton", () => {
job
.steps!.filter((step) => step.uses?.startsWith("oven-sh/setup-bun@"))
.map((step) => step.with?.["bun-version"]),
- ).toEqual(["1.3.14"]);
+ ).toEqual(["1.4.4"]);
for (const step of job.steps!) {
expect(step.run ?? "").not.toMatch(
/--(?:parallel|isolate)(?:[=\s]|$)/u,
diff --git a/sdk/typescript/tests-ts/test-shards.test.ts b/sdk/typescript/tests-ts/test-shards.test.ts
index 41df1f2f2..1d88e1b0d 100644
--- a/sdk/typescript/tests-ts/test-shards.test.ts
+++ b/sdk/typescript/tests-ts/test-shards.test.ts
@@ -288,6 +288,7 @@ test.each([
[defaultTimeoutMs, ["--test-name-pattern", "--timeout=5000"]],
["7000", ["--timeout", "7000", "-t", "--timeout=5000"]],
[defaultTimeoutMs, ["--coverage-dir", "--timeout=5000"]],
+ [defaultTimeoutMs, ["--timings", "--timeout=5000"]],
[defaultTimeoutMs, ["--title", "--timeout=5000"]],
["7000", ["--config", "--timeout=7000"]],
["7000", ["-c", "--timeout=7000"]],