Skip to content

test(e2e): reduce duplicate stopped-sandbox upgrade coverage - #14462

Merged
prekshivyas merged 3 commits into
mainfrom
codex/reduce-gateway-upgrade-fixture
Nov 16, 2026
Merged

prekshivyas merged 3 commits into
mainfrom
codex/reduce-gateway-upgrade-fixture

Conversation

@rsliter

@rsliter rsliter commented Nov 13, 2026 •

Copy link
Copy Markdown
Collaborator

Outcome

The v0.0.123 gateway upgrade fixture uses one running sandbox and one stopped sandbox. It keeps the recovery assertions and 35-minute installer deadline while removing one repeated stopped-sandbox rebuild. A fast boundary test enforces the retained stopped-sandbox count.

Reason

Full run 43485160707 exhausted the installer deadline in both attempts while the third sandbox waited for post-restore Doctor. The preceding full run passed the same scenario, but its installer took 32 minutes 34 seconds. The terminating deadline is established; the cause of the increased runtime remains unresolved.

Changes

  • Reduce additionalStoppedSandboxes from two to one for the reviewed v0.0.123 fixture.
  • Retain workspace markers, stopped-state restoration and start/stop checks, authenticated agent turns, credential checks, dashboard recovery, systemd replacement and cleanup.
  • Enforce one stopped sandbox in the existing v0.0.123 boundary test. Zero would otherwise disable every stopped-sandbox live assertion without failing that fast test.
  • Document the coverage tradeoff in the owning E2E README. The original topology from fix(gateway): restore missing registration during upgrade #11956 had two stopped sandboxes; this target no longer qualifies that cardinality in one upgrade.

The v0.0.89 fixture, historical version pins, Doctor migrations, live assertions, retry policy and deadlines remain unchanged.

Verification

Latest commit: 615336ba5cf27a32cae5ca2f6f7559418161efcb.

  • node node_modules/vitest/vitest.mjs run --project e2e-support test/e2e/support/openshell-gateway-upgrade-workflow-boundary.test.ts test/e2e/support/openshell-gateway-upgrade-old-installer.test.ts --maxWorkers=2: 62 passed after the guard repair.
  • Mutation check: temporarily setting the stopped count to zero made the v0.0.123 boundary test fail. The fixture bytes were restored and match the passing test input.
  • Five focused gateway-upgrade planner cases passed during initial implementation; the planner and fixture were unchanged by the guard repair.
  • Formatting, git diff --check, installed commit hooks, publication validation and CLI typecheck passed. Hooks ran inside the verified credential-isolation boundary. Plugin and JavaScript-config checks legitimately skipped the incremental test-only repair. Both commits are GitHub Verified and signed off.
  • Source audit traces the fixture count through setup, confirmation, recovery, state checks and cleanup. The diff contains no secrets, API keys or credentials.

Final-commit qualification run 43527075804 passed all six selected live scenarios: both historical gateway-upgrade variants, cloud onboarding, the OpenClaw end-to-end scenario, and OpenClaw/Hermes security posture. The v0.0.123 installer completed in 19m 50.131s under the unchanged 35-minute deadline; v0.0.89 completed in 9m 56.408s. The run finished with 10 successful jobs, 31 unselected skips and no failures. No live retry was used. Exact candidate, base, workflow, receipt, artifact and cleanup records were verified. Commit-bound evidence records the selectors and individual job results. Staging and dedicated hardware were excluded.

Final-commit CI passed. CodeRabbit completed without actionable findings, and all nine Advisor code-finding ledgers are clear. The Advisor planning gate remains red because three planning entries describe the existing manual gateway-upgrade selector as unsupported. The trusted planner accepted that selector and both variants passed in the final-commit run. These coverage requests are fulfilled; the inherited inventory discrepancy is recorded separately. This PR changes neither the inventory nor the gate and claims no passing result for that gate. Independent eligible human approval is still required.

Review notes

Author self-review covered NVIDIA/NemoClaw commit 615336ba5cf27a32cae5ca2f6f7559418161efcb, including sensitive path tools/e2e/openshell-gateway-upgrade-fixture.mts, the owning README and the boundary test. It traced both fixture variants and the affected loops. The guard resolves the two duplicate Advisor verification findings from the previous candidate. No additional source defect was identified. This is not independent review; automated evaluation and independent human approval remain required.


Signed-off-by: Rebecca Sliter [email protected]

