Skip to content

test(e2e): migrate test-openshell-gateway-upgrade.sh to vitest - #5609

Merged
jyaunches merged 10 commits into
mainfrom
e2e-migrate/test-openshell-gateway-upgrade-vitest
Jun 23, 2026
Merged

jyaunches merged 10 commits into
mainfrom
e2e-migrate/test-openshell-gateway-upgrade-vitest

Conversation

@jyaunches

@jyaunches jyaunches commented Jun 22, 2026 •

Copy link
Copy Markdown
Contributor

Summary

Migrate test-openshell-gateway-upgrade.sh with equivalent live Vitest coverage.

Related Issues

Refs #5098
Refs #3001

Assertion parity

ID Legacy assertion/check Replacement Vitest assertion Boundary preserved Status
A1 Old installer is fetched from v0.0.36, patched only as an old fixture, and source checkout matches the expected tag head. openshell-gateway-upgrade.test.ts downloads the old installer, patches it, then compares $HOME/.nemoclaw/source HEAD with git ls-remote refs/tags/v0.0.36. real old install.sh + GitHub ref fetch covered
A2 Old install pins OpenClaw 2026.4.24, rewrites sandbox base image/build args, and leaves OpenShell 0.0.36. Old docker wrapper log + old install log are asserted for the pinned OpenClaw version, and openshell --version must include 0.0.36. real Docker wrapper + old install/onboard covered
A3 A survivor OpenClaw claw is registered, Ready, has durable workspace marker state, and has a live in-sandbox agent before upgrade. Vitest waits for survivor Ready, asserts nemoclaw list, writes SURVIVOR_MARKER_PATH, starts /tmp/nemoclaw-e2e-agent, and probes /proc/$pid/cmdline/heartbeat via openshell sandbox exec. real OpenShell sandbox exec + /proc process probe covered
A4 Current installer must use the explicit experimental gateway-upgrade acceptance path, back up the old running claw, upgrade OpenShell to 0.0.44, and report gateway server version 0.0.44. Current install log must contain Accepted experimental OpenShell gateway upgrade and Pre-upgrade backup: 1 backed up, 0 failed, 0 skipped; openshell --version and openshell status assert 0.0.44. real current scripts/install.sh + gateway process/status covered
A5 After upgrade, survivor claw is Ready, durable workspace marker is unchanged, OpenClaw is installed/configured, registry still contains the sandbox, and nemoclaw list shows it. Post-upgrade assertions check Ready, marker equality, command -v openclaw, nonempty /sandbox/.openclaw/openclaw.json, registry JSON, and nemoclaw list. real restored sandbox + NemoClaw registry covered
A6 macOS arm64 with current OpenShell CLI but missing standalone openshell-gateway detects missing Docker-driver binaries and fetches openshell-gateway-aarch64-apple-darwin.tar.gz, not VM driver. Hermetic fake Darwin PATH runs scripts/install-openshell.sh; asserts nonzero exit, stdout contains missing Docker-driver binaries, curl log includes gateway Darwin asset and excludes VM driver asset. real installer script + fake Darwin PATH/curl covered
A7 macOS installer must not require/codesign openshell-driver-vm Hypervisor entitlement or reinstall an otherwise complete OpenShell install. Hermetic fake Darwin PATH with openshell, openshell-gateway, openshell-driver-vm, and fake codesign; asserts installer exits zero, no entitlements codesign, no reinstall message. real installer script + fake Darwin PATH/codesign covered
A8 macOS Docker sandbox builds keep VM rootfs compatibility disabled while preserving permission relaxations when compatibility is explicitly enabled. Static assertions check Dockerfile and Hermes Dockerfile NEMOCLAW_DARWIN_VM_COMPAT args/permission lines plus patch flow const darwinVmCompat = false. Dockerfile/source contract covered
A9 Cleanup removes survivor sandbox, gateway metadata, PID file, old Docker wrapper, and fake compatible endpoint. Vitest cleanup registry removes survivor sandbox/gateway/PID and closes fake OpenAI-compatible server; artifact cleanup is fixture-owned. real cleanup commands + fixture cleanup covered

All legacy assertions are covered or intentionally stronger in Vitest. No row is missing, partial, or candidate only.

Contract mapping

  • Legacy assertion family: OpenShell gateway upgrade of old working OpenClaw claw.
    • Replacement: test/e2e-scenario/live/openshell-gateway-upgrade.test.ts (A1-A5, A9)
    • Boundary preserved: real old/current installers, Docker/OpenShell gateway, sandbox exec, /proc, registry/state files.
  • Legacy assertion family: macOS OpenShell installer regressions.
    • Replacement: same Vitest file (A6-A8)
    • Boundary preserved: real scripts/install-openshell.sh under hermetic fake Darwin PATH.

Simplicity check

  • Test shape: simple live Vitest test with local helpers.
  • Original runner/lane: nightly-e2e.yaml job openshell-gateway-upgrade-e2e, runs-on: ubuntu-latest, 60 minute timeout, Docker/OpenShell, GITHUB_TOKEN, Docker Hub auth.
  • Replacement runner: same ubuntu-latest runner class in e2e-vitest-scenarios.yaml job openshell-gateway-upgrade-vitest.
  • New shared helpers: none.
  • New framework/registry/ledger: none.
  • Workflow changes: add dispatchable free-standing Vitest job; legacy shell deletion/workflow retirement deferred to Epic: Migrate legacy bash E2E into the Vitest E2E system #5098 Phase 11.
  • Selective dispatch: gh workflow run e2e-vitest-scenarios.yaml --repo NVIDIA/NemoClaw --ref e2e-migrate/test-openshell-gateway-upgrade-vitest -f jobs=openshell-gateway-upgrade-vitest -f pr_number=<PR>.

Pre-push parity gate

  • Legacy script: test/e2e/test-openshell-gateway-upgrade.sh
  • Assertion rows inventoried: 9
  • Covered/stronger rows: 9
  • Missing/partial/candidate-only rows: 0
  • Direct reference only rows: 0
  • Runner/resource boundary matched: yes — nightly-e2e openshell-gateway-upgrade-e2e ubuntu-latest/Docker/OpenShell lane

Verification

  • NEMOCLAW_RUN_E2E_SCENARIOS=1 npx vitest run --project e2e-scenarios-live test/e2e-scenario/live/openshell-gateway-upgrade.test.ts --silent=false --reporter=default
  • npx tsc --noEmit --allowImportingTsExtensions --moduleResolution bundler --module esnext --target es2022 --types node,vitest --skipLibCheck test/e2e-scenario/live/openshell-gateway-upgrade.test.ts
  • npx tsx -e "import { validateFreeStandingWorkflowInventory, evaluateE2eVitestWorkflowDispatchSelectors } from './tools/e2e-scenarios/workflow-boundary.mts'; const errors=validateFreeStandingWorkflowInventory(); console.log(JSON.stringify({errors, evalScenario:evaluateE2eVitestWorkflowDispatchSelectors({scenarios:'openshell-gateway-upgrade'}), evalJob:evaluateE2eVitestWorkflowDispatchSelectors({jobs:'openshell-gateway-upgrade-vitest'})}, null, 2)); if(errors.length) process.exit(1);"
  • npx vitest run --project e2e-vitest-support test/e2e-scenario/support-tests/e2e-scenarios-workflow.test.ts -t "dispatch selector|derives the free-standing inventory" --silent=false --reporter=default
  • git diff --check
  • PR: test(e2e): migrate test-openshell-gateway-upgrade.sh to vitest #5609
  • Same-runner selective run: https://github.com/NVIDIA/NemoClaw/actions/runs/27983114840 (in_progress)

Summary by CodeRabbit

  • Tests

    • Added a new live end-to-end Vitest scenario for the OpenShell gateway upgrade, validating the full upgrade flow, version consistency, and survivor sandbox persistence.
    • Expanded macOS installer-script coverage with failure-mode checks, entitlement behavior assertions, and VM root filesystem compatibility/contract verification.
  • CI/CD

    • Introduced a dedicated free-standing CI job for the gateway-upgrade scenario and included its results in PR reporting.
    • Updated scenario-to-job dispatch and inventory expectations to recognize the new job.

@coderabbitai

coderabbitai Bot commented Jun 22, 2026 •

Copy link
Copy Markdown
Contributor

Review Change Stack

Note

Reviews paused

It looks like this branch is under active development. To avoid overwhelming you with review comments due to an influx of new commits, CodeRabbit has automatically paused this review. You can configure this behavior by changing the reviews.auto_review.auto_pause_after_reviewed_commits setting.

Use the following commands to manage reviews:

  • @coderabbitai resume to resume automatic reviews.
  • @coderabbitai review to trigger a single review.

Use the checkboxes below for quick actions:

  • ▶️ Resume reviews
  • 🔍 Trigger review
📝 Walkthrough

Walkthrough

Adds a new openshell-gateway-upgrade-vitest free-standing Vitest E2E job to the CI workflow, implementing a 919-line live test that orchestrates a full gateway upgrade scenario (old install → survivor agent → current upgrade → post-upgrade invariants) plus three hermetic macOS probe scenarios. Updates workflow dispatch/inventory support tests accordingly.

Changes

OpenShell Gateway Upgrade E2E Scenario

Layer / File(s) Summary
Test constants, helpers, and Docker wrapper
test/e2e-scenario/live/openshell-gateway-upgrade.test.ts
Establishes top-level constants, environment builders, assertion helpers, shell execution utilities, the old-installer fixture patcher (patchOldInstallerFixture), and createOldDockerWrapper which intercepts Docker calls to rewrite base image refs and OpenClaw version build-args.
Old install, survivor agent, upgrade, and post-upgrade assertions
test/e2e-scenario/live/openshell-gateway-upgrade.test.ts
Implements survivor readiness/health probing, installOldNemoclawAndClaw (download + patch + run + validate), startSurvivorAgentInExistingClaw (marker file + nohup agent), installCurrentNemoclawUpgrade (run scripts/install.sh + version checks), and assertSurvivorSandboxAfterUpgrade (marker, registry, agent, nemoclaw list invariants).
macOS hermetic installer probe scenarios
test/e2e-scenario/live/openshell-gateway-upgrade.test.ts
Adds runMacInstallerProbe infrastructure and three hermetic macOS scenarios: missing gateway asset failure mode, entitlement-free codesign verification, and Docker sandbox NEMOCLAW_DARWIN_VM_COMPAT=0 assertions.
Main live test entry point
test/e2e-scenario/live/openshell-gateway-upgrade.test.ts
Defines the top-level Vitest test with Linux platform gate, scenario JSON metadata, cleanup hooks, fake OpenAI endpoint, and ordered execution of all upgrade flow phases.
CI workflow job and report-to-pr wiring
.github/workflows/e2e-vitest-scenarios.yaml
Adds the openshell-gateway-upgrade-vitest job (isolated Docker auth, login retry with anonymous fallback, Node build, test execution, artifact upload, cleanup) and extends report-to-pr needs.
Workflow dispatch and inventory support tests
test/e2e-scenario/support-tests/e2e-scenarios-workflow.test.ts
Extends dispatch-selector and free-standing inventory assertions to cover the openshell-gateway-upgrade → openshell-gateway-upgrade-vitest scenario/job mapping.

