test(e2e): repair release docker smoke fixtures

Co-authored-by: Vincent Koc <25068+vincentkoc@users.noreply.github.com>
Co-authored-by: jesse-merhi <79823012+jesse-merhi@users.noreply.github.com>
This commit is contained in:
joshavant
2026-05-28 18:57:19 -07:00
committed by Jesse Merhi
parent 209732535f
commit 941329b2e5
3 changed files with 4 additions and 1 deletions

View File

@@ -23,6 +23,7 @@ run_logged agents-delete-shared-workspace docker_e2e_docker_cmd run --rm \
-e OPENCLAW_SKIP_BROWSER_CONTROL_SERVER=1 \
-e OPENCLAW_SKIP_ACPX_RUNTIME=1 \
-e OPENCLAW_SKIP_ACPX_RUNTIME_PROBE=1 \
-e OPENCLAW_GATEWAY_TOKEN=agents-delete-shared-workspace-token \
-e "OPENCLAW_TEST_STATE_SCRIPT_B64=$OPENCLAW_TEST_STATE_SCRIPT_B64" \
"$IMAGE_NAME" \
-lc '

View File

@@ -19,6 +19,7 @@ function writeOpenWebUiWorkspace() {
function writeAgentsDeleteConfig() {
const stateDir = requireArg(process.env.OPENCLAW_STATE_DIR, "OPENCLAW_STATE_DIR");
const sharedWorkspace = requireArg(process.env.SHARED_WORKSPACE, "SHARED_WORKSPACE");
const gatewayToken = process.env.OPENCLAW_GATEWAY_TOKEN?.trim();
fs.mkdirSync(sharedWorkspace, { recursive: true });
writeJson(path.join(stateDir, "openclaw.json"), {
agents: {
@@ -27,6 +28,7 @@ function writeAgentsDeleteConfig() {
{ id: "ops", workspace: sharedWorkspace },
],
},
...(gatewayToken ? { gateway: { auth: { mode: "token", token: gatewayToken } } } : {}),
});
}

View File

@@ -59,7 +59,7 @@ if ! docker_e2e_run_with_harness \
-e "OPENCLAW_TEST_STATE_SCRIPT_B64=$OPENCLAW_TEST_STATE_SCRIPT_B64" \
"${DOCKER_E2E_PACKAGE_ARGS[@]}" \
-i "$IMAGE_NAME" bash -s >"$run_log" 2>&1 <<'EOF'; then
set -euo pipefail
set -Eeuo pipefail
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}"