Summary by CodeRabbit

  • Documentation

    • Updated gateway-upgrade fixture notes to describe coverage for one running sandbox and one stopped sandbox, including workspace preservation and the stopped sandbox’s lifecycle.
    • Clarified that the fixture no longer includes a second stopped sandbox’s repeated recovery path.
    • The installer deadline remains 35 minutes; runtime still requires live qualification.
  • Tests

    • Added a regression check to verify that the fixture specifies one additional stopped sandbox.

@rsliter rsliter self-assigned this Nov 13, 2026
@copy-pr-bot

copy-pr-bot Bot commented Nov 13, 2026

Copy link
Copy Markdown

Auto-sync is disabled for draft pull requests in this repository. Workflows must be run manually.

Contributors can view more details about this message here.

@coderabbitai

coderabbitai Bot commented Nov 13, 2026 •

Copy link
Copy Markdown
Contributor

Explain Change →

No actionable comments were generated in the recent review.

Walkthrough

The gateway-upgrade fixture now uses one running survivor and one stopped sandbox. The regression test checks the updated count. The README documents the retained checks, 35-minute installer deadline, and need for live runtime qualification.

Changes: Gateway upgrade fixture

Layer / File(s) Summary
Fixture topology and checks
tools/e2e/openshell-gateway-upgrade-fixture.mts, test/e2e/support/openshell-gateway-upgrade-workflow-boundary.test.ts, test/e2e/README.md
The fixture sets additionalStoppedSandboxes to 1, and the regression test expects that value. The README describes the mixed-state topology, retained preservation and lifecycle checks, and unchanged 35-minute installer deadline.

Estimated code review effort: 1 (Trivial) | ~5 minutes

Change: Other

Possibly related issues

Suggested reviewers: cjagwani, deepujain, brandonpelfrey

Merge Risk: Minimal · up to 26060

This change trims duplicate stopped-sandbox coverage in the gateway-upgrade end-to-end test and pins the new count with a fast test. It affects test infrastructure only, with no production impact. The merge risk is minimal.

Architecture risk: Low · up to 26060

The change affects 2 systems.

Changed systems: test, tools

Architecture concerns
No architecture-level concerns identified.

Review details

Systems and components

  • observed — test (service) was modified; 2 changed files map to changed impact.
  • observed — tools (service) was modified; 1 changed file maps to changed impact.

Before / after behavior

  • observed — Modified behavior in test/e2e/README.md: The README documents the v0.0.123 fixture’s two-sandbox mixed-state topology, retained preservation and lifecycle checks, removal of the second stopped sandbox’s repeated recovery path, and unchanged 35-minute installer deadline; it notes that runtime still requires live qualification.
  • observed — Modified behavior in tools/e2e/openshell-gateway-upgrade-fixture.mts: The fixture documents one running survivor and one stopped sandbox, and changes additionalStoppedSandboxes from 2 to 1.
  • observed — Modified behavior in test/e2e/support/openshell-gateway-upgrade-workflow-boundary.test.ts: Adds a test that checks REVIEWED_GATEWAY_REGISTRATION_UPGRADE_FIXTURE.additionalStoppedSandboxes equals 1.
Pre-merge checks: Passed 4

Check name Status Explanation
Description Check Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check Passed The title "test(e2e): reduce duplicate stopped-sandbox upgrade coverage" matches the main change. The v0.0.123 gateway-upgrade fixture drops from two additional stopped sandboxes to one, the README do…
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.
Full details: Title check

Explanation

The title "test(e2e): reduce duplicate stopped-sandbox upgrade coverage" matches the main change. The v0.0.123 gateway-upgrade fixture drops from two additional stopped sandboxes to one, the README documents the tradeoff, and the boundary test now enforces a count of one. The title is concise, specific, and free of file lists, emojis, or vague terms.

Finishing Touches

Generate unit tests (beta)

  • Commit to this branch
  • Create a new PR
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts
Recent review info

Run configuration

Commits

Reviewing files that changed from the base of the PR and between 615336b and 26060ae.

Files selected for processing: 1

  • test/e2e/support/openshell-gateway-upgrade-workflow-boundary.test.ts

Included review availability: This review used your included allowance. Your plan provides up to 12 included reviews per hour; 10 remain after this review.

@rsliter

rsliter commented Nov 13, 2026

