improve: validate built CLI with Bun 1.4 (#129192)

* ci: validate built CLI with Bun 1.4

Amp-Thread-ID: https://ampcode.com/threads/T-01a037b7-66db-71f0-91e7-1578b383afb2

* test: align Bun Docker image assertion

Amp-Thread-ID: https://ampcode.com/threads/T-01a037b7-66db-71f0-91e7-1578b383afb2

* test: tolerate cold CLI startup in CI

Amp-Thread-ID: https://ampcode.com/threads/T-01a037b7-66db-71f0-91e7-1578b383afb2

---------

Co-authored-by: Amp <amp@ampcode.com>
This commit is contained in:
Peter Steinberger
2026-08-25 03:44:57 -07:00
committed by GitHub
parent 97cd06b946
commit 5af05ab1a2
14 changed files with 43 additions and 17 deletions
+1 -1
View File
@@ -275,7 +275,7 @@ const jsRuntimeEntrypoints = new Set([
]);
const awsMacosCorepackEntrypoints = new Set(["pnpm", "yarn", "corepack"]);
const awsMacosBunEntrypoints = new Set(["bun", "bunx"]);
const awsMacosBunVersion = "1.3.14";
const awsMacosBunVersion = "1.4.0";
const awsMacosSwiftEntrypoints = new Set(["swift", "xcodebuild"]);
const awsMacosSwiftScriptTargets = new Set([
"mac:package",
+2 -2
View File
@@ -147,8 +147,8 @@ main() {
export NO_COLOR=1
mkdir -p "$HOME" "$BUN_INSTALL/bin" "$BUN_INSTALL/install/global" "$XDG_CACHE_HOME"
export PATH="$BUN_INSTALL/bin:$(dirname "$(command -v node)"):$PATH"
# Release publishes @openclaw/ai first. Bun 1.3.14 ignores bundled deps in
# local tarballs, so resolve that one package from the exact candidate bytes.
# Release publishes @openclaw/ai first. Pin the local tarball install to
# exact candidate bytes instead of allowing public-registry resolution.
node --input-type=module - \
"$BUN_INSTALL/install/global/package.json" \
"$AI_PACKAGE_TGZ" <<'NODE'
+1 -1
View File
@@ -86,7 +86,7 @@ DOCKER_COMMAND_TIMEOUT="$DOCKER_RUN_TIMEOUT" docker_e2e_docker_run_cmd run -d \
"$IMAGE_NAME" \
bash -lc '
set -euo pipefail
npm install -g --prefix /tmp/bun-runtime bun@1.3.14 --no-fund --no-audit
npm install -g --prefix /tmp/bun-runtime bun@1.4.0 --no-fund --no-audit
cd /repo
BUN_BIN=/tmp/bun-runtime/bin/bun \
OPENCLAW_BUN_GLOBAL_SMOKE_HOST_BUILD=0 \