File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -25,10 +25,35 @@ PROBE_ATTEMPT_TIMEOUT_MS="$(
2525PROBE_MAX_BODY_BYTES=" $(
2626 openclaw_e2e_read_positive_int_env OPENCLAW_UPGRADE_SURVIVOR_PROBE_MAX_BODY_BYTES 1048576
2727) "
28- LANE_ARTIFACT_SUFFIX=" ${OPENCLAW_DOCKER_ALL_LANE_NAME:- default} "
28+ ROOT_MANAGED_VPS=" ${OPENCLAW_UPGRADE_SURVIVOR_ROOT_MANAGED_VPS:- 0} "
29+
30+ resolve_lane_artifact_suffix () {
31+ if [ -n " ${OPENCLAW_DOCKER_ALL_LANE_NAME:- } " ]; then
32+ printf " %s" " $OPENCLAW_DOCKER_ALL_LANE_NAME "
33+ return
34+ fi
35+
36+ if [ " $ROOT_MANAGED_VPS " = " 1" ]; then
37+ printf " root-managed-vps-upgrade"
38+ elif [ " $UPDATE_RESTART_MODE " = " auto-auth" ]; then
39+ printf " update-restart-auth"
40+ elif [ " ${OPENCLAW_UPGRADE_SURVIVOR_PUBLISHED_BASELINE:- 0} " = " 1" ]; then
41+ printf " published-upgrade-survivor"
42+ else
43+ printf " upgrade-survivor"
44+ fi
45+
46+ if [ -n " ${BASELINE_SPEC// } " ]; then
47+ printf -- " -%s" " $BASELINE_SPEC "
48+ fi
49+ if [ " $SCENARIO " != " base" ]; then
50+ printf -- " -%s" " $SCENARIO "
51+ fi
52+ }
53+
54+ LANE_ARTIFACT_SUFFIX=" $( resolve_lane_artifact_suffix) "
2955LANE_ARTIFACT_SUFFIX=" ${LANE_ARTIFACT_SUFFIX// [^A-Za-z0-9_.-]/ _} "
3056ARTIFACT_DIR=" ${OPENCLAW_UPGRADE_SURVIVOR_ARTIFACT_DIR:- $ROOT_DIR / .artifacts/ upgrade-survivor/ $LANE_ARTIFACT_SUFFIX } "
31- ROOT_MANAGED_VPS=" ${OPENCLAW_UPGRADE_SURVIVOR_ROOT_MANAGED_VPS:- 0} "
3257DOCKER_RUN_USER_ARGS=()
3358PROBE_ENV_ARGS=(
3459 -e OPENCLAW_UPGRADE_SURVIVOR_PROBE_TIMEOUT_MS=" $PROBE_TIMEOUT_MS "
You can’t perform that action at this time.
0 commit comments