Skip to content

test(e2e): use dependency-free ClawHub fixture - #8854

Merged
prekshivyas merged 3 commits into
mainfrom
codex/e2e-clawhub-dependency-free
Aug 12, 2026
Merged

prekshivyas merged 3 commits into
mainfrom
codex/e2e-clawhub-dependency-free

Conversation

@senthilr-nv

@senthilr-nv senthilr-nv commented Aug 12, 2026 •

Copy link
Copy Markdown
Collaborator

Summary

The restricted-network E2E now reinstalls an official dependency-free scoped ClawHub plugin. This keeps the test focused on ClawHub install and runtime-load behavior instead of failing when the previous fixture requests a nested npm package that the zero-preset policy correctly denies.

Affected failure: E2E run 31561831175, job 94006031731.

Related Issue

Related to #4104.

Changes

  • Replace @openclaw/[email protected] with the official dependency-free @openclaw/[email protected] fixture.
  • Use OpenClaw's --force install mode to replace the Brave plugin already present in the managed image while retaining install-policy and safety checks.
  • Update the expected plugin display name and runtime identifier.
  • Preserve the zero-preset network policy and scoped ClawHub install and runtime-load assertions.

Type of Change

  • Code change (feature, bug fix, or refactor)
  • Code change with doc updates
  • Doc only (prose changes, no code sample modifications)
  • Doc only (includes code sample changes)

Quality Gates

  • Tests added or updated for changed behavior
  • Existing tests cover changed behavior — justification:
  • Tests not applicable — justification:
  • Docs updated for user-facing behavior changes
  • Docs not applicable — justification: The change only replaces a version-pinned live E2E fixture and its package-specific assertions. The documented ClawHub and restricted-policy behavior is unchanged.
  • Sensitive paths changed (security, policy, credentials, preflight, onboarding, inference, runner, sandbox, or messaging)
  • Sensitive-path review completed or maintainer-approved waiver recorded — reviewer/approval link/justification: The completed review confirmed the official pinned ClawHub artifact has a clean scan, no install-time dependencies, and source-linked provenance. OpenClaw's --force mode overwrites the existing plugin without bypassing security.installPolicy or remaining install safety checks. The zero-preset policy is unchanged.
  • Non-success, skipped, or missing CI check accepted by maintainer — check name, approval link, and follow-up issue:

Documentation Writer Review

  • Documentation writer subagent reviewed the completed changes
  • Result: no-docs-needed
  • Evidence: Against current main, the effective diff changes only test/e2e/live/network-policy.test.ts. The scoped ClawHub install and runtime-load behavior and restricted network-policy contract remain unchanged.
  • Agent: Codex Desktop

DGX Station Hardware Evidence

  • Tested on DGX Station
  • Tested commit: Not applicable; scripts/prepare-dgx-station-host.sh is unchanged.
  • Station profile/scenario: Not applicable.
  • Result: Not applicable.
  • Supporting evidence: Not applicable.

Verification

  • PR description includes a Signed-off-by: line and every commit appears as Verified in GitHub
  • Normal pre-commit, commit-msg, and pre-push hooks passed, or npm run validate:pr passed after refreshing origin/main when hooks were skipped or unavailable
  • Targeted behavior tests pass for the current change set, or tests are marked not applicable above — command/result or justification: E2E-support coverage passed 58/58, the OpenShell migration contract passed 9/9, npm run build:cli and npm run typecheck:cli passed, and git diff --check passed. clawhub package inspect resolved the exact official @openclaw/[email protected] artifact with runtime ID brave, a clean scan, and source-linked provenance.
  • Applicable broad gate passed — npm test for broad runtime/test-harness changes; npm run check for repo-wide validation/coverage changes — command/result: Not applicable; this is a one-fixture live E2E correction covered by focused support and contract tests plus normal path-scoped hooks.
  • Quality Gates section completed with required justifications or waivers
  • No secrets, API keys, or credentials committed
  • npm run docs builds without warnings (doc changes only)
  • Doc pages follow the style guide (doc changes only)
  • New doc pages include SPDX header and frontmatter (new pages only)

Signed-off-by: Senthil Ravichandran [email protected]

@senthilr-nv senthilr-nv self-assigned this Aug 12, 2026
@copy-pr-bot

copy-pr-bot Bot commented Aug 12, 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 Aug 12, 2026 •

Copy link
Copy Markdown
Contributor

Review Change Stack

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info
⚙️ Run configuration

Configuration used: Path: .coderabbit.yaml

Review profile: CHILL

Plan: Enterprise