Copy link
Copy Markdown
Collaborator Author
Authoring session — opening
Field Status Value Evidence or limit
Harness recorded Codex Desktop; recorded CLI version 0.148.0-alpha.9; source vscode Persisted authoring-session metadata inspected. This is its recorded version, not an inferred current version.
Skills partial Verified complete reads for this change: nemoclaw-contributor-implement-issue; nemoclaw-contributor-create-pr; nemoclaw-maintainer-audit-e2e-assertions The long-running record includes earlier unrelated work and truncated tool results. Those truncated reads do not establish a complete historical skill inventory. Supporting publication, validation and PR-follow-up references were read.
Instruction files partial AGENTS.md (injected); WRITING.md; development reference; E2E authoring reference; test/e2e/README.md; PR and session-report templates; contributor sensitive-path policy These applicable instructions and templates were inspected. Earlier unrelated instruction reads include truncated results, so this is a lower-bound inventory, not every instruction used during the whole session.
Tool calls partial Recorded wrapper-level attempts: exec 14,382; wait 563; sleep 132; spawn_agent 14; send_message 19; wait_agent 51; list_agents 16; followup_task 5; request_user_input 3 Whole authoring session through cutoff, including failed calls and earlier unrelated tasks. Nested calls inside JavaScript wrappers are not comprehensively observable and are not added to wrapper counts. Earlier delegation counts do not imply independent review of this patch.
Session window recorded 2026-08-25T21:31:59.024Z through cutoff 2026-11-13T21:53:00Z; 80 days, 21 minutes, including idle time Last event before cutoff: 2026-11-13T21:52:44.517Z. Fixture implementation activity begins 2026-11-13T21:44:45Z. This is a continuing session with earlier unrelated work; no fork boundary is asserted. Publication and subsequent review are outside this opening cutoff.
Compactions recorded 248 Counted compacted events in the persisted record through cutoff.
Models recorded gpt-5.6-sol; gpt-6.1-sol Recorded turn contexts through cutoff: 1,725 and 148 respectively.
Reasoning levels recorded xhigh; high; medium Recorded turn contexts through cutoff: 1,079 xhigh, 646 high, 148 medium. These are historical settings, not current defaults.

@rsliter

rsliter commented Nov 13, 2026

Copy link
Copy Markdown
Collaborator Author

@coderabbitai review

Please review commit e5b9061. Draft review was skipped; this requests the automated review for the published candidate.

@coderabbitai

coderabbitai Bot commented Nov 13, 2026 •

Copy link
Copy Markdown
Contributor
Action performed

Review finished.

Note: CodeRabbit is an incremental review system and does not re-review already reviewed commits. This command is applicable only when automatic reviews are paused.

@github-code-quality

github-code-quality Bot commented Nov 13, 2026 •

Copy link
Copy Markdown
Contributor

Code coverage overview

Languages: TypeScript

TypeScript / code-coverage/plugin

main 63002cd codex/reduce-gateway... 26060ae +/-
96% 97% +1%
View coverage of the 10 most impacted files.
File main 63002cd codex/reduce-gateway... 26060ae +/-
nemoclaw/src/sh...cy-boundary.cts 100% 97% -3%
nemoclaw/src/onboard/config.ts 98% 96% -2%
nemoclaw/src/ru...time-context.ts 100% 99% -1%
nemoclaw/src/bl...print/runner.ts 95% 95% 0%
nemoclaw/src/bl...ime-identity.ts 97% 97% 0%
nemoclaw/src/bl...t-management.ts 100% 100% 0%
nemoclaw/src/index.ts 94% 99% +5%
nemoclaw/src/de...search-state.ts 0% 100% +100%
nemoclaw/src/on...native-route.ts 0% 100% +100%
nemoclaw/src/search-config.ts 0% 100% +100%

ℹ️ Calculations represent line coverage. Results may change as calculations are updated.


Updated November 16, 2026 17:38 UTC

@rsliter

rsliter commented Nov 13, 2026

Copy link
Copy Markdown
Collaborator Author

Qualified commit: e5b90612a00d0eb49576c4dbae8a9eec11f04c5a.

PR base and trusted workflow: 82e1ad7474ec7175c5b860b2bfa9d7940bc6e75f. Both immutable v2 dispatch receipts and the selected product artifacts were verified.

Selection Result Evidence
targets=openshell-gateway-upgrade Both historical lanes passed. v0.0.123 installer: 22m 29.746s, below the unchanged 35-minute deadline. v0.0.89 installer: 8m 54.697s. Run 43518540544, attempt 1
jobs=cloud-onboard,full-e2e,security-posture Cloud onboarding, the OpenClaw end-to-end scenario, and OpenClaw/Hermes security posture all passed. Run 43523353118, attempt 1

The v0.0.123 evidence records one running survivor plus one stopped sandbox, both workspace markers, stopped-state restoration and lifecycle use, authenticated agent turns, credential non-exposure and a changed systemd service invocation. Cleanup summaries contain no failures, and the workflow Docker-auth cleanup steps passed. Cleanup evidence has the existing callback/command-success limits; it does not establish independent absence for every resource.

