fix(e2e): bound package cli scenarios · openclaw/openclaw@d0cb7ba
vincentkoc
·
2026-05-27
·
via Recent Commits to openclaw:main
File tree
release-plugin-marketplace
release-upgrade-user-journey
| Original file line number | Diff line number | Diff line change |
|---|
@@ -197,6 +197,7 @@ chmod 700 "$XDG_CACHE_HOME" "$NPM_CONFIG_CACHE" || true
|
197 | 197 | |
198 | 198 | openclaw_e2e_install_package /tmp/openclaw-install.log |
199 | 199 | command -v openclaw >/dev/null |
| 200 | +openclaw_e2e_enable_openclaw_cli_timeout |
200 | 201 | |
201 | 202 | echo "Installing Codex plugin: $CODEX_PLUGIN_SPEC" |
202 | 203 | openclaw plugins install "$CODEX_PLUGIN_SPEC" "${PLUGIN_INSTALL_FLAGS[@]}" >/tmp/openclaw-codex-plugin-install.log 2>&1 |
|
| Original file line number | Diff line number | Diff line change |
|---|
@@ -77,6 +77,7 @@ chmod 700 "$XDG_CACHE_HOME" "$NPM_CONFIG_CACHE" || true
|
77 | 77 | |
78 | 78 | openclaw_e2e_install_package /tmp/openclaw-install.log |
79 | 79 | command -v openclaw >/dev/null |
| 80 | +openclaw_e2e_enable_openclaw_cli_timeout |
80 | 81 | |
81 | 82 | openclaw_e2e_assert_dep_absent "@openclaw/codex" "$HOME/.openclaw" "$NPM_CONFIG_PREFIX" |
82 | 83 | openclaw_e2e_assert_dep_absent "@openai/codex" "$HOME/.openclaw" "$NPM_CONFIG_PREFIX" |
|
| Original file line number | Diff line number | Diff line change |
|---|
@@ -83,6 +83,7 @@ entry="$(openclaw_e2e_package_entrypoint "$package_root")"
|
83 | 83 | printf 'OPENCLAW_STATE_DIR=%s\n' "$OPENCLAW_STATE_DIR" |
84 | 84 | printf 'OPENCLAW_CONFIG_PATH=%s\n' "$OPENCLAW_CONFIG_PATH" |
85 | 85 | } >/tmp/openclaw-release-media-memory-env.log |
| 86 | +openclaw_e2e_enable_openclaw_cli_timeout |
86 | 87 | ( |
87 | 88 | cd "$package_root/dist/extensions/memory-core" |
88 | 89 | find . -type f | sed 's#^\./##' | sort |
|
| Original file line number | Diff line number | Diff line change |
|---|
@@ -35,6 +35,7 @@ trap 'status=$?; dump_debug_logs "$status"; exit "$status"' ERR
|
35 | 35 | |
36 | 36 | openclaw_e2e_install_package /tmp/openclaw-release-plugin-marketplace-install.log |
37 | 37 | command -v openclaw >/dev/null |
| 38 | +openclaw_e2e_enable_openclaw_cli_timeout |
38 | 39 | |
39 | 40 | openclaw onboard \ |
40 | 41 | --non-interactive \ |
|
| Original file line number | Diff line number | Diff line change |
|---|
@@ -83,6 +83,7 @@ openclaw_e2e_install_package /tmp/openclaw-release-typed-onboarding-install.log
|
83 | 83 | command -v openclaw >/dev/null |
84 | 84 | package_root="$(openclaw_e2e_package_root)" |
85 | 85 | entry="$(openclaw_e2e_package_entrypoint "$package_root")" |
| 86 | +openclaw_e2e_enable_openclaw_cli_timeout |
86 | 87 | |
87 | 88 | mock_pid="$(openclaw_e2e_start_mock_openai "$MOCK_PORT" /tmp/openclaw-release-typed-onboarding-openai.log)" |
88 | 89 | openclaw_e2e_wait_mock_openai "$MOCK_PORT" |
|
| Original file line number | Diff line number | Diff line change |
|---|
@@ -76,6 +76,7 @@ fi
|
76 | 76 | command -v openclaw >/dev/null |
77 | 77 | baseline_root="$(openclaw_e2e_package_root)" |
78 | 78 | baseline_entry="$(openclaw_e2e_package_entrypoint "$baseline_root")" |
| 79 | +openclaw_e2e_enable_openclaw_cli_timeout |
79 | 80 | |
80 | 81 | mock_pid="$(openclaw_e2e_start_mock_openai "$MOCK_PORT" /tmp/openclaw-release-upgrade-openai.log)" |
81 | 82 | openclaw_e2e_wait_mock_openai "$MOCK_PORT" |
@@ -93,7 +94,7 @@ for _ in $(seq 1 100); do
|
93 | 94 | done |
94 | 95 | openclaw_e2e_probe_http_status "http://127.0.0.1:$CLICKCLACK_PORT/health" 200 |
95 | 96 | |
96 | | -node "$baseline_entry" onboard \ |
| 97 | +openclaw_e2e_run_command node "$baseline_entry" onboard \ |
97 | 98 | --non-interactive \ |
98 | 99 | --accept-risk \ |
99 | 100 | --flow quickstart \ |
@@ -125,6 +126,7 @@ node scripts/e2e/lib/release-user-journey/assertions.mjs configure-clickclack "h
|
125 | 126 | openclaw_e2e_install_package /tmp/openclaw-release-upgrade-candidate-install.log "candidate OpenClaw package" |
126 | 127 | package_root="$(openclaw_e2e_package_root)" |
127 | 128 | entry="$(openclaw_e2e_package_entrypoint "$package_root")" |
| 129 | +openclaw_e2e_enable_openclaw_cli_timeout |
128 | 130 | node scripts/e2e/lib/release-scenarios/assertions.mjs assert-package-version "$package_root" "$candidate_version" candidate |
129 | 131 | |
130 | 132 | openclaw agent --local \ |
|
| Original file line number | Diff line number | Diff line change |
|---|
@@ -116,6 +116,7 @@ openclaw_e2e_install_package /tmp/openclaw-release-user-journey-install.log
|
116 | 116 | command -v openclaw >/dev/null |
117 | 117 | package_root="$(openclaw_e2e_package_root)" |
118 | 118 | entry="$(openclaw_e2e_package_entrypoint "$package_root")" |
| 119 | +openclaw_e2e_enable_openclaw_cli_timeout |
119 | 120 | |
120 | 121 | mock_pid="$(openclaw_e2e_start_mock_openai "$MOCK_PORT" /tmp/openclaw-release-user-journey-openai.log)" |
121 | 122 | openclaw_e2e_wait_mock_openai "$MOCK_PORT" |
|
| Original file line number | Diff line number | Diff line change |
|---|
@@ -129,6 +129,7 @@ chmod 700 "$XDG_CACHE_HOME" "$NPM_CONFIG_CACHE" || true
|
129 | 129 | |
130 | 130 | openclaw_e2e_install_package /tmp/openclaw-install.log |
131 | 131 | command -v openclaw >/dev/null |
| 132 | +openclaw_e2e_enable_openclaw_cli_timeout |
132 | 133 | |
133 | 134 | fixture_dir="$(mktemp -d /tmp/openclaw-live-plugin-tool.XXXXXX)" |
134 | 135 | plugin_dir="$fixture_dir/package" |
|
| Original file line number | Diff line number | Diff line change |
|---|
@@ -130,6 +130,7 @@ trap 'status=$?; dump_debug_logs "$status"; exit "$status"' ERR
|
130 | 130 | openclaw_e2e_install_package /tmp/openclaw-install.log |
131 | 131 | |
132 | 132 | command -v openclaw >/dev/null |
| 133 | +openclaw_e2e_enable_openclaw_cli_timeout |
133 | 134 | package_root="$(openclaw_e2e_package_root)" |
134 | 135 | if [ -d "$package_root/dist/extensions/$CHANNEL" ]; then |
135 | 136 | CHANNEL_PACKAGE_MODE="bundled" |
|
| Original file line number | Diff line number | Diff line change |
|---|
@@ -100,6 +100,9 @@ docker_e2e_package_mount_args() {
|
100 | 100 | if [ -n "${OPENCLAW_E2E_NPM_INSTALL_TIMEOUT:-}" ]; then |
101 | 101 | DOCKER_E2E_PACKAGE_ARGS+=(-e "OPENCLAW_E2E_NPM_INSTALL_TIMEOUT=$OPENCLAW_E2E_NPM_INSTALL_TIMEOUT") |
102 | 102 | fi |
| 103 | +if [ -n "${OPENCLAW_E2E_COMMAND_TIMEOUT:-}" ]; then |
| 104 | + DOCKER_E2E_PACKAGE_ARGS+=(-e "OPENCLAW_E2E_COMMAND_TIMEOUT=$OPENCLAW_E2E_COMMAND_TIMEOUT") |
| 105 | +fi |
103 | 106 | } |
104 | 107 | |
105 | 108 | docker_e2e_cleanup_package_tgz() { |
|
此内容由惯性聚合(RSS阅读器)自动聚合整理,仅供阅读参考。 原文来自 — 版权归原作者所有。