惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

罗磊的独立博客
U
Unit 42
N
Netflix TechBlog - Medium
人人都是产品经理
人人都是产品经理
Hugging Face - Blog
Hugging Face - Blog
腾讯CDC
小众软件
小众软件
V
Visual Studio Blog
T
Tailwind CSS Blog
Engineering at Meta
Engineering at Meta
博客园 - 叶小钗
GbyAI
GbyAI
爱范儿
爱范儿
雷峰网
雷峰网
Microsoft Azure Blog
Microsoft Azure Blog
D
DataBreaches.Net
博客园_首页
D
Docker
A
About on SuperTechFans
G
Google Developers Blog
I
InfoQ
T
The Blog of Author Tim Ferriss
V
V2EX
博客园 - Franky

Recent Commits to openclaw:main

test: merge chat side-result checks · openclaw/openclaw@ddd2c2a test: merge cron history checks · openclaw/openclaw@f7eb746 test: merge responsive navigation shell checks · openclaw/openclaw@c2e4b47 docs(changelog): add codex oauth fixes · openclaw/openclaw@628e6cd test: merge navigation routing cases · openclaw/openclaw@5d8cecb Tests: mock channel registry bundled fallback · openclaw/openclaw@2b08233 Secrets: avoid broad web search discovery for single plugin config · openclaw/openclaw@a464f59 test: merge config view browser checks · openclaw/openclaw@20cf511 fix(status): align oauth health with runtime · openclaw/openclaw@eed7116 feat: add macOS screen snapshots for monitor preview (#67954) thanks … · openclaw/openclaw@f377db1 fix: report shared auth scopes in hello-ok (#67810) thanks @BunsDev · openclaw/openclaw@0b6c39b Auto-reply: avoid eager bundled route fallback · openclaw/openclaw@3ea1bf4 Tests: narrow session binding contract setup · openclaw/openclaw@54e4e16 fix(macOS): enable undo/redo in webchat composer text input (#34962) · openclaw/openclaw@00951dc Tests: speed up channel setup promotion · openclaw/openclaw@82b529a Docs: refresh agent instructions · openclaw/openclaw@5775fe2 fix(auth): serialize OAuth refresh across agents to fix #26322 (#67876) · openclaw/openclaw@8e79080 test: allow ollama public surface boundary test · openclaw/openclaw@7d4f1a6 Docs: add test performance guardrails · openclaw/openclaw@89706d3 Tests: restore context-engine usage proof · openclaw/openclaw@e4c4f95 Tests: slim context engine runtime coverage · openclaw/openclaw@74c198f ci: retry failed custom checkouts · openclaw/openclaw@0ee5baf test: trim duplicate provider auth onboarding cases · openclaw/openclaw@1ffc02e matrix: fix sessions_spawn --thread subagent session spawning (#67643) · openclaw/openclaw@1ce2596 test: reduce auth choice fixture churn · openclaw/openclaw@857b9cd test: mock health status config boundaries · openclaw/openclaw@9d5ab4a test: mock onboard config io boundary · openclaw/openclaw@299694d test: mock legacy state plugin boundaries · openclaw/openclaw@2713089 test: mock channel install boundaries · openclaw/openclaw@b945248 test: mock doctor preview channel boundaries · openclaw/openclaw@b1a3ad4
test(docker): speed bundled dependency e2e · openclaw/ope...
steipete · 2026-04-23 · via Recent Commits to openclaw:main

@@ -6,14 +6,55 @@ source "$ROOT_DIR/scripts/lib/docker-e2e-logs.sh"

6677

IMAGE_NAME="${OPENCLAW_BUNDLED_CHANNEL_DEPS_E2E_IMAGE:-openclaw-bundled-channel-deps-e2e}"

88

UPDATE_BASELINE_VERSION="${OPENCLAW_BUNDLED_CHANNEL_UPDATE_BASELINE_VERSION:-2026.4.20}"

9+

DOCKER_TARGET="${OPENCLAW_BUNDLED_CHANNEL_DOCKER_TARGET:-e2e-runner}"

10+

HOST_BUILD="${OPENCLAW_BUNDLED_CHANNEL_HOST_BUILD:-1}"

11+

PACKAGE_TGZ="${OPENCLAW_BUNDLED_CHANNEL_PACKAGE_TGZ:-}"

912

RUN_CHANNEL_SCENARIOS="${OPENCLAW_BUNDLED_CHANNEL_SCENARIOS:-1}"

1013

RUN_UPDATE_SCENARIO="${OPENCLAW_BUNDLED_CHANNEL_UPDATE_SCENARIO:-1}"

1114

RUN_ROOT_OWNED_SCENARIO="${OPENCLAW_BUNDLED_CHANNEL_ROOT_OWNED_SCENARIO:-1}"

1215

RUN_SETUP_ENTRY_SCENARIO="${OPENCLAW_BUNDLED_CHANNEL_SETUP_ENTRY_SCENARIO:-1}"

1316

RUN_LOAD_FAILURE_SCENARIO="${OPENCLAW_BUNDLED_CHANNEL_LOAD_FAILURE_SCENARIO:-1}"

141715-

echo "Building Docker image..."

16-

run_logged bundled-channel-deps-build docker build -t "$IMAGE_NAME" -f "$ROOT_DIR/scripts/e2e/Dockerfile" "$ROOT_DIR"

18+

if [ "${OPENCLAW_SKIP_DOCKER_BUILD:-0}" = "1" ]; then

19+

echo "Reusing Docker image: $IMAGE_NAME (OPENCLAW_SKIP_DOCKER_BUILD=1)"

20+

else

21+

echo "Building Docker image target $DOCKER_TARGET..."

22+

run_logged bundled-channel-deps-build docker build --target "$DOCKER_TARGET" -t "$IMAGE_NAME" -f "$ROOT_DIR/scripts/e2e/Dockerfile" "$ROOT_DIR"

23+

fi

24+25+

prepare_package_tgz() {

26+

if [ -n "$PACKAGE_TGZ" ]; then

27+

if [ ! -f "$PACKAGE_TGZ" ]; then

28+

echo "OPENCLAW_BUNDLED_CHANNEL_PACKAGE_TGZ does not exist: $PACKAGE_TGZ" >&2

29+

exit 1

30+

fi

31+

PACKAGE_TGZ="$(cd "$(dirname "$PACKAGE_TGZ")" && pwd)/$(basename "$PACKAGE_TGZ")"

32+

return 0

33+

fi

34+35+

if [ "$HOST_BUILD" != "0" ]; then

36+

echo "Building host package artifacts..."

37+

run_logged bundled-channel-deps-host-build pnpm build

38+

else

39+

echo "Skipping host build (OPENCLAW_BUNDLED_CHANNEL_HOST_BUILD=0)"

40+

fi

41+42+

echo "Writing package inventory and packing once..."

43+

run_logged bundled-channel-deps-inventory node --import tsx --input-type=module -e 'const { writePackageDistInventory } = await import("./src/infra/package-dist-inventory.ts"); await writePackageDistInventory(process.cwd());'

44+

local pack_dir

45+

pack_dir="$(mktemp -d "${TMPDIR:-/tmp}/openclaw-bundled-channel-pack.XXXXXX")"

46+

run_logged bundled-channel-deps-pack npm pack --ignore-scripts --pack-destination "$pack_dir"

47+

PACKAGE_TGZ="$(find "$pack_dir" -maxdepth 1 -name 'openclaw-*.tgz' -print -quit)"

48+

if [ -z "$PACKAGE_TGZ" ]; then

49+

echo "missing packed OpenClaw tarball" >&2

50+

exit 1

51+

fi

52+

PACKAGE_TGZ="$(cd "$(dirname "$PACKAGE_TGZ")" && pwd)/$(basename "$PACKAGE_TGZ")"

53+

}

54+55+

prepare_package_tgz

56+

DOCKER_PACKAGE_TGZ="/tmp/openclaw-current.tgz"

57+

PACKAGE_DOCKER_ARGS=(-v "$PACKAGE_TGZ:$DOCKER_PACKAGE_TGZ:ro" -e "OPENCLAW_CURRENT_PACKAGE_TGZ=$DOCKER_PACKAGE_TGZ")

17581859

run_channel_scenario() {

1960

local channel="$1"

@@ -26,6 +67,7 @@ run_channel_scenario() {

2667

-e COREPACK_ENABLE_DOWNLOAD_PROMPT=0 \

2768

-e OPENCLAW_CHANNEL_UNDER_TEST="$channel" \

2869

-e OPENCLAW_DEP_SENTINEL="$dep_sentinel" \

70+

"${PACKAGE_DOCKER_ARGS[@]}" \

2971

-i "$IMAGE_NAME" bash -s >"$run_log" 2>&1 <<'EOF'

3072

set -euo pipefail

3173

@@ -49,15 +91,8 @@ cleanup() {

4991

}

5092

trap cleanup EXIT

519352-

echo "Packing and installing current OpenClaw build..."

53-

pack_dir="$(mktemp -d "/tmp/openclaw-pack.XXXXXX")"

54-

npm pack --ignore-scripts --pack-destination "$pack_dir" >/tmp/openclaw-pack.log 2>&1

55-

package_tgz="$(find "$pack_dir" -maxdepth 1 -name 'openclaw-*.tgz' -print -quit)"

56-

if [ -z "$package_tgz" ]; then

57-

cat /tmp/openclaw-pack.log

58-

echo "missing packed OpenClaw tarball" >&2

59-

exit 1

60-

fi

94+

echo "Installing mounted OpenClaw package..."

95+

package_tgz="${OPENCLAW_CURRENT_PACKAGE_TGZ:?missing OPENCLAW_CURRENT_PACKAGE_TGZ}"

6196

npm install -g "$package_tgz" --no-fund --no-audit >/tmp/openclaw-install.log 2>&1

62976398

command -v openclaw >/dev/null

@@ -361,6 +396,7 @@ run_root_owned_global_scenario() {

361396

echo "Running bundled channel root-owned global install Docker E2E..."

362397

if ! docker run --rm --user root \

363398

-e COREPACK_ENABLE_DOWNLOAD_PROMPT=0 \

399+

"${PACKAGE_DOCKER_ARGS[@]}" \

364400

-i "$IMAGE_NAME" bash -s >"$run_log" 2>&1 <<'EOF'

365401

set -euo pipefail

366402

@@ -387,15 +423,8 @@ cleanup() {

387423

}

388424

trap cleanup EXIT

389425390-

echo "Packing and installing current OpenClaw build into root-owned global npm..."

391-

pack_dir="$(mktemp -d "/tmp/openclaw-root-owned-pack.XXXXXX")"

392-

npm pack --ignore-scripts --pack-destination "$pack_dir" >/tmp/openclaw-root-owned-pack.log 2>&1

393-

package_tgz="$(find "$pack_dir" -maxdepth 1 -name 'openclaw-*.tgz' -print -quit)"

394-

if [ -z "$package_tgz" ]; then

395-

cat /tmp/openclaw-root-owned-pack.log

396-

echo "missing packed OpenClaw tarball" >&2

397-

exit 1

398-

fi

426+

echo "Installing mounted OpenClaw package into root-owned global npm..."

427+

package_tgz="${OPENCLAW_CURRENT_PACKAGE_TGZ:?missing OPENCLAW_CURRENT_PACKAGE_TGZ}"

399428

npm install -g "$package_tgz" --no-fund --no-audit >/tmp/openclaw-root-owned-install.log 2>&1

400429401430

root="$(package_root)"

@@ -550,6 +579,7 @@ run_setup_entry_scenario() {

550579

echo "Running bundled channel setup-entry runtime deps Docker E2E..."

551580

if ! docker run --rm \

552581

-e COREPACK_ENABLE_DOWNLOAD_PROMPT=0 \

582+

"${PACKAGE_DOCKER_ARGS[@]}" \

553583

-i "$IMAGE_NAME" bash -s >"$run_log" 2>&1 <<'EOF'

554584

set -euo pipefail

555585

@@ -566,15 +596,8 @@ package_root() {

566596

printf "%s/openclaw" "$(npm root -g)"

567597

}

568598569-

echo "Packing and installing current OpenClaw build..."

570-

pack_dir="$(mktemp -d "/tmp/openclaw-setup-entry-pack.XXXXXX")"

571-

npm pack --ignore-scripts --pack-destination "$pack_dir" >/tmp/openclaw-setup-entry-pack.log 2>&1

572-

package_tgz="$(find "$pack_dir" -maxdepth 1 -name 'openclaw-*.tgz' -print -quit)"

573-

if [ -z "$package_tgz" ]; then

574-

cat /tmp/openclaw-setup-entry-pack.log

575-

echo "missing packed OpenClaw tarball" >&2

576-

exit 1

577-

fi

599+

echo "Installing mounted OpenClaw package..."

600+

package_tgz="${OPENCLAW_CURRENT_PACKAGE_TGZ:?missing OPENCLAW_CURRENT_PACKAGE_TGZ}"

578601

npm install -g "$package_tgz" --no-fund --no-audit >/tmp/openclaw-setup-entry-install.log 2>&1

579602580603

root="$(package_root)"

@@ -660,6 +683,7 @@ run_update_scenario() {

660683

if ! docker run --rm \

661684

-e COREPACK_ENABLE_DOWNLOAD_PROMPT=0 \

662685

-e OPENCLAW_BUNDLED_CHANNEL_UPDATE_BASELINE_VERSION="$UPDATE_BASELINE_VERSION" \

686+

"${PACKAGE_DOCKER_ARGS[@]}" \

663687

-i "$IMAGE_NAME" bash -s >"$run_log" 2>&1 <<'EOF'

664688

set -euo pipefail

665689

@@ -677,20 +701,7 @@ package_root() {

677701

printf "%s/openclaw" "$(npm root -g)"

678702

}

679703680-

pack_current_candidate() {

681-

local pack_dir

682-

pack_dir="$(mktemp -d "/tmp/openclaw-update-pack.XXXXXX")"

683-

node --import tsx --input-type=module -e 'const { writePackageDistInventory } = await import("./src/infra/package-dist-inventory.ts"); await writePackageDistInventory(process.cwd());' >/tmp/openclaw-update-inventory.log 2>&1

684-

npm pack --ignore-scripts --pack-destination "$pack_dir" >/tmp/openclaw-update-pack.log 2>&1

685-

find "$pack_dir" -maxdepth 1 -name 'openclaw-*.tgz' -print -quit

686-

}

687-688-

package_tgz="$(pack_current_candidate)"

689-

if [ -z "$package_tgz" ]; then

690-

cat /tmp/openclaw-update-pack.log

691-

echo "missing packed OpenClaw candidate tarball" >&2

692-

exit 1

693-

fi

704+

package_tgz="${OPENCLAW_CURRENT_PACKAGE_TGZ:?missing OPENCLAW_CURRENT_PACKAGE_TGZ}"

694705

update_target="file:$package_tgz"

695706

candidate_version="$(node - <<'NODE' "$package_tgz"

696707

const { execFileSync } = require("node:child_process");

@@ -1009,6 +1020,7 @@ run_load_failure_scenario() {

10091020

echo "Running bundled channel load-failure isolation Docker E2E..."

10101021

if ! docker run --rm \

10111022

-e COREPACK_ENABLE_DOWNLOAD_PROMPT=0 \

1023+

"${PACKAGE_DOCKER_ARGS[@]}" \

10121024

-i "$IMAGE_NAME" bash -s >"$run_log" 2>&1 <<'EOF'

10131025

set -euo pipefail

10141026

@@ -1021,15 +1033,8 @@ package_root() {

10211033

printf "%s/openclaw" "$(npm root -g)"

10221034

}

102310351024-

echo "Packing and installing current OpenClaw build..."

1025-

pack_dir="$(mktemp -d "/tmp/openclaw-load-failure-pack.XXXXXX")"

1026-

npm pack --ignore-scripts --pack-destination "$pack_dir" >/tmp/openclaw-load-failure-pack.log 2>&1

1027-

package_tgz="$(find "$pack_dir" -maxdepth 1 -name 'openclaw-*.tgz' -print -quit)"

1028-

if [ -z "$package_tgz" ]; then

1029-

cat /tmp/openclaw-load-failure-pack.log

1030-

echo "missing packed OpenClaw tarball" >&2

1031-

exit 1

1032-

fi

1036+

echo "Installing mounted OpenClaw package..."

1037+

package_tgz="${OPENCLAW_CURRENT_PACKAGE_TGZ:?missing OPENCLAW_CURRENT_PACKAGE_TGZ}"

10331038

npm install -g "$package_tgz" --no-fund --no-audit >/tmp/openclaw-load-failure-install.log 2>&1

1034103910351040

root="$(package_root)"