Sequence Diagram(s)

sequenceDiagram
  rect rgba(30, 100, 200, 0.5)
    Note over runOpenShellGatewayUpgrade: Old Install Phase
    runOpenShellGatewayUpgrade->>installOldNemoclawAndClaw: download old installer from NemoClaw release
    installOldNemoclawAndClaw->>patchOldInstallerFixture: inject legacy OpenClaw pin + Dockerfile gate
    installOldNemoclawAndClaw->>createOldDockerWrapper: create docker shim (rewrite pull/build-arg)
    installOldNemoclawAndClaw->>runInstallerPayload: run patched installer with docker shim env
    runInstallerPayload-->>installOldNemoclawAndClaw: old openshell version + nemoclaw list verified
  end
  rect rgba(30, 180, 80, 0.5)
    Note over runOpenShellGatewayUpgrade: Survivor Agent Phase
    runOpenShellGatewayUpgrade->>startSurvivorAgentInExistingClaw: write marker file + deploy agent via base64
    startSurvivorAgentInExistingClaw->>waitForSurvivorAgentReady: poll agent pid/heartbeat/cmdline
    waitForSurvivorAgentReady-->>runOpenShellGatewayUpgrade: agent pid confirmed
  end
  rect rgba(200, 80, 30, 0.5)
    Note over runOpenShellGatewayUpgrade: Upgrade Phase
    runOpenShellGatewayUpgrade->>installCurrentNemoclawUpgrade: run scripts/install.sh with upgrade env
    installCurrentNemoclawUpgrade->>runInstallerPayload: execute current installer
    runInstallerPayload-->>installCurrentNemoclawUpgrade: current openshell version verified
    runOpenShellGatewayUpgrade->>assertSurvivorSandboxAfterUpgrade: check marker, registry, agent, nemoclaw list
    assertSurvivorSandboxAfterUpgrade-->>runOpenShellGatewayUpgrade: all post-upgrade invariants pass
  end
Loading

Estimated code review effort

🎯 4 (Complex) | ⏱️ ~60 minutes

Possibly related issues

Possibly related PRs

  • NVIDIA/NemoClaw#5346: Both PRs extend the free-standing Vitest scenario/job wiring by updating .github/workflows/e2e-vitest-scenarios.yaml (new job/report-to-pr needs) and the shared mapping/dispatch assertions in test/e2e-scenario/support-tests/e2e-scenarios-workflow.test.ts (one for openshell-gateway-upgrade, the other for snapshot-commands).
  • NVIDIA/NemoClaw#5354: Extends the same free-standing E2E Vitest wiring files with a different scenario (openclaw-skill-cli*), using identical job structure and report-to-pr fan-in.
  • NVIDIA/NemoClaw#5588: Follows the same structural pattern of adding a new free-standing Vitest scenario job and updating the workflow dispatch/inventory support tests (rebuild-hermes*).

Suggested labels

area: e2e, chore, v0.0.66

Suggested reviewers

  • cv

Poem

🐇 A gateway once old now wears a new crown,
The survivor lives on—never brought down!
🐾 Docker wrappers and markers abound,
From macOS to Linux, each invariant sound.
The upgrade flows true, and the rabbit hops round! 🎉

🚥 Pre-merge checks | ✅ 4 | ❌ 1

❌ Failed checks (1 warning)

Check name Status Explanation Resolution
Docstring Coverage ⚠️ Warning Docstring coverage is 0.00% which is insufficient. The required threshold is 80.00%. Write docstrings for the functions missing them to satisfy the coverage threshold.
✅ Passed checks (4 passed)
Check name Status Explanation
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check ✅ Passed The title directly and specifically describes the main changeset: migrating a shell script test to Vitest for the openshell-gateway-upgrade scenario.
Linked Issues check ✅ Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check ✅ Passed Check skipped because no linked issues were found for this pull request.

✏️ Tip: You can configure your own custom pre-merge checks in the settings.

✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch e2e-migrate/test-openshell-gateway-upgrade-vitest

Comment @coderabbitai help to get the list of available commands.

@github-code-quality

github-code-quality Bot commented Jun 22, 2026 •

Copy link
Copy Markdown
Contributor

Code Coverage Overview

Languages: TypeScript

TypeScript / code-coverage/plugin

The overall coverage in the e2e-migrate/test-ope... branch is 96%. Coverage data for the main branch is not yet available.

Show a code coverage summary of the most covered files.
File main e2e-migrate/test-ope... 3f355c0 +/-
nemoclaw/src/se...cret-scanner.ts — 100% —
nemoclaw/src/commands/slash.ts — 100% —
nemoclaw/src/li...bprocess-env.ts — 100% —
nemoclaw/src/bl...eprint/state.ts — 98% —
nemoclaw/src/onboard/config.ts — 98% —
nemoclaw/src/bl...int/snapshot.ts — 97% —
nemoclaw/src/bl...print/runner.ts — 95% —
nemoclaw/src/co...ration-state.ts — 94% —
nemoclaw/src/bl...ate-networks.ts — 94% —
nemoclaw/src/index.ts — 94% —

TypeScript / code-coverage/cli

The overall coverage in the e2e-migrate/test-ope... branch is 46%. Coverage data for the main branch is not yet available.

Show a code coverage summary of the most covered files.
File main e2e-migrate/test-ope... 3f355c0 +/-
src/lib/state/o...oard-session.ts — 91% —
src/lib/inference/local.ts — 76% —
src/lib/sandbox/config.ts — 72% —
src/lib/actions...dbox/rebuild.ts — 67% —
src/lib/onboard/preflight.ts — 64% —
src/lib/actions...licy-channel.ts — 56% —
src/lib/state/sandbox.ts — 55% —
src/lib/onboard...er-gpu-patch.ts — 50% —
src/lib/policy/index.ts — 49% —
src/lib/onboard.ts — 18% —

Updated June 23, 2026 00:30 UTC
Code Coverage is in Public Preview. Learn more and provide us with your feedback.

@github-actions

github-actions Bot commented Jun 22, 2026 •

Copy link
Copy Markdown
Contributor

E2E Advisor Recommendation

Required E2E: openshell-gateway-upgrade
Optional E2E: upgrade-stale-sandbox, state-backup-restore, sandbox-survival

Dispatch hint: openshell-gateway-upgrade-vitest

Workflow run

Full advisor summary

E2E Recommendation Advisor

Base: origin/main
Head: HEAD
Confidence: high

Required E2E

  • openshell-gateway-upgrade (high): This PR adds and wires the OpenShell gateway upgrade live scenario itself. Run the new free-standing job to validate workflow dispatch, Docker/OpenShell setup, old-to-current installer upgrade, and survivor sandbox restore behavior.

Optional E2E

  • upgrade-stale-sandbox (medium): Adjacent confidence check for upgrade behavior around existing sandboxes; useful comparison coverage if the new gateway-upgrade lane fails or exposes migration-order issues.
  • state-backup-restore (medium): Adjacent backup/restore confidence check because the new scenario asserts pre-upgrade backup and survivor state restoration.
  • sandbox-survival (medium): Useful non-blocking corroboration for sandbox survival and registry/list behavior after lifecycle operations.

New E2E recommendations

  • None.

Dispatch hint

  • Workflow: .github/workflows/e2e-vitest-scenarios.yaml
  • jobs input: openshell-gateway-upgrade-vitest

@github-actions

github-actions Bot commented Jun 22, 2026 •

Copy link
Copy Markdown
Contributor

Vitest E2E Scenario Recommendation

Required Vitest E2E scenarios: openshell-gateway-upgrade-vitest
Optional Vitest E2E scenarios: None

Dispatch required Vitest E2E scenarios:

  • gh workflow run e2e-vitest-scenarios.yaml --ref <pr-head-ref> --field jobs=openshell-gateway-upgrade-vitest

Workflow run

Full Vitest E2E advisor summary

Vitest E2E Scenario Advisor

Base: origin/main
Head: HEAD
Confidence: high

Required Vitest E2E scenarios

  • openshell-gateway-upgrade-vitest: Focused free-standing Vitest job wired for changed live test test/e2e-scenario/live/openshell-gateway-upgrade.test.ts.
    • Dispatch: gh workflow run e2e-vitest-scenarios.yaml --ref <pr-head-ref> --field jobs=openshell-gateway-upgrade-vitest

Optional Vitest E2E scenarios

  • None.

Relevant changed files

  • .github/workflows/e2e-vitest-scenarios.yaml
  • test/e2e-scenario/live/openshell-gateway-upgrade.test.ts
  • test/e2e-scenario/support-tests/openshell-gateway-upgrade-workflow-boundary.test.ts

@github-actions

Copy link
Copy Markdown
Contributor

Vitest E2E Scenario Results — ❌ Some jobs failed

Run: 27983114840
Workflow ref: e2e-migrate/test-openshell-gateway-upgrade-vitest
Requested scenarios: (default — all supported)
Requested jobs: openshell-gateway-upgrade-vitest
Summary: 1 passed, 1 failed, 55 skipped

Job Result
agent-turn-latency-vitest ⏭️ skipped
bedrock-runtime-compatible-anthropic-vitest ⏭️ skipped
brave-search-vitest ⏭️ skipped
channels-add-remove-vitest ⏭️ skipped
channels-stop-start-vitest ⏭️ skipped
cloud-inference-vitest ⏭️ skipped
cloud-onboard-vitest ⏭️ skipped
common-egress-agent-vitest ⏭️ skipped
concurrent-gateway-ports-vitest ⏭️ skipped
credential-migration-vitest ⏭️ skipped
credential-sanitization-vitest ⏭️ skipped
cron-preflight-inference-local-vitest ⏭️ skipped
device-auth-health-vitest ⏭️ skipped
diagnostics-vitest ⏭️ skipped
double-onboard-vitest ⏭️ skipped
full-e2e-vitest ⏭️ skipped
gateway-drift-preflight-vitest ⏭️ skipped
gateway-guard-recovery ⏭️ skipped
gateway-health-honest-vitest ⏭️ skipped
generate-matrix ✅ success
gpu-double-onboard-vitest ⏭️ skipped
gpu-e2e-vitest ⏭️ skipped
hermes-e2e-vitest ⏭️ skipped
hermes-inference-switch-vitest ⏭️ skipped
hermes-root-entrypoint-smoke-vitest ⏭️ skipped
inference-routing-vitest ⏭️ skipped
issue-2478-crash-loop-recovery-vitest ⏭️ skipped
issue-4434-tui-unreachable-inference-vitest ⏭️ skipped
issue-4462-scope-upgrade-approval-vitest ⏭️ skipped
kimi-inference-compat-vitest ⏭️ skipped
launchable-smoke-vitest ⏭️ skipped
live-scenarios ⏭️ skipped
messaging-compatible-endpoint-vitest ⏭️ skipped
messaging-providers-vitest ⏭️ skipped
model-router-provider-routed-inference-vitest ⏭️ skipped
network-policy-vitest ⏭️ skipped
ollama-auth-proxy-vitest ⏭️ skipped
onboard-negative-paths-vitest ⏭️ skipped
onboard-repair-vitest ⏭️ skipped
onboard-resume-vitest ⏭️ skipped
openclaw-inference-switch-vitest ⏭️ skipped
openclaw-skill-cli-vitest ⏭️ skipped
openclaw-tui-chat-correlation-vitest ⏭️ skipped
openshell-gateway-upgrade-vitest ❌ failure
openshell-version-pin-vitest ⏭️ skipped
rebuild-openclaw-vitest ⏭️ skipped
runtime-overrides-vitest ⏭️ skipped
sandbox-rebuild-vitest ⏭️ skipped
sandbox-survival-vitest ⏭️ skipped
sessions-agents-cli-vitest ⏭️ skipped
shields-config-vitest ⏭️ skipped
skill-agent-vitest ⏭️ skipped
snapshot-commands-vitest ⏭️ skipped
state-backup-restore-vitest ⏭️ skipped
telegram-injection-vitest ⏭️ skipped
token-rotation-vitest ⏭️ skipped
upgrade-stale-sandbox-vitest ⏭️ skipped

