Skip to content

test(e2e): add TC-INF-02, TC-INF-03, TC-INF-09 provider inference tests#2012

Draft
TruongNguyenG wants to merge 1 commit intoNVIDIA:mainfrom
TruongNguyenG:feat/e2e-inf-09-compatible-endpoint
Draft

test(e2e): add TC-INF-02, TC-INF-03, TC-INF-09 provider inference tests#2012
TruongNguyenG wants to merge 1 commit intoNVIDIA:mainfrom
TruongNguyenG:feat/e2e-inf-09-compatible-endpoint

Conversation

@TruongNguyenG
Copy link
Copy Markdown
Contributor

Summary

Add end-to-end tests for three inference providers to test-inference-routing.sh, covering the OpenAI, Anthropic, and custom OpenAI-compatible endpoint paths.

Related Issue

Closes #1906

Changes

  • TC-INF-02: OpenAI provider — onboard with NEMOCLAW_PROVIDER=openai, send prompt through sandbox proxy, verify response
  • TC-INF-03: Anthropic provider — same flow via Anthropic Messages API
  • TC-INF-09: Custom OpenAI-compatible endpoint — onboard with user-provided endpoint URL and model, verify inference through sandbox proxy

All three tests skip gracefully when their API keys are not set. Full end-to-end verification will be enabled once the corresponding secrets (OPENAI_API_KEY, ANTHROPIC_API_KEY, COMPATIBLE_API_KEY) are added to the repository.

TC-INF-09 validated locally with inference-api.nvidia.com (Llama 3.3 70B).

Type of Change

  • Code change (feature, bug fix, or refactor)

Verification

  • npx prek run --all-files passes
  • Tests added or updated for new or changed behavior
  • No secrets, API keys, or credentials committed
  • TC-INF-09 tested locally: PASS (onboard + inference through sandbox proxy)
  • TC-INF-02, TC-INF-03: code complete, will PASS once API keys are provided as repo secrets

AI Disclosure

  • AI-assisted — tool: Cursor

Signed-off-by: Truong Nguyen tgnguyen@nvidia.com

@coderabbitai
Copy link
Copy Markdown
Contributor

coderabbitai bot commented Apr 17, 2026

Important

Review skipped

Draft detected.

Please check the settings in the CodeRabbit UI or the .coderabbit.yaml file in this repository. To trigger a single review, invoke the @coderabbitai review command.

⚙️ Run configuration

Configuration used: Path: .coderabbit.yaml

Review profile: CHILL

Plan: Pro Plus

Run ID: 166f3e69-d08f-4589-b945-615c8f3dc770

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

Use the checkbox below for a quick retry:

  • 🔍 Trigger review
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests

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

Add end-to-end tests for three inference providers in test-inference-routing.sh:

- TC-INF-02: OpenAI provider — onboard, send prompt through sandbox proxy,
  verify response. Requires OPENAI_API_KEY.
- TC-INF-03: Anthropic provider — same flow via Anthropic Messages API.
  Requires ANTHROPIC_API_KEY.
- TC-INF-09: Custom OpenAI-compatible endpoint — onboard with user-provided
  endpoint URL and model, verify inference through sandbox proxy.
  Requires NEMOCLAW_ENDPOINT_URL, NEMOCLAW_COMPAT_MODEL, COMPATIBLE_API_KEY.

All three tests skip gracefully when their API keys are not set. Full
end-to-end verification will be enabled once the corresponding secrets
are added to the repository.

TC-INF-09 validated locally with inference-api.nvidia.com (Llama 3.3 70B).

Signed-off-by: Truong Nguyen <tgnguyen@nvidia.com>
Made-with: Cursor
@TruongNguyenG TruongNguyenG force-pushed the feat/e2e-inf-09-compatible-endpoint branch from c192a05 to bc596c6 Compare April 17, 2026 12:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant