Some checks failed
ClawSweeper Dispatch / dispatch (push) Has been cancelled
CodeQL / Security High (actions) (push) Has been cancelled
CodeQL / Security High (channel-runtime-boundary) (push) Has been cancelled
CodeQL / Security High (core-auth-secrets) (push) Has been cancelled
CodeQL / Security High (mcp-process-tool-boundary) (push) Has been cancelled
CodeQL / Security High (network-ssrf-boundary) (push) Has been cancelled
CodeQL / Security High (plugin-trust-boundary) (push) Has been cancelled
CodeQL / Security High (process-exec-boundary) (push) Has been cancelled
Docs Sync Publish Repo / sync-publish-repo (push) Has been cancelled
Docs / docs (push) Has been cancelled
OpenClaw Stable Main Closeout / Resolve stable release closeout inputs (push) Has been cancelled
OpenClaw Stable Main Closeout / Verify stable main closeout (push) Has been cancelled
Workflow Sanity / no-tabs (push) Has been cancelled
Workflow Sanity / actionlint (push) Has been cancelled
Workflow Sanity / generated-doc-baselines (push) Has been cancelled
CI / runner-admission (push) Has been cancelled
CI / preflight (push) Has been cancelled
CI / security-fast (push) Has been cancelled
CI / pnpm-store-warmup (push) Has been cancelled
CI / build-artifacts (push) Has been cancelled
CI / native-i18n (push) Has been cancelled
CI / ${{ matrix.check_name }} (push) Has been cancelled
CI / ${{ matrix.checkName }} (push) Has been cancelled
CI / checks-node-compat-node22 (push) Has been cancelled
CI / check-bundled-channel-config-metadata (push) Has been cancelled
CI / check-dependencies (push) Has been cancelled
CI / check-guards (push) Has been cancelled
CI / check-lint (push) Has been cancelled
CI / check-prod-types (push) Has been cancelled
CI / check-shrinkwrap (push) Has been cancelled
CI / check-test-types (push) Has been cancelled
CI / check-additional-boundaries-a (push) Has been cancelled
CI / check-additional-boundaries-bcd (push) Has been cancelled
CI / check-additional-extension-bundled (push) Has been cancelled
CI / check-additional-extension-channels (push) Has been cancelled
CI / check-additional-extension-package-boundary (push) Has been cancelled
CI / check-additional-runtime-topology-architecture (push) Has been cancelled
CI / check-session-accessor-boundary (push) Has been cancelled
CI / check-session-transcript-reader-boundary (push) Has been cancelled
CI / check-docs (push) Has been cancelled
CI / skills-python (push) Has been cancelled
CI / macos-swift (push) Has been cancelled
CI / ios-build (push) Has been cancelled
CI / ci-timings-summary (push) Has been cancelled
Native App Locale Refresh / Refresh native fa (push) Has been cancelled
Native App Locale Refresh / Refresh native fr (push) Has been cancelled
Native App Locale Refresh / Refresh native hi (push) Has been cancelled
Native App Locale Refresh / Refresh native id (push) Has been cancelled
Native App Locale Refresh / Refresh native it (push) Has been cancelled
Native App Locale Refresh / Refresh native ja-JP (push) Has been cancelled
Control UI Locale Refresh / plan (push) Has been cancelled
Control UI Locale Refresh / Refresh ${{ matrix.locale }} (push) Has been cancelled
Control UI Locale Refresh / Commit control UI locale refresh (push) Has been cancelled
Live Media Runner Image / Build live media runner image (push) Has been cancelled
Native App Locale Refresh / Refresh native ar (push) Has been cancelled
Native App Locale Refresh / Refresh native de (push) Has been cancelled
Native App Locale Refresh / Refresh native es (push) Has been cancelled
Native App Locale Refresh / Refresh native ko (push) Has been cancelled
Native App Locale Refresh / Refresh native nl (push) Has been cancelled
Native App Locale Refresh / Refresh native pl (push) Has been cancelled
Native App Locale Refresh / Refresh native pt-BR (push) Has been cancelled
Native App Locale Refresh / Refresh native ru (push) Has been cancelled
Native App Locale Refresh / Refresh native sv (push) Has been cancelled
Native App Locale Refresh / Refresh native th (push) Has been cancelled
Native App Locale Refresh / Refresh native tr (push) Has been cancelled
Native App Locale Refresh / Refresh native uk (push) Has been cancelled
Native App Locale Refresh / Refresh native vi (push) Has been cancelled
Native App Locale Refresh / Refresh native zh-CN (push) Has been cancelled
Native App Locale Refresh / Refresh native zh-TW (push) Has been cancelled
Native App Locale Refresh / Commit native locale refresh (push) Has been cancelled
Plugin Init Scaffold Validation / Validate provider scaffold (push) Has been cancelled
Plugin NPM Release / preview_plugins_npm (push) Has been cancelled
Plugin NPM Release / Validate release publish approval (push) Has been cancelled
Plugin NPM Release / preview_plugin_pack (push) Has been cancelled
Plugin NPM Release / publish_plugins_npm (push) Has been cancelled
Sandbox Common Smoke / sandbox-common-smoke (push) Has been cancelled
Website Installer Sync / static (push) Has been cancelled
Website Installer Sync / linux-docker (push) Has been cancelled
Website Installer Sync / macos-installer (push) Has been cancelled
Website Installer Sync / windows-installer (push) Has been cancelled
Website Installer Sync / sync-website (push) Has been cancelled
Adolf is a fork/vendored clone of github.com/openclaw/openclaw (v2026.6.11), free to diverge. Tree copied sans upstream .git; upstream remote added for future syncs. Node pinned to 24 (.nvmrc); engines already require >=22.19. Preserves docs/ARCHITECTURE.md. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01LeqyaxJF2nbRXJtae2kNB2
171 lines
5.8 KiB
Bash
Executable File
171 lines
5.8 KiB
Bash
Executable File
#!/usr/bin/env bash
|
|
set -euo pipefail
|
|
trap "" PIPE
|
|
export TERM=xterm-256color
|
|
export NO_COLOR=1
|
|
|
|
source scripts/lib/openclaw-e2e-instance.sh
|
|
|
|
openclaw_e2e_eval_test_state_from_b64 "${OPENCLAW_TEST_STATE_SCRIPT_B64:?missing OPENCLAW_TEST_STATE_SCRIPT_B64}"
|
|
openclaw_e2e_install_trash_shim
|
|
|
|
export NPM_CONFIG_PREFIX="$HOME/.npm-global"
|
|
export PATH="$NPM_CONFIG_PREFIX/bin:$PATH"
|
|
export npm_config_loglevel=error
|
|
export npm_config_fund=false
|
|
export npm_config_audit=false
|
|
export OPENAI_API_KEY="sk-openclaw-release-media-memory"
|
|
export OPENCLAW_QA_ALLOW_LOCAL_IMAGE_PROVIDER=1
|
|
|
|
PORT="18789"
|
|
MOCK_PORT="44200"
|
|
SUCCESS_MARKER="OPENCLAW_E2E_OK_MEDIA_MEMORY"
|
|
MEMORY_MARKER="release-media-memory-saffron-$(date +%s)"
|
|
media_root="$(mktemp -d /tmp/openclaw-release-media-memory.XXXXXX)"
|
|
INSTALL_LOG="$media_root/install.log"
|
|
ONBOARD_LOG="$media_root/onboard.log"
|
|
ENV_LOG="$media_root/env.log"
|
|
CONFIG_JSON="$media_root/config.json"
|
|
PACKAGE_FILES_LOG="$media_root/package-files.log"
|
|
PLUGINS_JSON="$media_root/plugins.json"
|
|
PLUGINS_STDERR_LOG="$media_root/plugins.stderr.log"
|
|
MOCK_OPENAI_LOG="$media_root/openai.log"
|
|
MOCK_REQUEST_LOG="$media_root/openai-requests.jsonl"
|
|
DESCRIBE_JSON="$media_root/describe.json"
|
|
DESCRIBE_STDERR_LOG="$media_root/describe.stderr.log"
|
|
GENERATE_JSON="$media_root/generate.json"
|
|
GENERATE_STDERR_LOG="$media_root/generate.stderr.log"
|
|
INDEX_LOG="$media_root/index.log"
|
|
SEARCH_BEFORE_JSON="$media_root/search-before.json"
|
|
SEARCH_BEFORE_STDERR_LOG="$media_root/search-before.stderr.log"
|
|
SEARCH_AFTER_JSON="$media_root/search-after.json"
|
|
SEARCH_AFTER_STDERR_LOG="$media_root/search-after.stderr.log"
|
|
GATEWAY_1_LOG="$media_root/gateway-1.log"
|
|
GATEWAY_2_LOG="$media_root/gateway-2.log"
|
|
export SUCCESS_MARKER MOCK_REQUEST_LOG
|
|
|
|
mock_pid=""
|
|
gateway_pid=""
|
|
cleanup() {
|
|
openclaw_e2e_terminate_gateways "${gateway_pid:-}"
|
|
openclaw_e2e_stop_process "${mock_pid:-}"
|
|
if [ -n "${media_root:-}" ]; then
|
|
rm -rf "$media_root"
|
|
fi
|
|
}
|
|
trap cleanup EXIT
|
|
|
|
dump_debug_logs() {
|
|
local status="$1"
|
|
echo "release media memory failed with exit code $status" >&2
|
|
openclaw_e2e_dump_logs \
|
|
"$INSTALL_LOG" \
|
|
"$ONBOARD_LOG" \
|
|
"$ENV_LOG" \
|
|
"$CONFIG_JSON" \
|
|
"$PACKAGE_FILES_LOG" \
|
|
"$PLUGINS_JSON" \
|
|
"$PLUGINS_STDERR_LOG" \
|
|
"$MOCK_OPENAI_LOG" \
|
|
"$MOCK_REQUEST_LOG" \
|
|
"$DESCRIBE_JSON" \
|
|
"$DESCRIBE_STDERR_LOG" \
|
|
"$GENERATE_JSON" \
|
|
"$GENERATE_STDERR_LOG" \
|
|
"$INDEX_LOG" \
|
|
"$SEARCH_BEFORE_JSON" \
|
|
"$SEARCH_BEFORE_STDERR_LOG" \
|
|
"$SEARCH_AFTER_JSON" \
|
|
"$SEARCH_AFTER_STDERR_LOG" \
|
|
"$GATEWAY_1_LOG" \
|
|
"$GATEWAY_2_LOG"
|
|
}
|
|
trap 'status=$?; dump_debug_logs "$status"; exit "$status"' ERR
|
|
|
|
start_gateway() {
|
|
local log_path="$1"
|
|
gateway_pid="$(openclaw_e2e_start_gateway "$entry" "$PORT" "$log_path")"
|
|
openclaw_e2e_wait_gateway_ready "$gateway_pid" "$log_path" 300 "$PORT"
|
|
}
|
|
|
|
stop_gateway() {
|
|
openclaw_e2e_terminate_gateways "${gateway_pid:-}"
|
|
gateway_pid=""
|
|
}
|
|
|
|
openclaw_e2e_install_package "$INSTALL_LOG"
|
|
command -v openclaw >/dev/null
|
|
package_root="$(openclaw_e2e_package_root)"
|
|
entry="$(openclaw_e2e_package_entrypoint "$package_root")"
|
|
{
|
|
printf 'openclaw=%s\n' "$(command -v openclaw)"
|
|
printf 'package_root=%s\n' "$package_root"
|
|
printf 'entry=%s\n' "$entry"
|
|
printf 'HOME=%s\n' "$HOME"
|
|
printf 'OPENCLAW_HOME=%s\n' "$OPENCLAW_HOME"
|
|
printf 'OPENCLAW_STATE_DIR=%s\n' "$OPENCLAW_STATE_DIR"
|
|
printf 'OPENCLAW_CONFIG_PATH=%s\n' "$OPENCLAW_CONFIG_PATH"
|
|
} >"$ENV_LOG"
|
|
openclaw_e2e_enable_openclaw_cli_timeout
|
|
(
|
|
cd "$package_root/dist/extensions/memory-core"
|
|
find . -type f | sed 's#^\./##' | sort
|
|
) >"$PACKAGE_FILES_LOG"
|
|
|
|
mock_pid="$(openclaw_e2e_start_mock_openai "$MOCK_PORT" "$MOCK_OPENAI_LOG")"
|
|
openclaw_e2e_wait_mock_openai "$MOCK_PORT"
|
|
|
|
openclaw onboard \
|
|
--non-interactive \
|
|
--accept-risk \
|
|
--flow quickstart \
|
|
--mode local \
|
|
--auth-choice skip \
|
|
--gateway-port "$PORT" \
|
|
--gateway-bind loopback \
|
|
--skip-daemon \
|
|
--skip-ui \
|
|
--skip-channels \
|
|
--skip-skills \
|
|
--skip-health >"$ONBOARD_LOG" 2>&1
|
|
cp "$OPENCLAW_CONFIG_PATH" "$CONFIG_JSON"
|
|
openclaw plugins list --json >"$PLUGINS_JSON" 2>"$PLUGINS_STDERR_LOG"
|
|
node scripts/e2e/lib/release-scenarios/assertions.mjs assert-file-contains "$PLUGINS_JSON" memory-core
|
|
node scripts/e2e/lib/release-scenarios/assertions.mjs configure-mock-openai "$MOCK_PORT"
|
|
|
|
mkdir -p "$OPENCLAW_STATE_DIR/workspace/memory"
|
|
printf '%s' 'iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAQAAAC1HAwCAAAAC0lEQVR42mP8/x8AAwMCAO+yf7kAAAAASUVORK5CYII=' | base64 -d >"$media_root/input.png"
|
|
|
|
openclaw infer image describe \
|
|
--file "$media_root/input.png" \
|
|
--model openai/gpt-5.5 \
|
|
--prompt "Describe this image and return marker $SUCCESS_MARKER" \
|
|
--json >"$DESCRIBE_JSON" 2>"$DESCRIBE_STDERR_LOG"
|
|
node scripts/e2e/lib/release-scenarios/assertions.mjs assert-image-describe "$DESCRIBE_JSON" "$MOCK_REQUEST_LOG"
|
|
|
|
openclaw infer image generate \
|
|
--model openai/gpt-image-1 \
|
|
--prompt "Generate a tiny test image for $SUCCESS_MARKER" \
|
|
--output "$media_root/generated.png" \
|
|
--json >"$GENERATE_JSON" 2>"$GENERATE_STDERR_LOG"
|
|
node scripts/e2e/lib/release-scenarios/assertions.mjs assert-image-generate "$GENERATE_JSON" "$MOCK_REQUEST_LOG"
|
|
|
|
cat >"$OPENCLAW_STATE_DIR/workspace/MEMORY.md" <<EOF
|
|
# Long-term memory
|
|
|
|
- The release media memory marker is $MEMORY_MARKER.
|
|
EOF
|
|
|
|
openclaw memory index --force >"$INDEX_LOG" 2>&1
|
|
openclaw memory search "$MEMORY_MARKER" --json >"$SEARCH_BEFORE_JSON" 2>"$SEARCH_BEFORE_STDERR_LOG"
|
|
node scripts/e2e/lib/release-scenarios/assertions.mjs assert-memory-search "$SEARCH_BEFORE_JSON" "$MEMORY_MARKER"
|
|
|
|
start_gateway "$GATEWAY_1_LOG"
|
|
stop_gateway
|
|
start_gateway "$GATEWAY_2_LOG"
|
|
openclaw memory search "$MEMORY_MARKER" --json >"$SEARCH_AFTER_JSON" 2>"$SEARCH_AFTER_STDERR_LOG"
|
|
node scripts/e2e/lib/release-scenarios/assertions.mjs assert-memory-search "$SEARCH_AFTER_JSON" "$MEMORY_MARKER"
|
|
stop_gateway
|
|
|
|
echo "Release media memory scenario passed."
|