Failed jobs: openshell-gateway-upgrade-vitest. Check run artifacts for logs.

@github-actions

Copy link
Copy Markdown
Contributor

Vitest E2E Scenario Results — ❌ Some jobs failed

Run: 27983295624
Workflow ref: e2e-migrate/test-openshell-gateway-upgrade-vitest
Requested scenarios: (default — all supported)
Requested jobs: openshell-gateway-upgrade-vitest
Summary: 1 passed, 1 failed, 55 skipped

Job Result
agent-turn-latency-vitest ⏭️ skipped
bedrock-runtime-compatible-anthropic-vitest ⏭️ skipped
brave-search-vitest ⏭️ skipped
channels-add-remove-vitest ⏭️ skipped
channels-stop-start-vitest ⏭️ skipped
cloud-inference-vitest ⏭️ skipped
cloud-onboard-vitest ⏭️ skipped
common-egress-agent-vitest ⏭️ skipped
concurrent-gateway-ports-vitest ⏭️ skipped
credential-migration-vitest ⏭️ skipped
credential-sanitization-vitest ⏭️ skipped
cron-preflight-inference-local-vitest ⏭️ skipped
device-auth-health-vitest ⏭️ skipped
diagnostics-vitest ⏭️ skipped
double-onboard-vitest ⏭️ skipped
full-e2e-vitest ⏭️ skipped
gateway-drift-preflight-vitest ⏭️ skipped
gateway-guard-recovery ⏭️ skipped
gateway-health-honest-vitest ⏭️ skipped
generate-matrix ✅ success
gpu-double-onboard-vitest ⏭️ skipped
gpu-e2e-vitest ⏭️ skipped
hermes-e2e-vitest ⏭️ skipped
hermes-inference-switch-vitest ⏭️ skipped
hermes-root-entrypoint-smoke-vitest ⏭️ skipped
inference-routing-vitest ⏭️ skipped
issue-2478-crash-loop-recovery-vitest ⏭️ skipped
issue-4434-tui-unreachable-inference-vitest ⏭️ skipped
issue-4462-scope-upgrade-approval-vitest ⏭️ skipped
kimi-inference-compat-vitest ⏭️ skipped
launchable-smoke-vitest ⏭️ skipped
live-scenarios ⏭️ skipped
messaging-compatible-endpoint-vitest ⏭️ skipped
messaging-providers-vitest ⏭️ skipped
model-router-provider-routed-inference-vitest ⏭️ skipped
network-policy-vitest ⏭️ skipped
ollama-auth-proxy-vitest ⏭️ skipped
onboard-negative-paths-vitest ⏭️ skipped
onboard-repair-vitest ⏭️ skipped
onboard-resume-vitest ⏭️ skipped
openclaw-inference-switch-vitest ⏭️ skipped
openclaw-skill-cli-vitest ⏭️ skipped
openclaw-tui-chat-correlation-vitest ⏭️ skipped
openshell-gateway-upgrade-vitest ❌ failure
openshell-version-pin-vitest ⏭️ skipped
rebuild-openclaw-vitest ⏭️ skipped
runtime-overrides-vitest ⏭️ skipped
sandbox-rebuild-vitest ⏭️ skipped
sandbox-survival-vitest ⏭️ skipped
sessions-agents-cli-vitest ⏭️ skipped
shields-config-vitest ⏭️ skipped
skill-agent-vitest ⏭️ skipped
snapshot-commands-vitest ⏭️ skipped
state-backup-restore-vitest ⏭️ skipped
telegram-injection-vitest ⏭️ skipped
token-rotation-vitest ⏭️ skipped
upgrade-stale-sandbox-vitest ⏭️ skipped

Failed jobs: openshell-gateway-upgrade-vitest. Check run artifacts for logs.

@coderabbitai coderabbitai Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actionable comments posted: 1

🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

Inline comments:
In `@test/e2e-scenario/live/openshell-gateway-upgrade.test.ts`:
- Around line 150-197: The JavaScript template literals containing embedded
Python code are incorrectly interpreting `\n` as actual newline characters,
which breaks the Python syntax when those strings are written to files. In the
`needle` variable and the `hook` variable containing the nested Python injection
script, escape the backslashes by changing all occurrences of `\n` to `\\n` so
that the literal characters `\n` appear in the Python output rather than actual
newlines. Similarly, verify the `marker` variable string which contains `\\\n`
and adjust its escaping if needed to ensure the substring matching works
correctly against the target Dockerfile.
🪄 Autofix (Beta)

Fix all unresolved CodeRabbit comments on this PR:

  • Push a commit to this branch (recommended)
  • Create a new PR with the fixes

ℹ️ Review info
⚙️ Run configuration

Configuration used: Path: .coderabbit.yaml

Review profile: CHILL

Plan: Enterprise

Run ID: c8d7b1ee-2bc4-4d39-b64b-449de6ee4a65

📥 Commits

Reviewing files that changed from the base of the PR and between b241036 and 2e9d362.

📒 Files selected for processing (3)
  • .github/workflows/e2e-vitest-scenarios.yaml
  • test/e2e-scenario/live/openshell-gateway-upgrade.test.ts
  • test/e2e-scenario/support-tests/e2e-scenarios-workflow.test.ts

@github-actions

github-actions Bot commented Jun 22, 2026 •

Copy link
Copy Markdown
Contributor

PR Review Advisor — Changes requested

Merge posture: Do not merge yet
Primary next action: Fix PRA-3: Old Docker wrapper pin rewrites are recorded but not asserted; then add or justify PRA-T1.
Open items: 1 required · 6 warnings · 0 suggestions · 8 test follow-ups
Since last review: 0 prior items resolved · 8 still apply · 0 new items found

Action checklist

  • PRA-3 Fix: Old Docker wrapper pin rewrites are recorded but not asserted in test/e2e-scenario/live/openshell-gateway-upgrade.test.ts:398
  • PRA-1 Resolve or justify: Source-of-truth review needed: Old installer fixture patching and Docker wrapper
  • PRA-2 Resolve or justify: Source-of-truth review needed: Workflow Docker Hub login fallback and isolated Docker auth
  • PRA-4 Resolve or justify: Raw installer and macOS probe artifacts can bypass token redaction in test/e2e-scenario/live/openshell-gateway-upgrade.test.ts:514
  • PRA-5 Resolve or justify: Docker auth directory is isolated but not permission-hardened before login in .github/workflows/e2e-vitest-scenarios.yaml:3082
  • PRA-6 Resolve or justify: Workflow-boundary tests register the new job but do not lock its security contract in test/e2e-scenario/support-tests/openshell-gateway-upgrade-workflow-boundary.test.ts:35
  • PRA-7 Resolve or justify: Old installer fixture patch lacks complete source-of-truth guardrails in test/e2e-scenario/live/openshell-gateway-upgrade.test.ts:135
  • PRA-T1 Add or justify test follow-up: Runtime validation
  • PRA-T2 Add or justify test follow-up: Runtime validation
  • PRA-T3 Add or justify test follow-up: Runtime validation
  • PRA-T4 Add or justify test follow-up: Runtime validation
  • PRA-T5 Add or justify test follow-up: Runtime validation
  • PRA-T6 Add or justify test follow-up: Workflow-boundary tests register the new job but do not lock its security contract
  • PRA-T7 Add or justify test follow-up: Acceptance clause
  • PRA-T8 Add or justify test follow-up: Old installer fixture patching and Docker wrapper

Findings index

ID Severity Category Location Required action
PRA-1 Resolve/justify architecture — Identify the invalid state, source boundary, source-fix constraint, regression test, and removal condition before merging the localized behavior.
PRA-2 Resolve/justify architecture — Identify the invalid state, source boundary, source-fix constraint, regression test, and removal condition before merging the localized behavior.
PRA-3 Required acceptance test/e2e-scenario/live/openshell-gateway-upgrade.test.ts:398 After writing old-docker-wrapper.log, read the wrapper log and assert evidence for both BASE_IMAGE=${OLD_SANDBOX_BASE_IMAGE_REF} and OPENCLAW_VERSION=${OLD_OPENCLAW_VERSION}, accepting either the rewrite or add build-arg paths. If a no-build/no-wrapper path is intentionally valid, assert that condition explicitly and explain why it still satisfies the old-install contract.
PRA-4 Resolve/justify security test/e2e-scenario/live/openshell-gateway-upgrade.test.ts:514 Avoid passing GITHUB_TOKEN unless this installer path demonstrably needs it. If it is required, write token-bearing installer output outside E2E_ARTIFACT_DIR and copy back only redacted content through the fixture redactor. For macOS probes, pass a minimal environment instead of ...process.env and redact any direct artifact writes.
PRA-5 Resolve/justify workflow .github/workflows/e2e-vitest-scenarios.yaml:3082 Add `mkdir -p "${DOCKER_CONFIG}"` and `chmod 700 "${DOCKER_CONFIG}"` in the Authenticate to Docker Hub step before any path that can run docker login, matching hardened jobs such as upgrade-stale-sandbox-vitest and model-router-provider-routed-inference-vitest.
PRA-6 Resolve/justify tests test/e2e-scenario/support-tests/openshell-gateway-upgrade-workflow-boundary.test.ts:35 Add a focused validator or mutation-based support test for openshell-gateway-upgrade-vitest covering no job-level DOCKER_CONFIG, RUNNER_TEMP auth path, mkdir/chmod hardening, Docker Hub secrets only in auth, --password-stdin, anonymous fallback, persist-credentials=false, pinned actions, npm ci --ignore-scripts, the exact Vitest file, stable artifact upload settings, and cleanup with if: always().
PRA-7 Resolve/justify architecture test/e2e-scenario/live/openshell-gateway-upgrade.test.ts:135 Document near the helpers the invalid state being handled, that the source is the immutable historical v0.0.36 installer/payload/Dockerfile boundary, why this PR cannot change that source, and the removal condition. Pair that documentation with the wrapper-log assertions from the A2 finding so the workaround cannot silently stop being used.

