From 5865197ec19a23f20a577dc96211545ebf041a2b Mon Sep 17 00:00:00 2001 From: Peter Steinberger Date: Sat, 25 Apr 2026 02:48:01 +0100 Subject: [PATCH] test: relax bundled channel Docker readiness --- scripts/e2e/bundled-channel-runtime-deps-docker.sh | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/scripts/e2e/bundled-channel-runtime-deps-docker.sh b/scripts/e2e/bundled-channel-runtime-deps-docker.sh index db71faededd..95b59be1ff0 100644 --- a/scripts/e2e/bundled-channel-runtime-deps-docker.sh +++ b/scripts/e2e/bundled-channel-runtime-deps-docker.sh @@ -287,7 +287,8 @@ start_gateway() { fi gateway_pid="$!" - for _ in $(seq 1 240); do + # Cold bundled dependency staging can exceed 60s under 10-way Docker aggregate load. + for _ in $(seq 1 1200); do if grep -Eq "listening on ws://|\\[gateway\\] ready \\(" "$log_file"; then return 0 fi @@ -376,7 +377,7 @@ assert_installed_once() { local channel="$2" local dep_path="$3" local count - count="$(grep -c "\\[plugins\\] $channel installed bundled runtime deps:" "$log_file" || true)" + count="$(grep -Ec "\\[plugins\\] $channel installed bundled runtime deps( in [0-9]+ms)?:" "$log_file" || true)" if [ "$count" -eq 1 ]; then return 0 fi @@ -391,7 +392,7 @@ assert_installed_once() { assert_not_installed() { local log_file="$1" local channel="$2" - if grep -q "\\[plugins\\] $channel installed bundled runtime deps:" "$log_file"; then + if grep -Eq "\\[plugins\\] $channel installed bundled runtime deps( in [0-9]+ms)?:" "$log_file"; then echo "expected no runtime deps reinstall for $channel" >&2 cat "$log_file" >&2 exit 1 @@ -572,7 +573,8 @@ start_gateway() { bash "$PORT" "$log_file" & gateway_pid="$!" - for _ in $(seq 1 240); do + # Cold bundled dependency staging can exceed 60s under 10-way Docker aggregate load. + for _ in $(seq 1 1200); do if grep -Eq "listening on ws://|\\[gateway\\] ready \\(" "$log_file"; then return 0 fi @@ -1042,7 +1044,7 @@ assert_dep_absent_everywhere telegram grammy "$root" assert_dep_absent_everywhere slack @slack/web-api "$root" assert_dep_absent_everywhere discord discord-api-types "$root" -if grep -Eq "(used by .*\\b(telegram|slack|discord)\\b|\\[plugins\\] (telegram|slack|discord) installed bundled runtime deps:)" /tmp/openclaw-disabled-config-doctor.log; then +if grep -Eq "(used by .*\\b(telegram|slack|discord)\\b|\\[plugins\\] (telegram|slack|discord) installed bundled runtime deps( in [0-9]+ms)?:)" /tmp/openclaw-disabled-config-doctor.log; then echo "doctor installed runtime deps for an explicitly disabled channel/plugin" >&2 cat /tmp/openclaw-disabled-config-doctor.log >&2 exit 1