Skip to content
Merged
Show file tree
Hide file tree
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
25 changes: 21 additions & 4 deletions .github/workflows/e2e.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3223,10 +3223,23 @@ jobs:
run: bash .github/scripts/docker-auth-cleanup.sh

openshell-gateway-upgrade:
name: OpenShell gateway upgrade (${{ matrix.legacy.id }})
needs: generate-matrix
if: ${{ (github.event_name != 'workflow_dispatch' || (inputs.jobs == '' && inputs.targets == '')) || contains(format(',{0},', inputs.jobs), ',openshell-gateway-upgrade,') || contains(format(',{0},', inputs.targets), ',openshell-gateway-upgrade,') }}
runs-on: ubuntu-latest
timeout-minutes: 60
strategy:
fail-fast: false
matrix:
legacy:
- id: v0.0.36
nemoclaw_ref: v0.0.36
openshell_version: 0.0.36
openclaw_version: 2026.4.24
- id: v0.0.55
nemoclaw_ref: v0.0.55
openshell_version: 0.0.44
openclaw_version: 2026.5.22
env:
E2E_JOB: "1"
E2E_TARGET_ID: "openshell-gateway-upgrade"
Expand All @@ -3236,6 +3249,9 @@ jobs:
NEMOCLAW_NON_INTERACTIVE: "1"
NEMOCLAW_ACCEPT_THIRD_PARTY_SOFTWARE: "1"
NEMOCLAW_GATEWAY_UPGRADE_SURVIVOR_NAME: "e2e-gateway-upgrade-survivor"
NEMOCLAW_OLD_NEMOCLAW_REF: ${{ matrix.legacy.nemoclaw_ref }}
NEMOCLAW_OLD_OPENSHELL_VERSION: ${{ matrix.legacy.openshell_version }}
NEMOCLAW_OLD_OPENCLAW_VERSION: ${{ matrix.legacy.openclaw_version }}
OPENSHELL_GATEWAY: "nemoclaw"
steps:
- uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6.0.3
Expand All @@ -3248,10 +3264,9 @@ jobs:
uses: NVIDIA/NemoClaw/.github/actions/prepare-e2e@50281ee84c4a6fc759da95ea28fc0b7d9c378a28

- name: Run OpenShell gateway upgrade live Vitest test
# This
# preserves the legacy ubuntu-latest + Docker/OpenShell runner lane,
# old installer/current installer upgrade boundary, survivor sandbox
# restore checks, and hermetic macOS installer regressions.
# This preserves the legacy ubuntu-latest + Docker/OpenShell runner
# lane while covering both the original v0.0.36 fixture and the exact
# v0.0.55/OpenShell 0.0.44 source shape from upgrade regression #6114.
env:
GITHUB_TOKEN: ${{ github.token }}
run: |
Expand All @@ -3264,6 +3279,8 @@ jobs:
- name: Upload OpenShell gateway upgrade artifacts
if: always()
uses: NVIDIA/NemoClaw/.github/actions/upload-e2e-artifacts@7768e15eb90d3ee2d33432f481dfe8747e4f6d57
with:
name: e2e-openshell-gateway-upgrade-${{ matrix.legacy.id }}

- name: Clean up Docker auth
if: always()
Expand Down
20 changes: 15 additions & 5 deletions test/e2e/live/openshell-gateway-upgrade.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -154,17 +154,25 @@ import sys
path = Path(sys.argv[1])
version = sys.argv[2]
text = path.read_text(encoding="utf-8")
marker = "RUN set -eu; \\\n MIN_VER=$(grep -m 1 'min_openclaw_version'"
injection = (
"# E2E old-upgrade fixture: force the historical OpenClaw before the old Dockerfile's version gate.\n"
"RUN rm -rf /usr/local/lib/node_modules/openclaw /usr/local/bin/openclaw \\\n"
f" && npm install -g --no-audit --no-fund --no-progress \"openclaw@{version}\" \\\n"
" && openclaw --version\n\n"
)
if injection not in text:
if marker not in text:
raise SystemExit(f"{path}: old OpenClaw version gate not found")
text = text.replace(marker, injection + marker, 1)
arg_markers = [
line for line in text.splitlines(keepends=True)
if line.startswith("ARG OPENCLAW_VERSION=")
]
if len(arg_markers) == 1:
marker = arg_markers[0]
text = text.replace(marker, marker + "\n" + injection, 1)
else:
marker = "RUN set -eu; \\\n MIN_VER=$(grep -m 1 'min_openclaw_version'"
if marker not in text:
raise SystemExit(f"{path}: old OpenClaw version gate not found")
text = text.replace(marker, injection + marker, 1)
path.write_text(text, encoding="utf-8")
print(f"INFO: Forced OpenClaw {version} in old upgrade fixture Dockerfile", flush=True)
NEMOCLAW_OLD_DOCKERFILE_PIN_PY
Expand Down Expand Up @@ -673,7 +681,7 @@ runLinuxOpenShellGatewayUpgrade(
id: "openshell-gateway-upgrade",
runner: "vitest",
boundary: [
"real old install.sh fetched from v0.0.36",
`real old install.sh fetched from ${OLD_NEMOCLAW_REF}`,
"real Docker/OpenShell gateway and OpenClaw sandbox",
"exact-name confirmation for the known-managed legacy fixture",
"current scripts/install.sh gateway upgrade path",
Expand All @@ -682,6 +690,8 @@ runLinuxOpenShellGatewayUpgrade(
],
oldNemoclawRef: OLD_NEMOCLAW_REF,
oldOpenShellVersion: OLD_OPENSHELL_VERSION,
oldOpenClawVersion: OLD_OPENCLAW_VERSION,
oldSandboxBaseImageRef: OLD_SANDBOX_BASE_IMAGE_REF,
currentOpenShellVersion: CURRENT_OPENSHELL_VERSION,
survivorSandbox: SURVIVOR_SANDBOX,
});
Expand Down
Loading