🚨 Required before merge

Address these before merging unless a maintainer explicitly overrides the advisor with rationale.

PRA-3 Required — Old Docker wrapper pin rewrites are recorded but not asserted

  • Location: test/e2e-scenario/live/openshell-gateway-upgrade.test.ts:398
  • Category: acceptance
  • Problem: Acceptance clause A2 says the old install pins OpenClaw 2026.4.24 and rewrites the sandbox base image/build args. createOldDockerWrapper() logs rewrite/add events for BASE_IMAGE and OPENCLAW_VERSION, and installOldNemoclawAndClaw() writes old-docker-wrapper.log, but the following assertions only inspect the old installer log, OpenShell version, source tag head, Ready state, and nemoclaw list.
  • Impact: The live migration can pass even if the Docker wrapper is never exercised or stops forcing the historical sandbox base image digest and OpenClaw build arg. That weakens the installer/Docker/sandbox lifecycle contract this PR is intended to preserve.
  • Required action: After writing old-docker-wrapper.log, read the wrapper log and assert evidence for both BASE_IMAGE=${OLD_SANDBOX_BASE_IMAGE_REF} and OPENCLAW_VERSION=${OLD_OPENCLAW_VERSION}, accepting either the rewrite or add build-arg paths. If a no-build/no-wrapper path is intentionally valid, assert that condition explicitly and explain why it still satisfies the old-install contract.
  • Expected follow-up: Fix before merge or get explicit maintainer override.
  • Verification: Read installOldNemoclawAndClaw() immediately after artifacts.writeText("old-docker-wrapper.log", ...) and confirm it asserts wrapper-log evidence for both the pinned BASE_IMAGE value and the pinned OPENCLAW_VERSION value.
  • Missing regression test: Extend `openshell-gateway-upgrade: upgrades old working OpenClaw claw and restores survivor state` so it fails when old-docker-wrapper.log lacks either the pinned sandbox base-image rewrite/addition or the pinned OpenClaw build-arg rewrite/addition.
  • Done when: The required change is committed and verification passes: Read installOldNemoclawAndClaw() immediately after artifacts.writeText("old-docker-wrapper.log", ...) and confirm it asserts wrapper-log evidence for both the pinned BASE_IMAGE value and the pinned OPENCLAW_VERSION value.
  • Evidence: createOldDockerWrapper() logs `rewrite build-arg ... -> BASE_IMAGE=...`, `add build-arg BASE_IMAGE=...`, `rewrite build-arg ... -> OPENCLAW_VERSION=...`, and `add build-arg OPENCLAW_VERSION=...`; installOldNemoclawAndClaw() writes that log but then asserts oldLog, OpenShell/source/list state only.
Review findings by urgency: 1 required fix, 6 items to resolve/justify, 0 in-scope improvements

⚠️ Resolve or justify before merge

Investigate these in the current review; either fix them, explain why they are not applicable, or document the accepted risk.

PRA-1 Resolve/justify — Source-of-truth review needed: Old installer fixture patching and Docker wrapper

  • Location: not file-specific
  • Category: architecture
  • Problem: The advisor marked localized patch analysis as needs_followup.
  • Impact: A localized workaround can preserve or hide an invalid state when the source boundary is unclear.
  • Recommended action: Identify the invalid state, source boundary, source-fix constraint, regression test, and removal condition before merging the localized behavior.
  • Expected follow-up: Resolve in this PR or explain why the risk is acceptable.
  • Verification: Inspect the localized patch and source-of-truth review fields for a concrete invalid state, source boundary, source-fix constraint, regression test, and removal condition.
  • Missing regression test: Partial: the test asserts old source tag head and old installer OpenClaw evidence, but does not assert wrapper-log BASE_IMAGE or OPENCLAW_VERSION rewrite/add events.
  • Done when: The risk is fixed or explicitly justified in the PR. Verification: Inspect the localized patch and source-of-truth review fields for a concrete invalid state, source boundary, source-fix constraint, regression test, and removal condition.
  • Evidence: patchOldInstallerFixture() injects a payload hook into the old installer and createOldDockerWrapper() rewrites Docker build args; old-docker-wrapper.log is written but not asserted.

PRA-2 Resolve/justify — Source-of-truth review needed: Workflow Docker Hub login fallback and isolated Docker auth

  • Location: not file-specific
  • Category: architecture
  • Problem: The advisor marked localized patch analysis as needs_followup.
  • Impact: A localized workaround can preserve or hide an invalid state when the source boundary is unclear.
  • Recommended action: Identify the invalid state, source boundary, source-fix constraint, regression test, and removal condition before merging the localized behavior.
  • Expected follow-up: Resolve in this PR or explain why the risk is acceptable.
  • Verification: Inspect the localized patch and source-of-truth review fields for a concrete invalid state, source boundary, source-fix constraint, regression test, and removal condition.
  • Missing regression test: Partial: selector and inventory tests cover dispatch registration, but no job-specific test requires RUNNER_TEMP DOCKER_CONFIG, mkdir, chmod 700, --password-stdin, anonymous fallback, no job-level Docker secrets/config, exact artifact settings, and cleanup with if: always().
  • Done when: The risk is fixed or explicitly justified in the PR. Verification: Inspect the localized patch and source-of-truth review fields for a concrete invalid state, source boundary, source-fix constraint, regression test, and removal condition.
  • Evidence: The workflow sets DOCKER_CONFIG and retries Docker Hub login with anonymous fallback, but lacks mkdir/chmod hardening and a job-specific workflow-boundary validator.

PRA-4 Resolve/justify — Raw installer and macOS probe artifacts can bypass token redaction

  • Location: test/e2e-scenario/live/openshell-gateway-upgrade.test.ts:514
  • Category: security
  • Problem: installCurrentNemoclawUpgrade() passes GITHUB_TOKEN into the installer environment while runInstallerPayload() redirects installer stdout/stderr directly to current-install.log under the uploaded artifact tree. ShellProbe redacts its own captured stdout/stderr artifacts, but the shell-created log file is uploaded directly. runMacInstallerProbe() also inherits ...process.env and writes stdout/stderr directly to artifacts outside the ShellProbe redaction path.
  • Impact: If the installer, a subprocess, curl/gh, or a failure message echoes the GitHub token or another secret inherited from the runner, that value can land in uploaded artifacts or assertion messages without the fixture redactor being applied.
  • Recommended action: Avoid passing GITHUB_TOKEN unless this installer path demonstrably needs it. If it is required, write token-bearing installer output outside E2E_ARTIFACT_DIR and copy back only redacted content through the fixture redactor. For macOS probes, pass a minimal environment instead of ...process.env and redact any direct artifact writes.
  • Expected follow-up: Resolve in this PR or explain why the risk is acceptable.
  • Verification: Inspect installCurrentNemoclawUpgrade(), runInstallerPayload(), and runMacInstallerProbe(); confirm the current installer no longer receives GITHUB_TOKEN unless required, and every artifact written from installer stdout/stderr is redacted before being placed under E2E_ARTIFACT_DIR.
  • Missing regression test: Add a redaction test or fixture-level assertion that runs the current installer/macOS probe path with a sentinel GITHUB_TOKEN-like value and verifies current-install.log, macos-*/stdout.txt, macos-*/stderr.txt, ShellProbe artifacts, and assertion messages do not contain the raw sentinel.
  • Done when: The risk is fixed or explicitly justified in the PR. Verification: Inspect installCurrentNemoclawUpgrade(), runInstallerPayload(), and runMacInstallerProbe(); confirm the current installer no longer receives GITHUB_TOKEN unless required, and every artifact written from installer stdout/stderr is redacted before being placed under E2E_ARTIFACT_DIR.
  • Evidence: currentEnv includes `GITHUB_TOKEN: process.env.GITHUB_TOKEN ?? ""`; runInstallerPayload() executes `bash ... >${logFile} 2>&1`; runMacInstallerProbe() uses `env: { ...process.env, ...extraEnv, ... }` and writes result.stdout/result.stderr directly via fs.writeFileSync.

PRA-5 Resolve/justify — Docker auth directory is isolated but not permission-hardened before login

  • Location: .github/workflows/e2e-vitest-scenarios.yaml:3082
  • Category: workflow
  • Problem: The new job writes DOCKER_CONFIG under RUNNER_TEMP, but the Docker Hub auth step reaches docker login without first creating the directory and restricting it to mode 700. Nearby hardened jobs require mkdir/chmod before login.
  • Impact: Docker may create the config directory with default permissions, and future edits can accidentally expose Docker credentials to later branch-controlled steps or artifacts. This is a trusted-code-boundary regression risk in a workflow that handles Docker Hub secrets.
  • Recommended action: Add `mkdir -p "${DOCKER_CONFIG}"` and `chmod 700 "${DOCKER_CONFIG}"` in the Authenticate to Docker Hub step before any path that can run docker login, matching hardened jobs such as upgrade-stale-sandbox-vitest and model-router-provider-routed-inference-vitest.
  • Expected follow-up: Resolve in this PR or explain why the risk is acceptable.
  • Verification: Read the `openshell-gateway-upgrade-vitest` Authenticate to Docker Hub step and confirm it contains `mkdir -p "${DOCKER_CONFIG}"` and `chmod 700 "${DOCKER_CONFIG}"` before the docker login loop.
  • Missing regression test: Add a workflow-boundary mutation test that removes `mkdir -p "${DOCKER_CONFIG}"` or `chmod 700 "${DOCKER_CONFIG}"` from openshell-gateway-upgrade-vitest and expects the validator to reject the workflow.
  • Done when: The risk is fixed or explicitly justified in the PR. Verification: Read the `openshell-gateway-upgrade-vitest` Authenticate to Docker Hub step and confirm it contains `mkdir -p "${DOCKER_CONFIG}"` and `chmod 700 "${DOCKER_CONFIG}"` before the docker login loop.
  • Evidence: The job has `Configure isolated Docker auth directory` with RUNNER_TEMP and a Docker Hub login loop using --password-stdin, but the auth step does not create or chmod `${DOCKER_CONFIG}` before login.

