test(plugin): bound plugin update package smoke · openclaw/openclaw@6196034
vincentkoc
·
2026-04-29
·
via Recent Commits to openclaw:main
| Original file line number | Diff line number | Diff line change |
|---|
@@ -138,6 +138,7 @@ before_config_hash=\"\"
|
138 | 138 | if [ \"\$OPENCLAW_PACKAGE_ACCEPTANCE_LEGACY_COMPAT\" != \"1\" ]; then |
139 | 139 | before_config_hash=\$(sha256sum \"\$OPENCLAW_CONFIG_PATH\" | awk '{print \$1}') |
140 | 140 | fi |
| 141 | +plugin_update_timeout_seconds=\"\${OPENCLAW_PLUGIN_UPDATE_TIMEOUT_SECONDS:-180}\" |
141 | 142 | |
142 | 143 | node --input-type=module > /tmp/plugin-update-before.json <<'NODE' |
143 | 144 | import fs from \"node:fs\"; |
@@ -171,7 +172,18 @@ node --input-type=module > /tmp/plugin-update-before.json <<'NODE'
|
171 | 172 | process.stdout.write(JSON.stringify(snapshot, null, 2)); |
172 | 173 | NODE |
173 | 174 | |
174 | | -node \"\$entry\" plugins update @example/lossless-claw > /tmp/plugin-update-output.log 2>&1 |
| 175 | +set +e |
| 176 | +timeout \"\${plugin_update_timeout_seconds}s\" node \"\$entry\" plugins update @example/lossless-claw > /tmp/plugin-update-output.log 2>&1 |
| 177 | +plugin_update_status=\$? |
| 178 | +set -e |
| 179 | +if [ \"\$plugin_update_status\" -ne 0 ]; then |
| 180 | + echo \"Plugin update command failed or timed out after \${plugin_update_timeout_seconds}s (status \${plugin_update_status})\" |
| 181 | + echo \"--- plugin update output ---\" |
| 182 | + cat /tmp/plugin-update-output.log || true |
| 183 | + echo \"--- local registry output ---\" |
| 184 | + cat /tmp/openclaw-e2e-registry.log || true |
| 185 | + exit \"\$plugin_update_status\" |
| 186 | +fi |
175 | 187 | |
176 | 188 | if [ -n \"\$before_config_hash\" ]; then |
177 | 189 | after_config_hash=\$(sha256sum \"\$OPENCLAW_CONFIG_PATH\" | awk '{print \$1}') |
|
此内容由惯性聚合(RSS阅读器)自动聚合整理,仅供阅读参考。 原文来自 — 版权归原作者所有。