Repository navigation
fix(e2e): verify native plugin tools through agent execution - #14149
Conversation
Signed-off-by: Rebecca Sliter <[email protected]>
|
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. |
|
No actionable comments were generated in the recent review. Walkthrough
Merge Risk:
|
Authoring session — opening
|
Code coverage overviewLanguages: TypeScript TypeScript / code-coverage/plugin
View coverage of the 10 most impacted files.
TypeScript / code-coverage/cli
View coverage of the 10 most impacted files.
ℹ️ Calculations represent line coverage. Results may change as calculations are updated. Updated |
Signed-off-by: Rebecca Sliter <[email protected]>
|
Advisor review disposition for Eight specialist reports are clear. I decline For regression risk, the applicable latest-commit selectors are |
|
PR Review Advisor finished for commit Request review only when Require no Advisor blockers is green. |
|
E2E evidence for tested commit
Dispatch receipts bind that candidate to PR #14149, base All nine Advisor reports were read; no additional specialist selectors were recommended. Applicability and the declined optional finding are recorded here. The earlier Launchable attempt remains a predeployment producer timeout; it is not counted as a pass. This successful focused retry was explicitly authorized. |
prekshivyas
left a comment
There was a problem hiding this comment.
Reviewed c64b225. No actionable findings.
Validation: 62 focused support tests passed, along with E2E mock parity and the assertion-budget check. Verified retained source-install full E2E, OpenClaw security-posture, and Launchable evidence for this exact commit, including cleanup. The retained audit records confirm successful v1 and v2 tool execution.
The Advisor suggestion to assert old-v1-tool absence would add coverage, but I found no demonstrated regression requiring it here. The distinct v2 tool prevents cached v1 alone from satisfying the replacement check.
|
The growth-check failure on The failed job checks out trusted base Cross-branch evidence confirms the identical failure on six other PR branches. Examples: #14120, #14143, and #14122. Among the latest 100 workflow runs inspected, seven failures on those six branches shared this exact fetch-timeout signature; two other failures had a separate setup-hook timeout. All applicable exact-candidate E2Es and cleanup evidence are recorded separately, and the human review approves this candidate. This classification does not turn the failed or pending growth run into a pass or alter GitHub's required status. |
|
Maintainer-approved one-time CI exception for PR #14149 at Rebecca Sliter ( This exception applies only to that failure class and this exact commit. It does not change repository rules or turn the failed check into a pass. All other required checks pass, both commits are GitHub Verified, human approval covers this commit, CodeRabbit has no actionable findings, and all applicable exact-commit E2Es and cleanup passed. The older cancelled maintainer-edits run is superseded by a successful newer run on the same commit. |
Integrate main at b4e4301 to consume #14149. The OpenClaw lifecycle and security checks invoke the fixture through an admitted agent turn, so they preserve disabled-search enforcement. Refs #14084 Signed-off-by: Deepak Jain <[email protected]>
<!-- markdownlint-disable MD041 --> ## Outcome The OpenShell stop and start E2E lane now proves the native plugin survives a restart by running its tool in a normal agent turn and checking the host audit records. Before, it called the tool straight through the gateway `/tools/invoke` endpoint, which the web search guard now blocks, so the lane failed on every run. ## Reason On main run [41581151938](https://github.com/NVIDIA/NemoClaw/actions/runs/41581151938/job/125746285216), install, stop, start, readiness and all state markers passed, then `post-openshell-start-native-plugin-invoke` got `tool_call_blocked`. A direct `/tools/invoke` call has no owned agent turn, and the guard from #13607 blocks tool calls without one. Loosening the guard would reopen #13594, so the test should exercise the plugin the way a user does. ### Related issues Refs #13594 Builds on #14149, now merged, and reuses its `native-plugin-evidence` fixture. ## Changes - `test/e2e/fixtures/native-plugin-evidence.ts`: add `nativePluginAgentInvocationOutcome`. It runs `openclaw agent` once to call the tool, takes the run ID from the gateway envelope, and polls the read-only `openclaw audit` page until that run's tool call has a matching start and success. A failed turn records gateway readiness and returns `failed` without reading audit records. - `test/e2e/live/full-e2e.test.ts`: use the shared helper instead of its own copy of that sequence. The live test keeps its assertion on the outcome. - `test/e2e/live/sandbox-survival.test.ts`: install the shared native plugin fixture before stop. After start, approve the admin scope and assert that the shared helper reports success, with up to five audit polls. The private survival plugin and the direct invoke are removed. - Remove the baseline `echo alive` probe. The native readiness poll right after it runs through the same sandbox exec and needs exit 0 and `ready`, so it already proves exec works. - `tools/e2e/sandbox-survival-timeout-contract.mts`: name ceilings for the admin approval (7 minutes, the shared helper's own 3 and 4 minute waits), the agent turn (2 minutes) and the five audit polls. The final validation phase already used its whole 15 minute budget for marker reads and destroy, so raise it to 30 minutes. This also raises the lane's job timeout through the catalogue. - `test/e2e/support/sandbox-survival-timeout-contract.test.ts`: include the new ceilings in the final validation sum. - `test/e2e/support/native-plugin-evidence.test.ts`: cover the shared helper. A good turn runs once and then polls only the audit page; a failed turn stops without reading audit records. - `test/e2e/mock-parity.json`: map both tests to the survival lane. - `ci/e2e-assertion-budget.json`: lower the budget to the new assertion count, as the ratchet requires. ## Verification - `npx vitest run test/e2e/support/sandbox-survival-timeout-contract.test.ts test/e2e/support/native-plugin-evidence.test.ts test/automation/e2e/e2e-recommendations.test.ts`: passed. - `npx vitest run test/e2e/support/workflow-plan.test.ts test/e2e/support/target-catalogue.test.ts test/e2e/support/sandbox-survival-timeout-contract.test.ts`: 142 passed. - `node scripts/checks/e2e-assertion-census.mts --check`: passed. - `node scripts/checks/e2e-mock-parity.mts --base origin/main --head HEAD`: passed. - `npx tsc -p tsconfig.cli.json --noEmit`, oxlint and oxfmt on the changed files: clean. - Pre-commit hooks: passed. - The selected `sandbox-survival` and `full-e2e` E2E runs on this PR are the live checks. - The diff has no secrets, API keys or credentials. --- Signed-off-by: Deepak Jain <[email protected]> <!-- This is an auto-generated comment: release notes by coderabbit.ai --> <!-- coderabbit-ai-generated:v1 --> ## Summary by CodeRabbit * **Tests** * Expanded end-to-end checks for native plugin runs, including verifying successful completion after a sandbox restart and confirming the recorded tool outcome. * Added coverage for failed plugin runs and retained diagnostic evidence. * Updated timeout checks to account for approval, plugin execution, and audit verification. * Adjusted test assertion budgets and test-suite coverage. <!-- end of auto-generated comment: release notes by coderabbit.ai --> --------- Signed-off-by: Rebecca Sliter <[email protected]> Signed-off-by: Deepak Jain <[email protected]> Co-authored-by: Rebecca Sliter <[email protected]>
Outcome
Full E2E verifies that a native plugin tool completes through a normal OpenClaw agent turn, both before and after replacing the plugin. The check no longer depends on weather arguments or response fields.
Reason
The Brev Launchable failure called
/tools/invokedirectly, without the agent-run admission required by the search guard. That request returned403 tool_call_blocked. Exercising the normal agent path preserves the guard and tests the supported execution path.Changes
Verification
vitest run --project e2e-support test/e2e/support/native-plugin-evidence.test.ts test/e2e/support/full-e2e-gateway.test.ts --coverage=false: 62 tests passed.vitest run --project integration test/automation/e2e/e2e-mock-parity.test.ts --coverage=false: 55 tests passed. The E2E mock/live parity gate also passes with the registered fixture and fast test.npm run e2e:assertions:check: passed with 1,285 direct assertions across 77 live test files; no budget increase.c64b2256e402f6bd358c37971b1aca9b042125bd.ABSENT.Signed-off-by: Rebecca Sliter [email protected]
Summary by CodeRabbit