These selections cover the deterministic Advisor floor and all required/optional gateway-upgrade recommendations, including the three duplicate unresolved requests caused by the Advisor inventory's manual-only classification. The trusted planner accepts the existing target, as this retained execution demonstrates. Staging and dedicated hardware were not selected. No E2E retry was used.

This is runtime evidence, not merge readiness. Refreshed Advisor verification findings are duplicates of one fast-test gap: enforce the retained stopped-sandbox count. A one-line guard repair is being prepared; this evidence remains bound to the commit above and will not be relabeled as a pass for a later commit.

@rsliter

rsliter commented Nov 13, 2026

Copy link
Copy Markdown
Collaborator Author

@coderabbitai review

Please review the latest commit 615336b, which adds the retained stopped-sandbox guard requested by Advisor. The prior request covered e5b9061 only.

@coderabbitai

coderabbitai Bot commented Nov 13, 2026 •

Copy link
Copy Markdown
Contributor
Action performed

Review finished.

Note: CodeRabbit is an incremental review system and does not re-review already reviewed commits. This command is applicable only when automatic reviews are paused.

@github-actions

Copy link
Copy Markdown
Contributor

PR Review Advisor finished for commit 615336b. Include the Advisor findings in the complete PR feedback collection. Verify and group valid findings before repair.

Request review only when Require no Advisor blockers is green.

All previous runs

@wscurran wscurran added the area: e2e End-to-end tests, nightly failures, or validation infrastructure label Nov 13, 2026
@rsliter

rsliter commented Nov 13, 2026

Copy link
Copy Markdown
Collaborator Author

Qualified commit: 615336ba5cf27a32cae5ca2f6f7559418161efcb.

Combined qualification run 43527075804, attempt 1 completed successfully: 10 jobs passed, 31 unselected jobs skipped, no failures. All six selected live scenarios passed. PR base and trusted workflow: 82e1ad7474ec7175c5b860b2bfa9d7940bc6e75f.

Selection Result
targets=openshell-gateway-upgrade, v0.0.123 Passed. Installer 19m 50.131s, below the unchanged 35-minute deadline.
targets=openshell-gateway-upgrade, v0.0.89 Passed. Installer 9m 56.408s.
jobs=cloud-onboard Passed.
jobs=full-e2e OpenClaw end-to-end scenario passed.
jobs=security-posture OpenClaw passed; Hermes passed.

The immutable v2 dispatch receipt and all six product-artifact hashes and identities were verified. The v0.0.123 artifact records the running survivor and one stopped sandbox, both preserved markers, restored stopped phase, start/stop usability, authenticated agent turns, credential non-exposure and a changed systemd service invocation. Every cleanup summary has zero failures; all six workflow Docker-auth cleanup steps passed. Cleanup evidence retains its existing callback/command-success limits and does not independently establish absence of every resource. Staging and dedicated hardware were unselected. No E2E retry was used.

Final Advisor run 43529448929 has nine clear code-finding ledgers. Its required floor is cloud-onboard,full-e2e,security-posture; the required/optional additional selections and three unresolved planning entries all name openshell-gateway-upgrade. The run above fulfills every one of those requests on this commit. The planning gate still records the manual-only inventory discrepancy; the trusted dispatch receipt and passing gateway-upgrade jobs provide the requested live evidence. The selector inventory and dispatch implementation are unchanged from the PR base.

The retained-count guard also passed the two focused support suites (62 tests). A temporary zero-stopped mutation failed the guard, and the fixture bytes were restored. Independent human approval remains required before merge.

@rsliter
rsliter marked this pull request as ready for review November 14, 2026 00:01
@copy-pr-bot

copy-pr-bot Bot commented Nov 16, 2026

Copy link
Copy Markdown

This pull request requires additional validation before any workflows can run on NVIDIA's runners.

Pull request vetters can view their responsibilities here.

Contributors can view more details about this message here.

@prekshivyas prekshivyas left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Reviewed commit 26060ae. No actionable code findings. The retained mixed-state coverage and documented cardinality tradeoff are consistent; all 67 focused local tests passed. Approval covers the code review. Fresh CI, Advisor, and live qualification for this merged commit remain outstanding; the earlier live evidence applies to 615336b.

@prekshivyas
prekshivyas merged commit b11cc5b into main Nov 16, 2026
56 of 59 checks passed
@prekshivyas
prekshivyas deleted the codex/reduce-gateway-upgrade-fixture branch November 16, 2026 18:39
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

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants