test: add e2e inference smoke test - #125
Closed
ericksoa wants to merge 2 commits into
Closed
Conversation
End-to-end test that exercises the full NemoClaw stack: gateway → sandbox → provider → inference. Sends a prompt through inference.local and validates the LLM responds. Requires Ollama running locally with a model pulled. Includes a workaround for the .dockerignore /dist issue (see issue to follow). Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Contributor
Author
|
Superseded by #226, which includes a more complete E2E test covering install → onboard → inference with both live and mock modes. |
6 tasks
cjagwani
added a commit
that referenced
this pull request
Jun 23, 2026
Advisor rerun on 9b271be turned up three required + one warning that the DAC addition surfaced or that the matrix had not yet hardened. - PRA-3 (REQUIRED). The Deep Agents Code matrix row documented the onboarding command as `--agent deepagents-code`, but `resolveAgentName` in `src/lib/agent/defs.ts:586-590` rejects flags not returned by `listAgents()`, which scans `agents/*` directory names. The real runtime ID is `langchain-deepagents-code` (see `agents/langchain-deepagents-code/manifest.yaml:9` and the existing quickstart at `docs/get-started/quickstart-langchain-deepagents-code.mdx`). Update the matrix note to use the canonical ID so the page no longer ships a non-working onboarding command. - PRA-4 (REQUIRED). The Out-of-scope row said "LangChain, AutoGen, CrewAI, or other agent harnesses ... Only OpenClaw and Hermes are integrated", but the Agents table now lists LangChain Deep Agents Code as Experimental. Scope the row to "Other LangChain, AutoGen, CrewAI, or non-listed agent harnesses" and call out Deep Agents Code as the integrated exception so the matrix gives exactly one status per agent. - PRA-5 (REQUIRED). docs/inference/set-up-sub-agent.mdx passed `$NVIDIA_API_KEY` as a positional argv to the demo patch script, and instructed users to write the resulting config to `/tmp/openclaw.updated.json` and `/tmp/auth-profiles.json` with no umask, no mode-0600 protection, and no cleanup. On shared or multi-user hosts this leaks the provider key through process listings and world-readable temp files. Switch to: `umask 077` + `mktemp -d` for the working directory, `trap 'rm -rf' EXIT` for cleanup, pass `NVIDIA_API_KEY` through the environment to both helpers, and use `envsubst` for the auth-profile template so the key never appears in argv. - PRA-6. `_escape_cell` handled pipes, newlines, and HTML control characters but left raw `{` and `}` intact. MDX treats those as expression delimiters, so a future matrix note containing a JSON snippet or destructuring pattern would render as JSX evaluation. Encode `{` and `}` as `{` and `}` so the rendered glyph is preserved while the parse hazard is closed. Add a focused test for the new behavior. Regenerated docs/reference/platform-support.mdx and the .agents/ skills/ + skills/ trees. Signed-off-by: Charan Jagwani <cjagwani@nvidia.com>
7 tasks
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
test/e2e-inference.sh— a full end-to-end smoke test that goes from zero to LLM response through the entire NemoClaw stackOLLAMA_MODELenv var).dockerignoreissue (bug: .dockerignore /dist excludes nemoclaw/dist/ in openshell builds #126)Prerequisites
openshellCLI installedlocalhost:11434with a model pulled (default:nemotron-mini)Test plan
🤖 Generated with Claude Code