
























@@ -40,8 +40,6 @@ CURRENT_PHASE="setup"
4040FAILURE_PHASE=""
4141FAILURE_MESSAGE=""
4242gateway_pid=""
43-clawhub_fixture_pid=""
44-configured_plugin_installs_clawhub_fixture_owned=""
4543baseline_spec=""
4644baseline_version=""
4745baseline_version_expected="0"
@@ -193,10 +191,6 @@ NODE
193191}
194192195193cleanup() {
196-if [ -n "${clawhub_fixture_pid:-}" ]; then
197-kill "$clawhub_fixture_pid" 2>/dev/null || true
198-wait "$clawhub_fixture_pid" 2>/dev/null || true
199-fi
200194 openclaw_e2e_terminate_gateways "${gateway_pid:-}"
201195}
202196@@ -287,61 +281,6 @@ configured_plugin_installs_enabled() {
287281 [ "$SCENARIO" = "configured-plugin-installs" ]
288282}
289283290-start_configured_plugin_installs_clawhub_fixture() {
291- configured_plugin_installs_enabled || return 0
292- configured_plugin_installs_clawhub_fixture_owned=""
293-if [ -n "${OPENCLAW_CLAWHUB_URL:-}" ] || [ -n "${CLAWHUB_URL:-}" ]; then
294-return 0
295-fi
296-297-local port_file="$ARTIFACT_ROOT/clawhub-not-found.port"
298-local requests_file="$ARTIFACT_ROOT/clawhub-not-found-requests.jsonl"
299- rm -f "$port_file" "$requests_file"
300- node - "$port_file" "$requests_file" <<'NODE' &
301-const fs = require("node:fs");
302-const http = require("node:http");
303-const portFile = process.argv[2];
304-const requestsFile = process.argv[3];
305-const server = http.createServer((request, response) => {
306- fs.appendFileSync(
307- requestsFile,
308- `${JSON.stringify({ method: request.method, url: request.url, at: new Date().toISOString() })}\n`,
309- );
310- response.writeHead(404, { "content-type": "application/json" });
311- response.end('{"error":"fixture package not found"}\n');
312-});
313-server.listen(0, "127.0.0.1", () => {
314- fs.writeFileSync(portFile, String(server.address().port));
315-});
316-process.on("SIGTERM", () => server.close(() => process.exit(0)));
317-process.on("SIGINT", () => server.close(() => process.exit(0)));
318-NODE
319- clawhub_fixture_pid="$!"
320-for _ in $(seq 1 100); do
321-if [ -s "$port_file" ]; then
322-export OPENCLAW_CLAWHUB_URL="http://127.0.0.1:$(cat "$port_file")"
323- configured_plugin_installs_clawhub_fixture_owned="1"
324-echo "Configured plugin install scenario using ClawHub 404 fixture: $OPENCLAW_CLAWHUB_URL"
325-return 0
326-fi
327- sleep 0.1
328-done
329-echo "timed out starting ClawHub 404 fixture" >&2
330-return 1
331-}
332-333-assert_configured_plugin_installs_clawhub_attempted() {
334- configured_plugin_installs_enabled || return 0
335-if [ "${configured_plugin_installs_clawhub_fixture_owned:-}" != "1" ]; then
336-return 0
337-fi
338-local requests_file="$ARTIFACT_ROOT/clawhub-not-found-requests.jsonl"
339-# The install catalog may prefer npm; assertions.mjs validates the installed source.
340-if grep -q '/api/v1/packages/%40openclaw%2Fmatrix' "$requests_file" 2>/dev/null; then
341-echo "configured plugin install scenario attempted ClawHub for @openclaw/matrix"
342-fi
343-}
344-345284legacy_plugin_dependency_probe_paths() {
346285local plugin="$1"
347286local plugin_dir
@@ -757,11 +696,9 @@ phase assert-legacy-plugin-dependency-debris assert_legacy_plugin_dependency_deb
757696phase assert-baseline assert_baseline_state
758697phase seed-legacy-runtime-deps-symlink seed_legacy_runtime_deps_symlink
759698phase resolve-candidate resolve_candidate_version
760-phase configured-plugin-installs-clawhub-fixture start_configured_plugin_installs_clawhub_fixture
761699phase update-candidate update_candidate
762700phase assert-legacy-plugin-dependency-debris-before-doctor assert_legacy_plugin_dependency_debris_before_doctor
763701phase doctor run_doctor
764-phase configured-plugin-installs-clawhub-attempted assert_configured_plugin_installs_clawhub_attempted
765702phase assert-legacy-plugin-dependency-debris-cleaned assert_legacy_plugin_dependency_debris_cleaned
766703phase assert-legacy-runtime-deps-symlink-repaired assert_legacy_runtime_deps_symlink_repaired
767704phase validate-post-doctor-config validate_post_doctor_config
此内容由惯性聚合(RSS阅读器)自动聚合整理,仅供阅读参考。 原文来自 — 版权归原作者所有。