From 5ab5b7534837586397d3fc0ebb9481163f97aff4 Mon Sep 17 00:00:00 2001 From: Peter Steinberger Date: Sun, 26 Apr 2026 09:42:12 +0100 Subject: [PATCH] fix: update Docker plugin registry smokes --- scripts/e2e/config-reload-source-docker.sh | 17 ++-------- scripts/e2e/plugin-update-unchanged-docker.sh | 34 +++++++++++-------- 2 files changed, 23 insertions(+), 28 deletions(-) diff --git a/scripts/e2e/config-reload-source-docker.sh b/scripts/e2e/config-reload-source-docker.sh index fefdf543481..9421c72edd3 100755 --- a/scripts/e2e/config-reload-source-docker.sh +++ b/scripts/e2e/config-reload-source-docker.sh @@ -44,6 +44,7 @@ cat > \"\$HOME/.openclaw/openclaw.json\" <<'JSON' \"id\": \"GATEWAY_AUTH_TOKEN_REF\" } }, + \"channelHealthCheckMinutes\": 1, \"controlUi\": { \"enabled\": false }, @@ -51,17 +52,6 @@ cat > \"\$HOME/.openclaw/openclaw.json\" <<'JSON' \"mode\": \"hybrid\", \"debounceMs\": 0 } - }, - \"plugins\": { - \"installs\": { - \"lossless-claw\": { - \"source\": \"npm\", - \"spec\": \"@martian-engineering/lossless-claw\", - \"installPath\": \"/tmp/lossless-claw\", - \"installedAt\": \"2026-04-22T00:00:00.000Z\", - \"resolvedAt\": \"2026-04-22T00:00:00.000Z\" - } - } } } JSON @@ -110,7 +100,7 @@ entry=dist/index.mjs node \"\$entry\" gateway status --url ws://127.0.0.1:$PORT --token '$TOKEN' --require-rpc --timeout 30000 >/tmp/config-reload-status-before.log " -echo "Mutating plugin install timestamp metadata..." +echo "Mutating hot-reload gateway metadata..." docker exec "$CONTAINER_NAME" bash -lc "node --input-type=module - <<'NODE' import fs from 'node:fs'; import os from 'node:os'; @@ -118,8 +108,7 @@ import path from 'node:path'; const configPath = path.join(os.homedir(), '.openclaw', 'openclaw.json'); const config = JSON.parse(fs.readFileSync(configPath, 'utf8')); -config.plugins.installs['lossless-claw'].installedAt = '2026-04-22T00:01:00.000Z'; -config.plugins.installs['lossless-claw'].resolvedAt = '2026-04-22T00:01:00.000Z'; +config.gateway.channelHealthCheckMinutes = 2; fs.writeFileSync(configPath, JSON.stringify(config, null, 2) + '\n', 'utf8'); NODE" diff --git a/scripts/e2e/plugin-update-unchanged-docker.sh b/scripts/e2e/plugin-update-unchanged-docker.sh index dd586fee1c5..ab9f3308c1c 100755 --- a/scripts/e2e/plugin-update-unchanged-docker.sh +++ b/scripts/e2e/plugin-update-unchanged-docker.sh @@ -36,20 +36,26 @@ mkdir -p \"\$HOME/.openclaw/plugins\" cat > \"\$HOME/.openclaw/plugins/installs.json\" <<'JSON' { \"version\": 1, - \"warning\": \"DO NOT EDIT. This file is generated by OpenClaw plugin install/update/uninstall commands. Use `openclaw plugins install/update/uninstall` instead.\", - \"updatedAtMs\": 1777118400000, - \"records\": { - \"lossless-claw\": { - \"source\": \"npm\", - \"spec\": \"@example/lossless-claw@0.9.0\", - \"installPath\": \"~/.openclaw/extensions/lossless-claw\", - \"resolvedName\": \"@example/lossless-claw\", - \"resolvedVersion\": \"0.9.0\", - \"resolvedSpec\": \"@example/lossless-claw@0.9.0\", - \"integrity\": \"sha512-same\", - \"shasum\": \"same\" - } - } + \"warning\": \"DO NOT EDIT. This file is generated by OpenClaw plugin registry commands.\", + \"hostContractVersion\": \"docker-e2e\", + \"compatRegistryVersion\": \"docker-e2e\", + \"migrationVersion\": 1, + \"policyHash\": \"docker-e2e\", + \"generatedAtMs\": 1777118400000, + \"installRecords\": { + \"lossless-claw\": { + \"source\": \"npm\", + \"spec\": \"@example/lossless-claw@0.9.0\", + \"installPath\": \"~/.openclaw/extensions/lossless-claw\", + \"resolvedName\": \"@example/lossless-claw\", + \"resolvedVersion\": \"0.9.0\", + \"resolvedSpec\": \"@example/lossless-claw@0.9.0\", + \"integrity\": \"sha512-same\", + \"shasum\": \"same\" + } + }, + \"plugins\": [], + \"diagnostics\": [] } JSON