Run ID: 4820844c-2a70-4929-a653-6f242b3b13e2

📥 Commits

Reviewing files that changed from the base of the PR and between 88eecd8 and 34b38de.

📒 Files selected for processing (1)
  • test/e2e/live/network-policy.test.ts

📝 Walkthrough

Walkthrough

The scoped ClawHub lifecycle test now installs clawhub:@openclaw/brave-plugin@2026.7.1. It verifies the Brave plugin and inspects it using the brave identifier.

Changes

ClawHub lifecycle test

Layer / File(s) Summary
Brave plugin installation and validation
test/e2e/live/network-policy.test.ts
The test replaces the Kitchen Sink fixture with the Brave plugin. Assertions now check the Brave plugin and its brave identifier.

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

Possibly related PRs

  • NVIDIA/NemoClaw#8843: Modifies the same scoped ClawHub lifecycle test and related plugin assertions.

Suggested labels: area: e2e, chore

Suggested reviewers: prekshivyas, cv

🚥 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
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.
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check ✅ Passed The title clearly describes the main change: replacing the E2E test fixture with a dependency-free ClawHub fixture.
✨ Finishing Touches 💡 1
📝 Generate docstrings 💡
  • Create stacked PR
  • Commit on current branch
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch codex/e2e-clawhub-dependency-free

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

@github-code-quality

github-code-quality Bot commented Aug 12, 2026 •

Copy link
Copy Markdown
Contributor

Code Coverage Overview

Languages: TypeScript

TypeScript / code-coverage/plugin

The overall coverage in commit 9bd38ce in the codex/e2e-clawhub-de... branch remains at 96%, unchanged from commit 6174550 in the main branch.

TypeScript / code-coverage/cli

The overall coverage in commit 9bd38ce in the codex/e2e-clawhub-de... branch remains at 82%, unchanged from commit c7f4067 in the main branch.

Show a code coverage summary of the most impacted files.
File main c7f4067 codex/e2e-clawhub-de... 9bd38ce +/-
src/lib/actions...er-lifecycle.ts 94% 85% -9%
src/lib/onboard...der/snapshot.ts 83% 75% -8%
src/lib/messagi...annel-config.ts 99% 92% -7%
src/lib/securit...ntial-filter.ts 95% 91% -4%
src/lib/onboard...press-resume.ts 81% 78% -3%
src/lib/state/o...d-checkpoint.ts 87% 90% +3%
src/lib/trace.ts 90% 94% +4%
src/lib/policy/...ne-exclusion.ts 87% 92% +5%
src/lib/cua/run...ime-manifest.ts 84% 91% +7%
src/lib/cua/bounded-file.ts 84% 94% +10%

Updated August 12, 2026 05:44 UTC

@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 draft commit 38b462f. The replacement ClawHub fixture is version-pinned, scoped, and reports no npm dependencies; the assertions update only its display and runtime identifiers while preserving the restricted-network lifecycle. I found no blocking diff issue. The PR is draft and its required checks are still running, so I am not approving it.

@github-actions

github-actions Bot commented Aug 12, 2026 •

Copy link
Copy Markdown
Contributor

PR Review Advisor — No blocking findings reported

Advisor assessment: No blocking advisor findings reported
Next action: No advisor follow-up needed.
Findings: 0 blockers · 0 warnings · 0 suggestions

Model lanes

  • GPT-5.6 Terra (primary): Completed · high confidence · 0 blockers · 0 warnings · 0 suggestions
  • Nemotron 3 Ultra (second opinion): Completed · high confidence · 0 blockers · 0 warnings · 0 suggestions
  • Model comparison: normalized findings match; normalized terminology decisions match; normalized E2E selections match; severity counts match.

Second-opinion terminology and E2E selections are advisory. Live E2E does not run automatically for pull requests.

E2E guidance

Advisory only. A maintainer can dispatch the default E2E suite for the commit under review.

Recommended E2E: inference-routing

Manual-only E2E: network-policy
The manual PR workflow does not run these selectors for the commit under review. Run them from reviewed code on main.

Workflow run details

This automated review informs maintainers. Warnings and suggestions do not require a response. A maintainer decides whether to merge.

Signed-off-by: Senthil Ravichandran <[email protected]>
@senthilr-nv
senthilr-nv marked this pull request as ready for review August 12, 2026 05:28

@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 exact draft head 34b38de631. The replacement is pinned to the official @openclaw/[email protected]; its package metadata has no runtime dependencies and only peers on OpenClaw. The diff preserves the restricted-network ClawHub install/list/runtime-inspect lifecycle and updates only the fixture identity. I found no blocking diff issue. The PR is draft and its exact-head CI is still running, so I am not approving it.

