test: harden Docker release smoke probes · openclaw/openclaw@26546df
steipete
·
2026-04-29
·
via Recent Commits to openclaw:main
| Original file line number | Diff line number | Diff line change |
|---|
@@ -133,7 +133,7 @@ async function runCronCleanupScenario(params: {
|
133 | 133 | message: "Use available context and then stop.", |
134 | 134 | timeoutSeconds: 90, |
135 | 135 | lightContext: true, |
136 | | -toolsAllow: ["bundle-mcp"], |
| 136 | +toolsAllow: ["cronCleanupProbe__cleanup_probe"], |
137 | 137 | }, |
138 | 138 | delivery: { mode: "none" }, |
139 | 139 | }); |
|
| Original file line number | Diff line number | Diff line change |
|---|
@@ -8,7 +8,7 @@ run_update_scenario() {
|
8 | 8 | state_script_b64="$(docker_e2e_test_state_shell_b64 bundled-channel-update empty)" |
9 | 9 | |
10 | 10 | echo "Running bundled channel runtime deps Docker update E2E..." |
11 | | -run_logged_print bundled-channel-update timeout "$DOCKER_UPDATE_RUN_TIMEOUT" docker run --rm \ |
| 11 | +run_logged_print_heartbeat bundled-channel-update 30 timeout "$DOCKER_UPDATE_RUN_TIMEOUT" docker run --rm \ |
12 | 12 | -e COREPACK_ENABLE_DOWNLOAD_PROMPT=0 \ |
13 | 13 | -e OPENCLAW_BUNDLED_CHANNEL_UPDATE_BASELINE_VERSION="$UPDATE_BASELINE_VERSION" \ |
14 | 14 | -e "OPENCLAW_BUNDLED_CHANNEL_UPDATE_TARGETS=${OPENCLAW_BUNDLED_CHANNEL_UPDATE_TARGETS:-telegram,discord,slack,feishu,memory-lancedb,acpx}" \ |
|
| Original file line number | Diff line number | Diff line change |
|---|
@@ -31,6 +31,34 @@ run_logged_print() {
|
31 | 31 | rm -f "$log_file" |
32 | 32 | } |
33 | 33 | |
| 34 | +run_logged_print_heartbeat() { |
| 35 | +local label="$1" |
| 36 | +local interval_seconds="$2" |
| 37 | +shift 2 |
| 38 | +local log_file |
| 39 | + log_file="$(docker_e2e_run_log "$label")" |
| 40 | +"$@" >"$log_file" 2>&1 & |
| 41 | +local command_pid=$! |
| 42 | +local started_at |
| 43 | + started_at="$(date +%s)" |
| 44 | +local status=0 |
| 45 | +while kill -0 "$command_pid" 2>/dev/null; do |
| 46 | + sleep "$interval_seconds" |
| 47 | +if kill -0 "$command_pid" 2>/dev/null; then |
| 48 | +local now |
| 49 | + now="$(date +%s)" |
| 50 | +echo "still running $label ($((now - started_at))s elapsed)" |
| 51 | +fi |
| 52 | +done |
| 53 | +set +e |
| 54 | +wait "$command_pid" |
| 55 | + status=$? |
| 56 | +set -e |
| 57 | + docker_e2e_print_log "$log_file" |
| 58 | + rm -f "$log_file" |
| 59 | +return "$status" |
| 60 | +} |
| 61 | + |
34 | 62 | docker_e2e_run_log() { |
35 | 63 | local label="$1" |
36 | 64 | local tmp_dir="${TMPDIR:-/tmp}" |
|
此内容由惯性聚合(RSS阅读器)自动聚合整理,仅供阅读参考。 原文来自 — 版权归原作者所有。