Skip to content

Commit 5af05ab

Browse files
steipeteampagent
andauthored
1 parent 97cd06b commit 5af05ab

14 files changed

Lines changed: 43 additions & 17 deletions

‎.github/actions/setup-node-env/action.yml‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -321,7 +321,7 @@ runs:
321321
shell: bash
322322
run: |
323323
set -euo pipefail
324-
npm install -g bun@1.3.14
324+
npm install -g bun@1.4.0
325325
326326
- name: Runtime versions
327327
shell: bash

‎.github/workflows/ci.yml‎

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1346,7 +1346,7 @@ jobs:
13461346
uses: ./.ci-harness/.github/actions/setup-node-env
13471347
with:
13481348
cache-mode: ${{ needs.preflight.outputs.cache_mode }}
1349-
install-bun: "false"
1349+
install-bun: "true"
13501350
node-compile-cache: "true"
13511351
node-compile-cache-scope: "build"
13521352
# Same-repo Blacksmith runs restore the dependency cache published by
@@ -1428,6 +1428,11 @@ jobs:
14281428
- name: Smoke test CLI launcher status json
14291429
run: node openclaw.mjs status --json --timeout 1
14301430

1431+
- name: Smoke test built CLI with Bun
1432+
run: |
1433+
bun openclaw.mjs --help
1434+
bun openclaw.mjs status --json --timeout 1
1435+
14311436
# Doctor index proof, singleton smoke, and startup-memory check are
14321437
# independent dist readers; Blacksmith runners have the cores to overlap
14331438
# them, while hosted 4-core runners keep the serial order so the RSS

‎.github/workflows/install-smoke-reusable.yml‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1449,7 +1449,7 @@ jobs:
14491449
--source-archive-sha256 "$SOURCE_ARCHIVE_SHA256"
14501450
14511451
- name: Install Bun for global smoke
1452-
run: npm install -g bun@1.3.14
1452+
run: npm install -g bun@1.4.0
14531453

14541454
- name: Run Bun global install candidate-payload smoke
14551455
working-directory: .release-harness

‎Dockerfile‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ ARG OPENCLAW_NODE_BOOKWORM_SLIM_IMAGE="docker.io/library/node:24-bookworm-slim@s
1818
ARG OPENCLAW_NODE_BOOKWORM_SLIM_DIGEST="sha256:3638d9a6fe4030bd716be989438248074489337ba3275657f93595428be4fc03"
1919
# Keep in sync with .github/actions/setup-node-env/action.yml bun-version.
2020
# To update: docker buildx imagetools inspect docker.io/oven/bun:<version> and use the manifest-list digest.
21-
ARG OPENCLAW_BUN_IMAGE="docker.io/oven/bun:1.3.14@sha256:e10577f0db68676a7024391c6e5cb4b879ebd17188ab750cf10024a6d700e5c4"
21+
ARG OPENCLAW_BUN_IMAGE="docker.io/oven/bun:1.4.0@sha256:5ff609364c049b54eb0ff560ec96319729a972078ef2c755d758f0c6ef89c2d6"
2222

2323
# Base images are pinned to SHA256 digests for reproducible builds.
2424
# Dependabot refreshes these blessed digests; release builds consume the

‎scripts/crabbox-wrapper.mts‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -275,7 +275,7 @@ const jsRuntimeEntrypoints = new Set([
275275
]);
276276
const awsMacosCorepackEntrypoints = new Set(["pnpm", "yarn", "corepack"]);
277277
const awsMacosBunEntrypoints = new Set(["bun", "bunx"]);
278-
const awsMacosBunVersion = "1.3.14";
278+
const awsMacosBunVersion = "1.4.0";
279279
const awsMacosSwiftEntrypoints = new Set(["swift", "xcodebuild"]);
280280
const awsMacosSwiftScriptTargets = new Set([
281281
"mac:package",

‎scripts/e2e/bun-global-install-smoke.sh‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -147,8 +147,8 @@ main() {
147147
export NO_COLOR=1
148148
mkdir -p "$HOME" "$BUN_INSTALL/bin" "$BUN_INSTALL/install/global" "$XDG_CACHE_HOME"
149149
export PATH="$BUN_INSTALL/bin:$(dirname "$(command -v node)"):$PATH"
150-
# Release publishes @openclaw/ai first. Bun 1.3.14 ignores bundled deps in
151-
# local tarballs, so resolve that one package from the exact candidate bytes.
150+
# Release publishes @openclaw/ai first. Pin the local tarball install to
151+
# exact candidate bytes instead of allowing public-registry resolution.
152152
node --input-type=module - \
153153
"$BUN_INSTALL/install/global/package.json" \
154154
"$AI_PACKAGE_TGZ" <<'NODE'

‎scripts/e2e/docker-package-install.sh‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ DOCKER_COMMAND_TIMEOUT="$DOCKER_RUN_TIMEOUT" docker_e2e_docker_run_cmd run -d \
8686
"$IMAGE_NAME" \
8787
bash -lc '
8888
set -euo pipefail
89-
npm install -g --prefix /tmp/bun-runtime bun@1.3.14 --no-fund --no-audit
89+
npm install -g --prefix /tmp/bun-runtime bun@1.4.0 --no-fund --no-audit
9090
cd /repo
9191
BUN_BIN=/tmp/bun-runtime/bin/bun \
9292
OPENCLAW_BUN_GLOBAL_SMOKE_HOST_BUILD=0 \

‎src/cli/gateway-backed-exit.process.test.ts‎

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -148,6 +148,7 @@ async function runIsolatedGatewayCli(params: {
148148
stateDir: string;
149149
configPath: string;
150150
env?: NodeJS.ProcessEnv;
151+
timeoutMs?: number;
151152
}): Promise<{
152153
code: number | null;
153154
signal: NodeJS.Signals | null;
@@ -185,7 +186,7 @@ async function runIsolatedGatewayCli(params: {
185186
},
186187
encoding: "utf8",
187188
killSignal: "SIGKILL",
188-
timeout: 20_000,
189+
timeout: params.timeoutMs ?? 20_000,
189190
},
190191
);
191192
return { code: 0, signal: null, stdout: result.stdout, stderr: result.stderr };
@@ -235,6 +236,9 @@ describe("gateway-backed CLI process exit", () => {
235236
root,
236237
stateDir,
237238
configPath,
239+
// The first source child cold-loads the CLI graph and can contend with
240+
// neighboring CI shards before it reaches the Gateway turn.
241+
timeoutMs: 45_000,
238242
});
239243

240244
expect(result, result.stderr).toMatchObject({ code: exitCode, signal: null, stderr: "" });
@@ -244,7 +248,7 @@ describe("gateway-backed CLI process exit", () => {
244248
result: { payloads: [{ text }] },
245249
});
246250
},
247-
30_000,
251+
60_000,
248252
);
249253

250254
it.each([

‎src/dockerfile.test.ts‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@ describe("Dockerfile", () => {
8585
'ARG OPENCLAW_NODE_BOOKWORM_SLIM_IMAGE="docker.io/library/node:24-bookworm-slim@sha256:3638d9a6fe4030bd716be989438248074489337ba3275657f93595428be4fc03"',
8686
);
8787
expect(dockerfile).toContain(
88-
'ARG OPENCLAW_BUN_IMAGE="docker.io/oven/bun:1.3.14@sha256:e10577f0db68676a7024391c6e5cb4b879ebd17188ab750cf10024a6d700e5c4"',
88+
'ARG OPENCLAW_BUN_IMAGE="docker.io/oven/bun:1.4.0@sha256:5ff609364c049b54eb0ff560ec96319729a972078ef2c755d758f0c6ef89c2d6"',
8989
);
9090
expect(dockerfile).toContain("FROM ${OPENCLAW_NODE_BOOKWORM_IMAGE} AS workspace-deps");
9191
expect(dockerfile).toContain("FROM ${OPENCLAW_NODE_BOOKWORM_IMAGE} AS build");

‎test/scripts/ci-workflow-guards.test.ts‎

Lines changed: 18 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7405,20 +7405,37 @@ printf '%s\n' "\${CURL_SUCCESS_IP:-203.0.113.7}"
74057405
expect(realGatewayRunContract).not.toContain("--testTimeout");
74067406
});
74077407

7408-
it("does not rebuild Control UI after build:ci-artifacts", () => {
7408+
it("builds artifacts once and smoke-tests the built CLI with Node and Bun", () => {
74097409
const workflow = readCiWorkflow();
74107410
const buildArtifactSteps = workflow.jobs["build-artifacts"].steps;
7411+
const setupStep = buildArtifactSteps.find(
7412+
(step: WorkflowStep) => step.name === "Setup Node environment",
7413+
);
74117414
const buildDistStep = buildArtifactSteps.find(
74127415
(step: WorkflowStep) => step.name === "Build dist",
74137416
);
7417+
const nodeHelpSmoke = buildArtifactSteps.find(
7418+
(step: WorkflowStep) => step.name === "Smoke test CLI launcher help",
7419+
);
7420+
const nodeStatusSmoke = buildArtifactSteps.find(
7421+
(step: WorkflowStep) => step.name === "Smoke test CLI launcher status json",
7422+
);
7423+
const bunSmoke = buildArtifactSteps.find(
7424+
(step: WorkflowStep) => step.name === "Smoke test built CLI with Bun",
7425+
);
74147426

7427+
expect(setupStep.with["install-bun"]).toBe("true");
74157428
expect(buildDistStep.run).toBe("pnpm build:ci-artifacts");
74167429
expect(buildArtifactSteps.map((step: WorkflowStep) => step.name)).not.toContain(
74177430
"Build Control UI",
74187431
);
74197432
expect(buildArtifactSteps.some((step: WorkflowStep) => step.run === "pnpm ui:build")).toBe(
74207433
false,
74217434
);
7435+
expect(nodeHelpSmoke.run).toBe("node openclaw.mjs --help");
7436+
expect(nodeStatusSmoke.run).toBe("node openclaw.mjs status --json --timeout 1");
7437+
expect(bunSmoke.run).toContain("bun openclaw.mjs --help");
7438+
expect(bunSmoke.run).toContain("bun openclaw.mjs status --json --timeout 1");
74227439
});
74237440

74247441
it("keeps source-only Control UI locale drift advisory", () => {

0 commit comments

Comments
 (0)