PRA-6 Resolve/justify — Workflow-boundary tests register the new job but do not lock its security contract

  • Location: test/e2e-scenario/support-tests/openshell-gateway-upgrade-workflow-boundary.test.ts:35
  • Category: tests
  • Problem: The new support test verifies selector and inventory routing only. It does not add a job-specific workflow-boundary validator or mutation tests for the new job's Docker auth, secret scoping, checkout, action pinning, artifact upload, dependency install, Vitest entrypoint, or cleanup behavior.
  • Impact: A future workflow edit can move Docker auth into the workspace, expose secrets to branch-controlled dependency/test steps, unpin actions, broaden artifact uploads, or weaken cleanup while the new tests still pass.
  • Recommended action: Add a focused validator or mutation-based support test for openshell-gateway-upgrade-vitest covering no job-level DOCKER_CONFIG, RUNNER_TEMP auth path, mkdir/chmod hardening, Docker Hub secrets only in auth, --password-stdin, anonymous fallback, persist-credentials=false, pinned actions, npm ci --ignore-scripts, the exact Vitest file, stable artifact upload settings, and cleanup with if: always().
  • Expected follow-up: Resolve in this PR or explain why the risk is acceptable.
  • Verification: Inspect openshell-gateway-upgrade-workflow-boundary.test.ts and tools/e2e-scenarios/workflow-boundary.mts; confirm there is a negative mutation test or validator specific to openshell-gateway-upgrade-vitest that rejects drift in the listed security properties.
  • Missing regression test: Add a mutation test that changes openshell-gateway-upgrade-vitest to use a workspace DOCKER_CONFIG, persist checkout credentials, expose DOCKERHUB_TOKEN to Install root dependencies, change upload-artifact to include hidden files, and make cleanup `if: success()`, then asserts the validator reports each violation.
  • Done when: The risk is fixed or explicitly justified in the PR. Verification: Inspect openshell-gateway-upgrade-workflow-boundary.test.ts and tools/e2e-scenarios/workflow-boundary.mts; confirm there is a negative mutation test or validator specific to openshell-gateway-upgrade-vitest that rejects drift in the listed security properties.
  • Evidence: The support test contains only `routes selector inputs to the free-standing Vitest job` and `derives the free-standing inventory metadata from the workflow`; existing tests such as tunnel-lifecycle-workflow-boundary.test.ts demonstrate stronger negative boundary coverage.

PRA-7 Resolve/justify — Old installer fixture patch lacks complete source-of-truth guardrails

  • Location: test/e2e-scenario/live/openshell-gateway-upgrade.test.ts:135
  • Category: architecture
  • Problem: patchOldInstallerFixture() monkeypatches the fetched old installer payload and createOldDockerWrapper() rewrites Docker build args to force historical OpenClaw/base-image behavior. The helpers do not document the invalid old-release state, the historical release/source boundary, why the old source cannot be fixed in this PR, or when the workaround can be removed.
  • Impact: A localized workaround can silently become the source of truth for old-install behavior. Without explicit guardrails and wrapper-log assertions, the test can hide drift in the actual installer/Docker upgrade contract instead of detecting it.
  • Recommended action: Document near the helpers the invalid state being handled, that the source is the immutable historical v0.0.36 installer/payload/Dockerfile boundary, why this PR cannot change that source, and the removal condition. Pair that documentation with the wrapper-log assertions from the A2 finding so the workaround cannot silently stop being used.
  • Expected follow-up: Resolve in this PR or explain why the risk is acceptable.
  • Verification: Read the comments around patchOldInstallerFixture() and createOldDockerWrapper(); confirm they answer invalid state, source boundary, source-fix constraint, regression proof, and removal condition, and that installOldNemoclawAndClaw() asserts the wrapper log.
  • Missing regression test: Use the A2 wrapper-log assertions as the regression proof: the test should fail when the old fixture patch or Docker wrapper stops forcing the historical OpenClaw version or sandbox base image.
  • Done when: The risk is fixed or explicitly justified in the PR. Verification: Read the comments around patchOldInstallerFixture() and createOldDockerWrapper(); confirm they answer invalid state, source boundary, source-fix constraint, regression proof, and removal condition, and that installOldNemoclawAndClaw() asserts the wrapper log.
  • Evidence: patchOldInstallerFixture() injects a Python payload hook into the old installer and createOldDockerWrapper() rewrites/adds Docker build args; current comments describe migration intent but not the source-of-truth/removal contract.

💡 In-scope improvements

These are lower-risk, not throwaway. Prefer fixing them in this PR when they are local to changed code; defer only with rationale or a linked follow-up.

  • None.
Test follow-ups to resolve or justify

If these cover changed behavior, prefer adding them in this PR; otherwise state why existing coverage is enough or link the follow-up.

  • PRA-T1 Runtime validation — Live upgrade test fails when old-docker-wrapper.log lacks a pinned BASE_IMAGE rewrite or add-build-arg event for OLD_SANDBOX_BASE_IMAGE_REF.. This PR changes a workflow and a live installer/Docker/OpenShell/sandbox lifecycle test. Static support tests cover registration, but the changed behavior depends on runtime installer and sandbox interactions plus workflow secret boundaries.
  • PRA-T2 Runtime validation — Live upgrade test fails when old-docker-wrapper.log lacks a pinned OPENCLAW_VERSION rewrite or add-build-arg event for OLD_OPENCLAW_VERSION.. This PR changes a workflow and a live installer/Docker/OpenShell/sandbox lifecycle test. Static support tests cover registration, but the changed behavior depends on runtime installer and sandbox interactions plus workflow secret boundaries.
  • PRA-T3 Runtime validation — Workflow-boundary support test rejects openshell-gateway-upgrade-vitest when DOCKER_CONFIG is moved under github.workspace or configured at job level.. This PR changes a workflow and a live installer/Docker/OpenShell/sandbox lifecycle test. Static support tests cover registration, but the changed behavior depends on runtime installer and sandbox interactions plus workflow secret boundaries.
  • PRA-T4 Runtime validation — Workflow-boundary support test rejects openshell-gateway-upgrade-vitest when Docker Hub auth omits mkdir -p, chmod 700, --password-stdin, or anonymous fallback.. This PR changes a workflow and a live installer/Docker/OpenShell/sandbox lifecycle test. Static support tests cover registration, but the changed behavior depends on runtime installer and sandbox interactions plus workflow secret boundaries.
  • PRA-T5 Runtime validation — Workflow-boundary support test rejects openshell-gateway-upgrade-vitest when checkout persists credentials, an action is unpinned, npm ci --ignore-scripts is replaced, the Vitest target changes, artifact upload broadens, or cleanup is not if: always().. This PR changes a workflow and a live installer/Docker/OpenShell/sandbox lifecycle test. Static support tests cover registration, but the changed behavior depends on runtime installer and sandbox interactions plus workflow secret boundaries.
  • PRA-T6 Workflow-boundary tests register the new job but do not lock its security contract — Add a focused validator or mutation-based support test for openshell-gateway-upgrade-vitest covering no job-level DOCKER_CONFIG, RUNNER_TEMP auth path, mkdir/chmod hardening, Docker Hub secrets only in auth, --password-stdin, anonymous fallback, persist-credentials=false, pinned actions, npm ci --ignore-scripts, the exact Vitest file, stable artifact upload settings, and cleanup with if: always().
  • PRA-T7 Acceptance clause — A2 | Old install pins OpenClaw `2026.4.24`, rewrites sandbox base image/build args, and leaves OpenShell `0.0.36`. — add test evidence or identify existing coverage. The old install log is asserted for OpenClaw 2026.4.24 and `openshell --version` is asserted for 0.0.36, but old-docker-wrapper.log is only written as an artifact. No assertion verifies BASE_IMAGE or OPENCLAW_VERSION rewrite/add events.
  • PRA-T8 Old installer fixture patching and Docker wrapper — Partial: the test asserts old source tag head and old installer OpenClaw evidence, but does not assert wrapper-log BASE_IMAGE or OPENCLAW_VERSION rewrite/add events.. patchOldInstallerFixture() injects a payload hook into the old installer and createOldDockerWrapper() rewrites Docker build args; old-docker-wrapper.log is written but not asserted.
Since last review details

Current findings, using the urgency labels above:

PRA-1 Resolve/justify — Source-of-truth review needed: Old installer fixture patching and Docker wrapper

  • Location: not file-specific
  • Category: architecture
  • Problem: The advisor marked localized patch analysis as needs_followup.
  • Impact: A localized workaround can preserve or hide an invalid state when the source boundary is unclear.
  • Recommended action: Identify the invalid state, source boundary, source-fix constraint, regression test, and removal condition before merging the localized behavior.
  • Expected follow-up: Resolve in this PR or explain why the risk is acceptable.
  • Verification: Inspect the localized patch and source-of-truth review fields for a concrete invalid state, source boundary, source-fix constraint, regression test, and removal condition.
  • Missing regression test: Partial: the test asserts old source tag head and old installer OpenClaw evidence, but does not assert wrapper-log BASE_IMAGE or OPENCLAW_VERSION rewrite/add events.
  • Done when: The risk is fixed or explicitly justified in the PR. Verification: Inspect the localized patch and source-of-truth review fields for a concrete invalid state, source boundary, source-fix constraint, regression test, and removal condition.
  • Evidence: patchOldInstallerFixture() injects a payload hook into the old installer and createOldDockerWrapper() rewrites Docker build args; old-docker-wrapper.log is written but not asserted.

PRA-2 Resolve/justify — Source-of-truth review needed: Workflow Docker Hub login fallback and isolated Docker auth

  • Location: not file-specific
  • Category: architecture
  • Problem: The advisor marked localized patch analysis as needs_followup.
  • Impact: A localized workaround can preserve or hide an invalid state when the source boundary is unclear.
  • Recommended action: Identify the invalid state, source boundary, source-fix constraint, regression test, and removal condition before merging the localized behavior.
  • Expected follow-up: Resolve in this PR or explain why the risk is acceptable.
  • Verification: Inspect the localized patch and source-of-truth review fields for a concrete invalid state, source boundary, source-fix constraint, regression test, and removal condition.
  • Missing regression test: Partial: selector and inventory tests cover dispatch registration, but no job-specific test requires RUNNER_TEMP DOCKER_CONFIG, mkdir, chmod 700, --password-stdin, anonymous fallback, no job-level Docker secrets/config, exact artifact settings, and cleanup with if: always().
  • Done when: The risk is fixed or explicitly justified in the PR. Verification: Inspect the localized patch and source-of-truth review fields for a concrete invalid state, source boundary, source-fix constraint, regression test, and removal condition.
  • Evidence: The workflow sets DOCKER_CONFIG and retries Docker Hub login with anonymous fallback, but lacks mkdir/chmod hardening and a job-specific workflow-boundary validator.

PRA-3 Required — Old Docker wrapper pin rewrites are recorded but not asserted

  • Location: test/e2e-scenario/live/openshell-gateway-upgrade.test.ts:398
  • Category: acceptance
  • Problem: Acceptance clause A2 says the old install pins OpenClaw 2026.4.24 and rewrites the sandbox base image/build args. createOldDockerWrapper() logs rewrite/add events for BASE_IMAGE and OPENCLAW_VERSION, and installOldNemoclawAndClaw() writes old-docker-wrapper.log, but the following assertions only inspect the old installer log, OpenShell version, source tag head, Ready state, and nemoclaw list.
  • Impact: The live migration can pass even if the Docker wrapper is never exercised or stops forcing the historical sandbox base image digest and OpenClaw build arg. That weakens the installer/Docker/sandbox lifecycle contract this PR is intended to preserve.
  • Required action: After writing old-docker-wrapper.log, read the wrapper log and assert evidence for both BASE_IMAGE=${OLD_SANDBOX_BASE_IMAGE_REF} and OPENCLAW_VERSION=${OLD_OPENCLAW_VERSION}, accepting either the rewrite or add build-arg paths. If a no-build/no-wrapper path is intentionally valid, assert that condition explicitly and explain why it still satisfies the old-install contract.
  • Expected follow-up: Fix before merge or get explicit maintainer override.
  • Verification: Read installOldNemoclawAndClaw() immediately after artifacts.writeText("old-docker-wrapper.log", ...) and confirm it asserts wrapper-log evidence for both the pinned BASE_IMAGE value and the pinned OPENCLAW_VERSION value.
  • Missing regression test: Extend `openshell-gateway-upgrade: upgrades old working OpenClaw claw and restores survivor state` so it fails when old-docker-wrapper.log lacks either the pinned sandbox base-image rewrite/addition or the pinned OpenClaw build-arg rewrite/addition.
  • Done when: The required change is committed and verification passes: Read installOldNemoclawAndClaw() immediately after artifacts.writeText("old-docker-wrapper.log", ...) and confirm it asserts wrapper-log evidence for both the pinned BASE_IMAGE value and the pinned OPENCLAW_VERSION value.
  • Evidence: createOldDockerWrapper() logs `rewrite build-arg ... -> BASE_IMAGE=...`, `add build-arg BASE_IMAGE=...`, `rewrite build-arg ... -> OPENCLAW_VERSION=...`, and `add build-arg OPENCLAW_VERSION=...`; installOldNemoclawAndClaw() writes that log but then asserts oldLog, OpenShell/source/list state only.

PRA-4 Resolve/justify — Raw installer and macOS probe artifacts can bypass token redaction

  • Location: test/e2e-scenario/live/openshell-gateway-upgrade.test.ts:514
  • Category: security
  • Problem: installCurrentNemoclawUpgrade() passes GITHUB_TOKEN into the installer environment while runInstallerPayload() redirects installer stdout/stderr directly to current-install.log under the uploaded artifact tree. ShellProbe redacts its own captured stdout/stderr artifacts, but the shell-created log file is uploaded directly. runMacInstallerProbe() also inherits ...process.env and writes stdout/stderr directly to artifacts outside the ShellProbe redaction path.
  • Impact: If the installer, a subprocess, curl/gh, or a failure message echoes the GitHub token or another secret inherited from the runner, that value can land in uploaded artifacts or assertion messages without the fixture redactor being applied.
  • Recommended action: Avoid passing GITHUB_TOKEN unless this installer path demonstrably needs it. If it is required, write token-bearing installer output outside E2E_ARTIFACT_DIR and copy back only redacted content through the fixture redactor. For macOS probes, pass a minimal environment instead of ...process.env and redact any direct artifact writes.
  • Expected follow-up: Resolve in this PR or explain why the risk is acceptable.
  • Verification: Inspect installCurrentNemoclawUpgrade(), runInstallerPayload(), and runMacInstallerProbe(); confirm the current installer no longer receives GITHUB_TOKEN unless required, and every artifact written from installer stdout/stderr is redacted before being placed under E2E_ARTIFACT_DIR.
  • Missing regression test: Add a redaction test or fixture-level assertion that runs the current installer/macOS probe path with a sentinel GITHUB_TOKEN-like value and verifies current-install.log, macos-*/stdout.txt, macos-*/stderr.txt, ShellProbe artifacts, and assertion messages do not contain the raw sentinel.
  • Done when: The risk is fixed or explicitly justified in the PR. Verification: Inspect installCurrentNemoclawUpgrade(), runInstallerPayload(), and runMacInstallerProbe(); confirm the current installer no longer receives GITHUB_TOKEN unless required, and every artifact written from installer stdout/stderr is redacted before being placed under E2E_ARTIFACT_DIR.
  • Evidence: currentEnv includes `GITHUB_TOKEN: process.env.GITHUB_TOKEN ?? ""`; runInstallerPayload() executes `bash ... >${logFile} 2>&1`; runMacInstallerProbe() uses `env: { ...process.env, ...extraEnv, ... }` and writes result.stdout/result.stderr directly via fs.writeFileSync.

PRA-5 Resolve/justify — Docker auth directory is isolated but not permission-hardened before login

  • Location: .github/workflows/e2e-vitest-scenarios.yaml:3082
  • Category: workflow
  • Problem: The new job writes DOCKER_CONFIG under RUNNER_TEMP, but the Docker Hub auth step reaches docker login without first creating the directory and restricting it to mode 700. Nearby hardened jobs require mkdir/chmod before login.
  • Impact: Docker may create the config directory with default permissions, and future edits can accidentally expose Docker credentials to later branch-controlled steps or artifacts. This is a trusted-code-boundary regression risk in a workflow that handles Docker Hub secrets.
  • Recommended action: Add `mkdir -p "${DOCKER_CONFIG}"` and `chmod 700 "${DOCKER_CONFIG}"` in the Authenticate to Docker Hub step before any path that can run docker login, matching hardened jobs such as upgrade-stale-sandbox-vitest and model-router-provider-routed-inference-vitest.
  • Expected follow-up: Resolve in this PR or explain why the risk is acceptable.
  • Verification: Read the `openshell-gateway-upgrade-vitest` Authenticate to Docker Hub step and confirm it contains `mkdir -p "${DOCKER_CONFIG}"` and `chmod 700 "${DOCKER_CONFIG}"` before the docker login loop.
  • Missing regression test: Add a workflow-boundary mutation test that removes `mkdir -p "${DOCKER_CONFIG}"` or `chmod 700 "${DOCKER_CONFIG}"` from openshell-gateway-upgrade-vitest and expects the validator to reject the workflow.
  • Done when: The risk is fixed or explicitly justified in the PR. Verification: Read the `openshell-gateway-upgrade-vitest` Authenticate to Docker Hub step and confirm it contains `mkdir -p "${DOCKER_CONFIG}"` and `chmod 700 "${DOCKER_CONFIG}"` before the docker login loop.
  • Evidence: The job has `Configure isolated Docker auth directory` with RUNNER_TEMP and a Docker Hub login loop using --password-stdin, but the auth step does not create or chmod `${DOCKER_CONFIG}` before login.

PRA-6 Resolve/justify — Workflow-boundary tests register the new job but do not lock its security contract

  • Location: test/e2e-scenario/support-tests/openshell-gateway-upgrade-workflow-boundary.test.ts:35
  • Category: tests
  • Problem: The new support test verifies selector and inventory routing only. It does not add a job-specific workflow-boundary validator or mutation tests for the new job's Docker auth, secret scoping, checkout, action pinning, artifact upload, dependency install, Vitest entrypoint, or cleanup behavior.
  • Impact: A future workflow edit can move Docker auth into the workspace, expose secrets to branch-controlled dependency/test steps, unpin actions, broaden artifact uploads, or weaken cleanup while the new tests still pass.
  • Recommended action: Add a focused validator or mutation-based support test for openshell-gateway-upgrade-vitest covering no job-level DOCKER_CONFIG, RUNNER_TEMP auth path, mkdir/chmod hardening, Docker Hub secrets only in auth, --password-stdin, anonymous fallback, persist-credentials=false, pinned actions, npm ci --ignore-scripts, the exact Vitest file, stable artifact upload settings, and cleanup with if: always().
  • Expected follow-up: Resolve in this PR or explain why the risk is acceptable.
  • Verification: Inspect openshell-gateway-upgrade-workflow-boundary.test.ts and tools/e2e-scenarios/workflow-boundary.mts; confirm there is a negative mutation test or validator specific to openshell-gateway-upgrade-vitest that rejects drift in the listed security properties.
  • Missing regression test: Add a mutation test that changes openshell-gateway-upgrade-vitest to use a workspace DOCKER_CONFIG, persist checkout credentials, expose DOCKERHUB_TOKEN to Install root dependencies, change upload-artifact to include hidden files, and make cleanup `if: success()`, then asserts the validator reports each violation.
  • Done when: The risk is fixed or explicitly justified in the PR. Verification: Inspect openshell-gateway-upgrade-workflow-boundary.test.ts and tools/e2e-scenarios/workflow-boundary.mts; confirm there is a negative mutation test or validator specific to openshell-gateway-upgrade-vitest that rejects drift in the listed security properties.
  • Evidence: The support test contains only `routes selector inputs to the free-standing Vitest job` and `derives the free-standing inventory metadata from the workflow`; existing tests such as tunnel-lifecycle-workflow-boundary.test.ts demonstrate stronger negative boundary coverage.

PRA-7 Resolve/justify — Old installer fixture patch lacks complete source-of-truth guardrails

  • Location: test/e2e-scenario/live/openshell-gateway-upgrade.test.ts:135
  • Category: architecture
  • Problem: patchOldInstallerFixture() monkeypatches the fetched old installer payload and createOldDockerWrapper() rewrites Docker build args to force historical OpenClaw/base-image behavior. The helpers do not document the invalid old-release state, the historical release/source boundary, why the old source cannot be fixed in this PR, or when the workaround can be removed.
  • Impact: A localized workaround can silently become the source of truth for old-install behavior. Without explicit guardrails and wrapper-log assertions, the test can hide drift in the actual installer/Docker upgrade contract instead of detecting it.
  • Recommended action: Document near the helpers the invalid state being handled, that the source is the immutable historical v0.0.36 installer/payload/Dockerfile boundary, why this PR cannot change that source, and the removal condition. Pair that documentation with the wrapper-log assertions from the A2 finding so the workaround cannot silently stop being used.
  • Expected follow-up: Resolve in this PR or explain why the risk is acceptable.
  • Verification: Read the comments around patchOldInstallerFixture() and createOldDockerWrapper(); confirm they answer invalid state, source boundary, source-fix constraint, regression proof, and removal condition, and that installOldNemoclawAndClaw() asserts the wrapper log.
  • Missing regression test: Use the A2 wrapper-log assertions as the regression proof: the test should fail when the old fixture patch or Docker wrapper stops forcing the historical OpenClaw version or sandbox base image.
  • Done when: The risk is fixed or explicitly justified in the PR. Verification: Read the comments around patchOldInstallerFixture() and createOldDockerWrapper(); confirm they answer invalid state, source boundary, source-fix constraint, regression proof, and removal condition, and that installOldNemoclawAndClaw() asserts the wrapper log.
  • Evidence: patchOldInstallerFixture() injects a Python payload hook into the old installer and createOldDockerWrapper() rewrites/adds Docker build args; current comments describe migration intent but not the source-of-truth/removal contract.

Workflow run details

This is an automated, non-binding review; it still expects maintainers and agents to respond to each required or warning item. Treat suggestions as current-PR improvements when they touch changed code; defer only with maintainer rationale or a linked follow-up. A human maintainer must make the final merge decision.

@coderabbitai coderabbitai Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actionable comments posted: 1

Caution

Some comments are outside the diff and can’t be posted inline due to platform limitations.

⚠️ Outside diff range comments (1)
test/e2e-scenario/live/openshell-gateway-upgrade.test.ts (1)

284-299: ⚠️ Potential issue | 🔴 Critical | ⚡ Quick win

TypeScript compilation error: setTimeout arity mismatch.

The build-typecheck pipeline fails with "Expected 3 arguments, but got 2" at line 297. This occurs because passing resolve directly to setTimeout causes TypeScript to infer the wrong generic parameters from the Promise resolve signature.