@senthilr-nv

Copy link
Copy Markdown
Collaborator Author

Refreshed onto current main at 9bd38ce. CodeRabbit and the exact-head reviews found no actionable issues, the final documentation review receipt is current, and the effective diff remains limited to the ClawHub E2E fixture. Ready for review when you have a chance, @prekshivyas.

@prekshivyas
prekshivyas merged commit 5aaf22b into main Aug 12, 2026
68 of 70 checks passed
@prekshivyas
prekshivyas deleted the codex/e2e-clawhub-dependency-free branch August 12, 2026 06:09
cv pushed a commit that referenced this pull request Aug 12, 2026
## Summary

Format the Hermes gateway log-tail constant on current `main`. The
repository-wide Biome hook otherwise rewrites this line and fails
unrelated PR static checks, including run `31564155093`, job
`94020740879` on PR #8854.

## Changes

- Apply the current Biome formatting to
`HERMES_GATEWAY_LOG_TAIL_COMMAND`.
- Preserve the exact command value and runtime behavior.

## Type of Change

- [x] Code change (feature, bug fix, or refactor)
- [ ] Code change with doc updates
- [ ] Doc only (prose changes, no code sample modifications)
- [ ] Doc only (includes code sample changes)

## Quality Gates

- [ ] Tests added or updated for changed behavior
- [ ] Existing tests cover changed behavior — justification:
- [x] Tests not applicable — justification: This change only reflows an
existing string literal; its value and runtime behavior are unchanged.
- [ ] Docs updated for user-facing behavior changes
- [x] Docs not applicable — justification: There is no user-facing
behavior change.
- [ ] Sensitive paths changed (security, policy, credentials, preflight,
onboarding, inference, runner, sandbox, or messaging)
- [ ] Sensitive-path review completed or maintainer-approved waiver
recorded — reviewer/approval link/justification:
- [ ] Non-success, skipped, or missing CI check accepted by maintainer —
check name, approval link, and follow-up issue:

## Documentation Writer Review

- [x] Documentation writer subagent reviewed the completed changes
- Result: `no-docs-needed`
- Evidence: The effective diff from current `main` to commit `820239e1f`
only applies Biome formatting to `HERMES_GATEWAY_LOG_TAIL_COMMAND` in
`src/lib/actions/sandbox/gateway-restart.ts`. The command value and
runtime behavior are unchanged. The exact all-files Biome hook and `git
diff --check` pass, so no user-facing documentation change or runtime
test is required.
- Agent: Codex Desktop
<!-- docs-review-head-sha: 820239e -->
<!-- docs-review-agents-blob-sha: c4923a3 -->

## DGX Station Hardware Evidence

- [ ] Tested on DGX Station
- Tested commit:
- Station profile/scenario:
- Result:
- Supporting evidence:

## Verification

- [x] PR description includes a `Signed-off-by:` line and every commit
appears as `Verified` in GitHub
- [x] Normal `pre-commit`, `commit-msg`, and `pre-push` hooks passed, or
`npm run validate:pr` passed after refreshing `origin/main` when hooks
were skipped or unavailable
- [x] Targeted behavior tests pass for the current change set, or tests
are marked not applicable above — command/result or justification: Tests
are not applicable because the string value is unchanged; `prek run
biome-format --all-files` and `git diff --check` pass.
- [ ] Applicable broad gate passed — `npm test` for broad
runtime/test-harness changes; `npm run check` for repo-wide
validation/coverage changes — command/result:
- [x] Quality Gates section completed with required justifications or
waivers
- [x] No secrets, API keys, or credentials committed
- [ ] `npm run docs` builds without warnings (doc changes only)
- [ ] Doc pages follow the [style
guide](https://github.com/NVIDIA/NemoClaw/blob/main/docs/CONTRIBUTING.md)
(doc changes only)
- [ ] New doc pages include SPDX header and frontmatter (new pages only)

---
Signed-off-by: Senthil Ravichandran <[email protected]>


<!-- This is an auto-generated comment: release notes by coderabbit.ai
-->

## Summary by CodeRabbit

* **Refactor**
* Reformatted the Hermes gateway log-tail command without changing its
behavior.

<!-- end of auto-generated comment: release notes by coderabbit.ai -->

Signed-off-by: Senthil Ravichandran <[email protected]>
@wscurran wscurran added the chore Build, CI, dependency, or tooling maintenance label Aug 25, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

chore Build, CI, dependency, or tooling maintenance

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants