



















@@ -7,6 +7,7 @@ set -euo pipefail
77ROOT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")/../.." && pwd)"
88source "$ROOT_DIR/scripts/lib/docker-e2e-image.sh"
99source "$ROOT_DIR/scripts/lib/docker-e2e-package.sh"
10+source "$ROOT_DIR/scripts/e2e/lib/bundled-channel-runtime-deps-runner.sh"
10111112IMAGE_NAME="$(docker_e2e_resolve_image "openclaw-bundled-channel-deps-e2e" OPENCLAW_BUNDLED_CHANNEL_DEPS_E2E_IMAGE)"
1213UPDATE_BASELINE_VERSION="${OPENCLAW_BUNDLED_CHANNEL_UPDATE_BASELINE_VERSION:-2026.4.20}"
@@ -43,7 +44,7 @@ run_channel_scenario() {
4344local channel="$1"
4445local dep_sentinel="$2"
4546local run_log
46- run_log="$(mktemp "${TMPDIR:-/tmp}/openclaw-bundled-channel-deps-$channel.XXXXXX")"
47+ run_log="$(docker_e2e_run_log "bundled-channel-deps-$channel")"
47484849echo "Running bundled $channel runtime deps Docker E2E..."
4950if ! timeout "$DOCKER_RUN_TIMEOUT" docker run --rm \
@@ -446,18 +447,18 @@ stop_gateway
446447echo "bundled $CHANNEL runtime deps Docker E2E passed"
447448EOF
448449then
449-cat "$run_log"
450+docker_e2e_print_log "$run_log"
450451 rm -f "$run_log"
451452exit 1
452453fi
453454454-cat "$run_log"
455+docker_e2e_print_log "$run_log"
455456 rm -f "$run_log"
456457}
457458458459run_root_owned_global_scenario() {
459460local run_log
460- run_log="$(mktemp "${TMPDIR:-/tmp}/openclaw-bundled-channel-root-owned.XXXXXX")"
461+ run_log="$(docker_e2e_run_log bundled-channel-root-owned)"
461462462463echo "Running bundled channel root-owned global install Docker E2E..."
463464if ! timeout "$DOCKER_RUN_TIMEOUT" docker run --rm --user root \
@@ -623,18 +624,18 @@ fi
623624echo "root-owned global install Docker E2E passed"
624625EOF
625626then
626-cat "$run_log"
627+docker_e2e_print_log "$run_log"
627628 rm -f "$run_log"
628629exit 1
629630fi
630631631-cat "$run_log"
632+docker_e2e_print_log "$run_log"
632633 rm -f "$run_log"
633634}
634635635636run_setup_entry_scenario() {
636637local run_log
637- run_log="$(mktemp "${TMPDIR:-/tmp}/openclaw-bundled-channel-setup-entry.XXXXXX")"
638+ run_log="$(docker_e2e_run_log bundled-channel-setup-entry)"
638639639640echo "Running bundled channel setup-entry runtime deps Docker E2E..."
640641if ! timeout "$DOCKER_RUN_TIMEOUT" docker run --rm \
@@ -880,18 +881,18 @@ done
880881echo "bundled channel setup-entry runtime deps Docker E2E passed"
881882EOF
882883then
883-cat "$run_log"
884+docker_e2e_print_log "$run_log"
884885 rm -f "$run_log"
885886exit 1
886887fi
887888888-cat "$run_log"
889+docker_e2e_print_log "$run_log"
889890 rm -f "$run_log"
890891}
891892892893run_disabled_config_scenario() {
893894local run_log
894- run_log="$(mktemp "${TMPDIR:-/tmp}/openclaw-bundled-channel-disabled-config.XXXXXX")"
895+ run_log="$(docker_e2e_run_log bundled-channel-disabled-config)"
895896896897echo "Running bundled channel disabled-config runtime deps Docker E2E..."
897898if ! timeout "$DOCKER_RUN_TIMEOUT" docker run --rm \
@@ -1045,18 +1046,18 @@ fi
10451046echo "bundled channel disabled-config runtime deps Docker E2E passed"
10461047EOF
10471048then
1048-cat "$run_log"
1049+docker_e2e_print_log "$run_log"
10491050 rm -f "$run_log"
10501051exit 1
10511052fi
105210531053-cat "$run_log"
1054+docker_e2e_print_log "$run_log"
10541055 rm -f "$run_log"
10551056}
1056105710571058run_update_scenario() {
10581059local run_log
1059- run_log="$(mktemp "${TMPDIR:-/tmp}/openclaw-bundled-channel-update.XXXXXX")"
1060+ run_log="$(docker_e2e_run_log bundled-channel-update)"
1060106110611062echo "Running bundled channel runtime deps Docker update E2E..."
10621063if ! timeout "$DOCKER_RUN_TIMEOUT" docker run --rm \
@@ -1479,18 +1480,18 @@ fi
14791480echo "bundled channel runtime deps Docker update E2E passed"
14801481EOF
14811482then
1482-cat "$run_log"
1483+docker_e2e_print_log "$run_log"
14831484 rm -f "$run_log"
14841485exit 1
14851486fi
148614871487-cat "$run_log"
1488+docker_e2e_print_log "$run_log"
14881489 rm -f "$run_log"
14891490}
1490149114911492run_load_failure_scenario() {
14921493local run_log
1493- run_log="$(mktemp "${TMPDIR:-/tmp}/openclaw-bundled-channel-load-failure.XXXXXX")"
1494+ run_log="$(docker_e2e_run_log bundled-channel-load-failure)"
1494149514951496echo "Running bundled channel load-failure isolation Docker E2E..."
14961497if ! timeout "$DOCKER_RUN_TIMEOUT" docker run --rm \
@@ -1634,45 +1635,13 @@ NODE
16341635echo "bundled channel load-failure isolation Docker E2E passed"
16351636EOF
16361637then
1637-cat "$run_log"
1638+docker_e2e_print_log "$run_log"
16381639 rm -f "$run_log"
16391640exit 1
16401641fi
164116421642-cat "$run_log"
1643+docker_e2e_print_log "$run_log"
16431644 rm -f "$run_log"
16441645}
164516461646-if [ "$RUN_CHANNEL_SCENARIOS" != "0" ]; then
1647- IFS=',' read -r -a CHANNEL_SCENARIOS <<<"${OPENCLAW_BUNDLED_CHANNELS:-${CHANNEL_ONLY:-telegram,discord,slack,feishu,memory-lancedb}}"
1648-for channel_scenario in "${CHANNEL_SCENARIOS[@]}"; do
1649- channel_scenario="${channel_scenario//[[:space:]]/}"
1650- [ -n "$channel_scenario" ] || continue
1651-case "$channel_scenario" in
1652- telegram) run_channel_scenario telegram grammy ;;
1653- discord) run_channel_scenario discord discord-api-types ;;
1654- slack) run_channel_scenario slack @slack/web-api ;;
1655- feishu) run_channel_scenario feishu @larksuiteoapi/node-sdk ;;
1656- memory-lancedb) run_channel_scenario memory-lancedb @lancedb/lancedb ;;
1657-*)
1658-echo "Unsupported OPENCLAW_BUNDLED_CHANNELS entry: $channel_scenario" >&2
1659-exit 1
1660- ;;
1661-esac
1662-done
1663-fi
1664-if [ "$RUN_UPDATE_SCENARIO" != "0" ]; then
1665- run_update_scenario
1666-fi
1667-if [ "$RUN_ROOT_OWNED_SCENARIO" != "0" ]; then
1668- run_root_owned_global_scenario
1669-fi
1670-if [ "$RUN_SETUP_ENTRY_SCENARIO" != "0" ]; then
1671- run_setup_entry_scenario
1672-fi
1673-if [ "$RUN_DISABLED_CONFIG_SCENARIO" != "0" ]; then
1674- run_disabled_config_scenario
1675-fi
1676-if [ "$RUN_LOAD_FAILURE_SCENARIO" != "0" ]; then
1677- run_load_failure_scenario
1678-fi
1647+run_bundled_channel_runtime_dep_scenarios
此内容由惯性聚合(RSS阅读器)自动聚合整理,仅供阅读参考。 原文来自 — 版权归原作者所有。