🐛 Proposed fix: wrap resolve in an arrow function
   while (attempt < 60 && !ready) {
     const result = await bash(
       host,
       `openshell sandbox list 2>/dev/null || true`,
       {
         artifactName: `${labelPrefix}-sandbox-list-${attempt}`,
         timeoutMs: 30_000,
       },
     );
     ready = new RegExp(`${SURVIVOR_SANDBOX}.*Ready`).test(resultText(result));
     attempt += 1;
-    ready || (await new Promise((resolve) => setTimeout(resolve, 2_000)));
+    ready || (await new Promise<void>((resolve) => setTimeout(() => resolve(), 2_000)));
   }
🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

In `@test/e2e-scenario/live/openshell-gateway-upgrade.test.ts` around lines 284 -
299, The TypeScript compilation error occurs because the Promise `resolve`
function is being passed directly to `setTimeout`, causing incorrect type
inference. In the while loop that waits for the survivor sandbox to become
ready, wrap the `resolve` function in an arrow function instead of passing it
directly. Change `setTimeout(resolve, 2_000)` to `setTimeout(() => resolve(),
2_000)` in the new Promise call. This ensures `setTimeout` receives a function
with the correct signature and matches the expected arity.

Source: Linters/SAST tools

🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

Inline comments:
In `@test/e2e-scenario/live/openshell-gateway-upgrade.test.ts`:
- Around line 326-336: The setTimeout call in the while loop condition inside
the probe retry logic is missing a required third argument according to
TypeScript's type definitions. Fix the setTimeout invocation by adding a third
argument (such as undefined or null) after the delay value (1_000) in the line
where setTimeout is called with just the resolve callback and delay, similar to
how it was fixed in the waitForSurvivorReady function mentioned in the previous
issue.

---

Outside diff comments:
In `@test/e2e-scenario/live/openshell-gateway-upgrade.test.ts`:
- Around line 284-299: The TypeScript compilation error occurs because the
Promise `resolve` function is being passed directly to `setTimeout`, causing
incorrect type inference. In the while loop that waits for the survivor sandbox
to become ready, wrap the `resolve` function in an arrow function instead of
passing it directly. Change `setTimeout(resolve, 2_000)` to `setTimeout(() =>
resolve(), 2_000)` in the new Promise call. This ensures `setTimeout` receives a
function with the correct signature and matches the expected arity.
🪄 Autofix (Beta)

Fix all unresolved CodeRabbit comments on this PR:

  • Push a commit to this branch (recommended)
  • Create a new PR with the fixes

ℹ️ Review info
⚙️ Run configuration

Configuration used: Path: .coderabbit.yaml

Review profile: CHILL

Plan: Enterprise

Run ID: 4eb359ef-e438-45a1-93b8-3950bab4f890

📥 Commits

Reviewing files that changed from the base of the PR and between 2e9d362 and 377564e.

📒 Files selected for processing (1)
  • test/e2e-scenario/live/openshell-gateway-upgrade.test.ts

@github-actions

Copy link
Copy Markdown
Contributor

Vitest E2E Scenario Results — ❌ Some jobs failed

Run: 27983974428
Workflow ref: e2e-migrate/test-openshell-gateway-upgrade-vitest
Requested scenarios: (default — all supported)
Requested jobs: openshell-gateway-upgrade-vitest
Summary: 1 passed, 1 failed, 55 skipped

Job Result
agent-turn-latency-vitest ⏭️ skipped
bedrock-runtime-compatible-anthropic-vitest ⏭️ skipped
brave-search-vitest ⏭️ skipped
channels-add-remove-vitest ⏭️ skipped
channels-stop-start-vitest ⏭️ skipped
cloud-inference-vitest ⏭️ skipped
cloud-onboard-vitest ⏭️ skipped
common-egress-agent-vitest ⏭️ skipped
concurrent-gateway-ports-vitest ⏭️ skipped
credential-migration-vitest ⏭️ skipped
credential-sanitization-vitest ⏭️ skipped
cron-preflight-inference-local-vitest ⏭️ skipped
device-auth-health-vitest ⏭️ skipped
diagnostics-vitest ⏭️ skipped
double-onboard-vitest ⏭️ skipped
full-e2e-vitest ⏭️ skipped
gateway-drift-preflight-vitest ⏭️ skipped
gateway-guard-recovery ⏭️ skipped
gateway-health-honest-vitest ⏭️ skipped
generate-matrix ✅ success
gpu-double-onboard-vitest ⏭️ skipped
gpu-e2e-vitest ⏭️ skipped
hermes-e2e-vitest ⏭️ skipped
hermes-inference-switch-vitest ⏭️ skipped
hermes-root-entrypoint-smoke-vitest ⏭️ skipped
inference-routing-vitest ⏭️ skipped
issue-2478-crash-loop-recovery-vitest ⏭️ skipped
issue-4434-tui-unreachable-inference-vitest ⏭️ skipped
issue-4462-scope-upgrade-approval-vitest ⏭️ skipped
kimi-inference-compat-vitest ⏭️ skipped
launchable-smoke-vitest ⏭️ skipped
live-scenarios ⏭️ skipped
messaging-compatible-endpoint-vitest ⏭️ skipped
messaging-providers-vitest ⏭️ skipped
model-router-provider-routed-inference-vitest ⏭️ skipped
network-policy-vitest ⏭️ skipped
ollama-auth-proxy-vitest ⏭️ skipped
onboard-negative-paths-vitest ⏭️ skipped
onboard-repair-vitest ⏭️ skipped
onboard-resume-vitest ⏭️ skipped
openclaw-inference-switch-vitest ⏭️ skipped
openclaw-skill-cli-vitest ⏭️ skipped
openclaw-tui-chat-correlation-vitest ⏭️ skipped
openshell-gateway-upgrade-vitest ❌ failure
openshell-version-pin-vitest ⏭️ skipped
rebuild-openclaw-vitest ⏭️ skipped
runtime-overrides-vitest ⏭️ skipped
sandbox-rebuild-vitest ⏭️ skipped
sandbox-survival-vitest ⏭️ skipped
sessions-agents-cli-vitest ⏭️ skipped
shields-config-vitest ⏭️ skipped
skill-agent-vitest ⏭️ skipped
snapshot-commands-vitest ⏭️ skipped
state-backup-restore-vitest ⏭️ skipped
telegram-injection-vitest ⏭️ skipped
token-rotation-vitest ⏭️ skipped
upgrade-stale-sandbox-vitest ⏭️ skipped

Failed jobs: openshell-gateway-upgrade-vitest. Check run artifacts for logs.

@github-actions

Copy link
Copy Markdown
Contributor

Vitest E2E Scenario Results — ❌ Some jobs failed

Run: 27984535110
Workflow ref: e2e-migrate/test-openshell-gateway-upgrade-vitest
Requested scenarios: (default — all supported)
Requested jobs: openshell-gateway-upgrade-vitest
Summary: 1 passed, 1 failed, 55 skipped

Job Result
agent-turn-latency-vitest ⏭️ skipped
bedrock-runtime-compatible-anthropic-vitest ⏭️ skipped
brave-search-vitest ⏭️ skipped
channels-add-remove-vitest ⏭️ skipped
channels-stop-start-vitest ⏭️ skipped
cloud-inference-vitest ⏭️ skipped
cloud-onboard-vitest ⏭️ skipped
common-egress-agent-vitest ⏭️ skipped
concurrent-gateway-ports-vitest ⏭️ skipped
credential-migration-vitest ⏭️ skipped
credential-sanitization-vitest ⏭️ skipped
cron-preflight-inference-local-vitest ⏭️ skipped
device-auth-health-vitest ⏭️ skipped
diagnostics-vitest ⏭️ skipped
double-onboard-vitest ⏭️ skipped
full-e2e-vitest ⏭️ skipped
gateway-drift-preflight-vitest ⏭️ skipped
gateway-guard-recovery ⏭️ skipped
gateway-health-honest-vitest ⏭️ skipped
generate-matrix ✅ success
gpu-double-onboard-vitest ⏭️ skipped
gpu-e2e-vitest ⏭️ skipped
hermes-e2e-vitest ⏭️ skipped
hermes-inference-switch-vitest ⏭️ skipped
hermes-root-entrypoint-smoke-vitest ⏭️ skipped
inference-routing-vitest ⏭️ skipped
issue-2478-crash-loop-recovery-vitest ⏭️ skipped
issue-4434-tui-unreachable-inference-vitest ⏭️ skipped
issue-4462-scope-upgrade-approval-vitest ⏭️ skipped
kimi-inference-compat-vitest ⏭️ skipped
launchable-smoke-vitest ⏭️ skipped
live-scenarios ⏭️ skipped
messaging-compatible-endpoint-vitest ⏭️ skipped
messaging-providers-vitest ⏭️ skipped
model-router-provider-routed-inference-vitest ⏭️ skipped
network-policy-vitest ⏭️ skipped
ollama-auth-proxy-vitest ⏭️ skipped
onboard-negative-paths-vitest ⏭️ skipped
onboard-repair-vitest ⏭️ skipped
onboard-resume-vitest ⏭️ skipped
openclaw-inference-switch-vitest ⏭️ skipped
openclaw-skill-cli-vitest ⏭️ skipped
openclaw-tui-chat-correlation-vitest ⏭️ skipped
openshell-gateway-upgrade-vitest ❌ failure
openshell-version-pin-vitest ⏭️ skipped
rebuild-openclaw-vitest ⏭️ skipped
runtime-overrides-vitest ⏭️ skipped
sandbox-rebuild-vitest ⏭️ skipped
sandbox-survival-vitest ⏭️ skipped
sessions-agents-cli-vitest ⏭️ skipped
shields-config-vitest ⏭️ skipped
skill-agent-vitest ⏭️ skipped
snapshot-commands-vitest ⏭️ skipped
state-backup-restore-vitest ⏭️ skipped
telegram-injection-vitest ⏭️ skipped
token-rotation-vitest ⏭️ skipped
upgrade-stale-sandbox-vitest ⏭️ skipped

Failed jobs: openshell-gateway-upgrade-vitest. Check run artifacts for logs.

@github-actions

Copy link
Copy Markdown
Contributor

Vitest E2E Scenario Results — ❌ Some jobs failed

Run: 27985016589
Workflow ref: e2e-migrate/test-openshell-gateway-upgrade-vitest
Requested scenarios: (default — all supported)
Requested jobs: openshell-gateway-upgrade-vitest
Summary: 1 passed, 1 failed, 55 skipped

