Skip to content

Commit a641c0d

Browse files
committed
fix(channels): keep ownerless config visible but undeliverable
1 parent 482e6cb commit a641c0d

9 files changed

Lines changed: 824 additions & 44 deletions

File tree

‎scripts/e2e/lib/release-upgrade-user-journey/scenario.sh‎

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,7 @@ PLUGIN_CLI_AFTER_LOG="$LOG_DIR/plugin-cli-after.log"
3434
AGENT_LOG="$LOG_DIR/agent.log"
3535
STATUS_JSON="$LOG_DIR/status.json"
3636
STATUS_ERR="$LOG_DIR/status.err"
37+
CLICKCLACK_PLUGIN_INSTALL_LOG="$LOG_DIR/clickclack-plugin-install.log"
3738
CLICKCLACK_OUTBOUND_JSON="$LOG_DIR/clickclack-outbound.json"
3839
CLICKCLACK_OUTBOUND_ERR="$LOG_DIR/clickclack-outbound.err"
3940
CLICKCLACK_SERVER_LOG="$LOG_DIR/clickclack-server.log"
@@ -77,6 +78,7 @@ dump_debug_logs() {
7778
"$PLUGIN_CLI_AFTER_LOG" \
7879
"$AGENT_LOG" \
7980
"$STATUS_JSON" \
81+
"$CLICKCLACK_PLUGIN_INSTALL_LOG" \
8082
"$CLICKCLACK_OUTBOUND_JSON" \
8183
"$CLICKCLACK_SERVER_LOG" \
8284
"$GATEWAY_LOG" \
@@ -162,6 +164,10 @@ node scripts/e2e/lib/release-scenarios/assertions.mjs assert-agent-turn "$SUCCES
162164
openclaw release-upgrade ping >"$PLUGIN_CLI_AFTER_LOG" 2>&1
163165
node scripts/e2e/lib/release-scenarios/assertions.mjs assert-file-contains "$PLUGIN_CLI_AFTER_LOG" "release-upgrade-plugin:pong"
164166

167+
clickclack_plugin_dir="$(mktemp -d "$scenario_tmp/clickclack-plugin.XXXXXX")"
168+
node scripts/e2e/lib/release-user-journey/write-clickclack-plugin.mjs "$clickclack_plugin_dir"
169+
openclaw plugins install "$clickclack_plugin_dir" >"$CLICKCLACK_PLUGIN_INSTALL_LOG" 2>&1
170+
165171
openclaw channels status --json >"$STATUS_JSON" 2>"$STATUS_ERR"
166172
node scripts/e2e/lib/release-user-journey/assertions.mjs assert-channel-status clickclack "$STATUS_JSON"
167173
openclaw message send \

‎scripts/e2e/lib/release-user-journey/scenario.sh‎

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,7 @@ PLUGIN_A_UNINSTALL_LOG="$LOG_DIR/plugin-a-uninstall.log"
3535
PLUGIN_B_INSTALL_LOG="$LOG_DIR/plugin-b-install.log"
3636
PLUGIN_B_CLI_LOG="$LOG_DIR/plugin-b-cli.log"
3737
PLUGIN_B_AFTER_RESTART_JSON="$LOG_DIR/plugin-b-after-restart.json"
38+
CLICKCLACK_PLUGIN_INSTALL_LOG="$LOG_DIR/clickclack-plugin-install.log"
3839
CLICKCLACK_SERVER_LOG="$LOG_DIR/clickclack-server.log"
3940
CLICKCLACK_OUTBOUND_JSON="$LOG_DIR/clickclack-outbound.json"
4041
CLICKCLACK_OUTBOUND_ERR="$LOG_DIR/clickclack-outbound.err"
@@ -77,6 +78,7 @@ dump_debug_logs() {
7778
"$PLUGIN_A_UNINSTALL_LOG" \
7879
"$PLUGIN_B_INSTALL_LOG" \
7980
"$PLUGIN_B_CLI_LOG" \
81+
"$CLICKCLACK_PLUGIN_INSTALL_LOG" \
8082
"$CLICKCLACK_SERVER_LOG" \
8183
"$CLICKCLACK_OUTBOUND_JSON" \
8284
"$GATEWAY_1_LOG" \
@@ -215,6 +217,11 @@ openclaw plugins install "$plugin_b_dir" >"$PLUGIN_B_INSTALL_LOG" 2>&1
215217
openclaw journey-b ping >"$PLUGIN_B_CLI_LOG" 2>&1
216218
node scripts/e2e/lib/release-user-journey/assertions.mjs assert-file-contains "$PLUGIN_B_CLI_LOG" "journey-plugin-b:pong"
217219

220+
echo "Installing ClickClack fixture plugin..."
221+
clickclack_plugin_dir="$(mktemp -d "$scenario_tmp/clickclack-plugin.XXXXXX")"
222+
node scripts/e2e/lib/release-user-journey/write-clickclack-plugin.mjs "$clickclack_plugin_dir"
223+
openclaw plugins install "$clickclack_plugin_dir" >"$CLICKCLACK_PLUGIN_INSTALL_LOG" 2>&1
224+
218225
echo "Configuring ClickClack..."
219226
node scripts/e2e/lib/release-user-journey/assertions.mjs configure-clickclack "http://127.0.0.1:$CLICKCLACK_PORT"
220227
openclaw channels status --json >"$STATUS_JSON" 2>"$STATUS_ERR"

0 commit comments

Comments
 (0)