Job Result
agent-turn-latency-vitest ⏭️ skipped
bedrock-runtime-compatible-anthropic-vitest ⏭️ skipped
brave-search-vitest ⏭️ skipped
channels-add-remove-vitest ⏭️ skipped
channels-stop-start-vitest ⏭️ skipped
cloud-inference-vitest ⏭️ skipped
cloud-onboard-vitest ⏭️ skipped
common-egress-agent-vitest ⏭️ skipped
concurrent-gateway-ports-vitest ⏭️ skipped
credential-migration-vitest ⏭️ skipped
credential-sanitization-vitest ⏭️ skipped
cron-preflight-inference-local-vitest ⏭️ skipped
device-auth-health-vitest ⏭️ skipped
diagnostics-vitest ⏭️ skipped
double-onboard-vitest ⏭️ skipped
full-e2e-vitest ⏭️ skipped
gateway-drift-preflight-vitest ⏭️ skipped
gateway-guard-recovery ⏭️ skipped
gateway-health-honest-vitest ⏭️ skipped
generate-matrix ✅ success
gpu-double-onboard-vitest ⏭️ skipped
gpu-e2e-vitest ⏭️ skipped
hermes-e2e-vitest ⏭️ skipped
hermes-inference-switch-vitest ⏭️ skipped
hermes-root-entrypoint-smoke-vitest ⏭️ skipped
inference-routing-vitest ⏭️ skipped
issue-2478-crash-loop-recovery-vitest ⏭️ skipped
issue-4434-tui-unreachable-inference-vitest ⏭️ skipped
issue-4462-scope-upgrade-approval-vitest ⏭️ skipped
kimi-inference-compat-vitest ⏭️ skipped
launchable-smoke-vitest ⏭️ skipped
live-scenarios ⏭️ skipped
messaging-compatible-endpoint-vitest ⏭️ skipped
messaging-providers-vitest ⏭️ skipped
model-router-provider-routed-inference-vitest ⏭️ skipped
network-policy-vitest ⏭️ skipped
ollama-auth-proxy-vitest ⏭️ skipped
onboard-negative-paths-vitest ⏭️ skipped
onboard-repair-vitest ⏭️ skipped
onboard-resume-vitest ⏭️ skipped
openclaw-inference-switch-vitest ⏭️ skipped
openclaw-skill-cli-vitest ⏭️ skipped
openclaw-tui-chat-correlation-vitest ⏭️ skipped
openshell-gateway-upgrade-vitest ❌ failure
openshell-version-pin-vitest ⏭️ skipped
rebuild-openclaw-vitest ⏭️ skipped
runtime-overrides-vitest ⏭️ skipped
sandbox-rebuild-vitest ⏭️ skipped
sandbox-survival-vitest ⏭️ skipped
sessions-agents-cli-vitest ⏭️ skipped
shields-config-vitest ⏭️ skipped
skill-agent-vitest ⏭️ skipped
snapshot-commands-vitest ⏭️ skipped
state-backup-restore-vitest ⏭️ skipped
telegram-injection-vitest ⏭️ skipped
token-rotation-vitest ⏭️ skipped
upgrade-stale-sandbox-vitest ⏭️ skipped

Failed jobs: openshell-gateway-upgrade-vitest. Check run artifacts for logs.

@github-actions

Copy link
Copy Markdown
Contributor

Vitest E2E Scenario Results — ✅ All jobs passed

Run: 27986573608
Workflow ref: e2e-migrate/test-openshell-gateway-upgrade-vitest
Requested scenarios: (default — all supported)
Requested jobs: openshell-gateway-upgrade-vitest
Summary: 2 passed, 0 failed, 55 skipped

Job Result
agent-turn-latency-vitest ⏭️ skipped
bedrock-runtime-compatible-anthropic-vitest ⏭️ skipped
brave-search-vitest ⏭️ skipped
channels-add-remove-vitest ⏭️ skipped
channels-stop-start-vitest ⏭️ skipped
cloud-inference-vitest ⏭️ skipped
cloud-onboard-vitest ⏭️ skipped
common-egress-agent-vitest ⏭️ skipped
concurrent-gateway-ports-vitest ⏭️ skipped
credential-migration-vitest ⏭️ skipped
credential-sanitization-vitest ⏭️ skipped
cron-preflight-inference-local-vitest ⏭️ skipped
device-auth-health-vitest ⏭️ skipped
diagnostics-vitest ⏭️ skipped
double-onboard-vitest ⏭️ skipped
full-e2e-vitest ⏭️ skipped
gateway-drift-preflight-vitest ⏭️ skipped
gateway-guard-recovery ⏭️ skipped
gateway-health-honest-vitest ⏭️ skipped
generate-matrix ✅ success
gpu-double-onboard-vitest ⏭️ skipped
gpu-e2e-vitest ⏭️ skipped
hermes-e2e-vitest ⏭️ skipped
hermes-inference-switch-vitest ⏭️ skipped
hermes-root-entrypoint-smoke-vitest ⏭️ skipped
inference-routing-vitest ⏭️ skipped
issue-2478-crash-loop-recovery-vitest ⏭️ skipped
issue-4434-tui-unreachable-inference-vitest ⏭️ skipped
issue-4462-scope-upgrade-approval-vitest ⏭️ skipped
kimi-inference-compat-vitest ⏭️ skipped
launchable-smoke-vitest ⏭️ skipped
live-scenarios ⏭️ skipped
messaging-compatible-endpoint-vitest ⏭️ skipped
messaging-providers-vitest ⏭️ skipped
model-router-provider-routed-inference-vitest ⏭️ skipped
network-policy-vitest ⏭️ skipped
ollama-auth-proxy-vitest ⏭️ skipped
onboard-negative-paths-vitest ⏭️ skipped
onboard-repair-vitest ⏭️ skipped
onboard-resume-vitest ⏭️ skipped
openclaw-inference-switch-vitest ⏭️ skipped
openclaw-skill-cli-vitest ⏭️ skipped
openclaw-tui-chat-correlation-vitest ⏭️ skipped
openshell-gateway-upgrade-vitest ✅ success
openshell-version-pin-vitest ⏭️ skipped
rebuild-openclaw-vitest ⏭️ skipped
runtime-overrides-vitest ⏭️ skipped
sandbox-rebuild-vitest ⏭️ skipped
sandbox-survival-vitest ⏭️ skipped
sessions-agents-cli-vitest ⏭️ skipped
shields-config-vitest ⏭️ skipped
skill-agent-vitest ⏭️ skipped
snapshot-commands-vitest ⏭️ skipped
state-backup-restore-vitest ⏭️ skipped
telegram-injection-vitest ⏭️ skipped
token-rotation-vitest ⏭️ skipped
upgrade-stale-sandbox-vitest ⏭️ skipped

@github-actions

Copy link
Copy Markdown
Contributor

Vitest E2E Scenario Results — ✅ All jobs passed

Run: 27988669078
Workflow ref: e2e-migrate/test-openshell-gateway-upgrade-vitest
Requested scenarios: (default — all supported)
Requested jobs: openshell-gateway-upgrade-vitest
Summary: 2 passed, 0 failed, 55 skipped

Job Result
agent-turn-latency-vitest ⏭️ skipped
bedrock-runtime-compatible-anthropic-vitest ⏭️ skipped
brave-search-vitest ⏭️ skipped
channels-add-remove-vitest ⏭️ skipped
channels-stop-start-vitest ⏭️ skipped
cloud-inference-vitest ⏭️ skipped
cloud-onboard-vitest ⏭️ skipped
common-egress-agent-vitest ⏭️ skipped
concurrent-gateway-ports-vitest ⏭️ skipped
credential-migration-vitest ⏭️ skipped
credential-sanitization-vitest ⏭️ skipped
cron-preflight-inference-local-vitest ⏭️ skipped
device-auth-health-vitest ⏭️ skipped
diagnostics-vitest ⏭️ skipped
double-onboard-vitest ⏭️ skipped
full-e2e-vitest ⏭️ skipped
gateway-drift-preflight-vitest ⏭️ skipped
gateway-guard-recovery ⏭️ skipped
gateway-health-honest-vitest ⏭️ skipped
generate-matrix ✅ success
gpu-double-onboard-vitest ⏭️ skipped
gpu-e2e-vitest ⏭️ skipped
hermes-e2e-vitest ⏭️ skipped
hermes-inference-switch-vitest ⏭️ skipped
hermes-root-entrypoint-smoke-vitest ⏭️ skipped
inference-routing-vitest ⏭️ skipped
issue-2478-crash-loop-recovery-vitest ⏭️ skipped
issue-4434-tui-unreachable-inference-vitest ⏭️ skipped
issue-4462-scope-upgrade-approval-vitest ⏭️ skipped
kimi-inference-compat-vitest ⏭️ skipped
launchable-smoke-vitest ⏭️ skipped
live-scenarios ⏭️ skipped
messaging-compatible-endpoint-vitest ⏭️ skipped
messaging-providers-vitest ⏭️ skipped
model-router-provider-routed-inference-vitest ⏭️ skipped
network-policy-vitest ⏭️ skipped
ollama-auth-proxy-vitest ⏭️ skipped
onboard-negative-paths-vitest ⏭️ skipped
onboard-repair-vitest ⏭️ skipped
onboard-resume-vitest ⏭️ skipped
openclaw-inference-switch-vitest ⏭️ skipped
openclaw-skill-cli-vitest ⏭️ skipped
openclaw-tui-chat-correlation-vitest ⏭️ skipped
openshell-gateway-upgrade-vitest ✅ success
openshell-version-pin-vitest ⏭️ skipped
rebuild-openclaw-vitest ⏭️ skipped
runtime-overrides-vitest ⏭️ skipped
sandbox-rebuild-vitest ⏭️ skipped
sandbox-survival-vitest ⏭️ skipped
sessions-agents-cli-vitest ⏭️ skipped
shields-config-vitest ⏭️ skipped
skill-agent-vitest ⏭️ skipped
snapshot-commands-vitest ⏭️ skipped
state-backup-restore-vitest ⏭️ skipped
telegram-injection-vitest ⏭️ skipped
token-rotation-vitest ⏭️ skipped
upgrade-stale-sandbox-vitest ⏭️ skipped

@github-actions

Copy link
Copy Markdown
Contributor

Vitest E2E Scenario Results — ✅ All requested jobs passed

Run: 27989273274
Workflow ref: e2e-migrate/test-openshell-gateway-upgrade-vitest
Requested scenarios: (default — all supported)
Requested jobs: openshell-gateway-upgrade-vitest
Summary: 1 passed, 0 failed, 0 cancelled, 0 skipped

Job Result
openshell-gateway-upgrade-vitest ✅ success

@github-actions

Copy link
Copy Markdown
Contributor

Vitest E2E Scenario Results — ✅ All requested jobs passed

Run: 27993454124
Workflow ref: e2e-migrate/test-openshell-gateway-upgrade-vitest
Requested scenarios: (default — all supported)
Requested jobs: openshell-gateway-upgrade-vitest
Summary: 1 passed, 0 failed, 0 cancelled, 0 skipped

Job Result
openshell-gateway-upgrade-vitest ✅ success

@jyaunches
jyaunches merged commit 3e355f1 into main Jun 23, 2026
103 checks passed
@jyaunches
jyaunches deleted the e2e-migrate/test-openshell-gateway-upgrade-vitest branch June 23, 2026 01:27
@wscurran wscurran added area: e2e End-to-end tests, nightly failures, or validation infrastructure integration: openclaw OpenClaw integration behavior labels Aug 1, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area: e2e End-to-end tests, nightly failures, or validation infrastructure integration: openclaw OpenClaw integration behavior

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants