Skip to content

test: add model-server end-to-end coverage - #2575

Draft
ananthsub wants to merge 1 commit into
NVIDIA-NeMo:mainfrom
ananthsub:ananthsub/e2e-test-suite
Draft

ananthsub wants to merge 1 commit into
NVIDIA-NeMo:mainfrom
ananthsub:ananthsub/e2e-test-suite

Conversation

@ananthsub

@ananthsub ananthsub commented Aug 17, 2026 •

Copy link
Copy Markdown
Contributor

Summary

  • Add a pre-merge CPU workflow that builds the Gym wheel, installs it in a clean environment, and serves it to the isolated component environments created by gym env start.
  • Exercise a deterministic two-request tool loop across the head server, vllm_model, simple_agent, resources server, verifier, and rollout collector.
  • Add a runner-agnostic GPU script that starts external vLLM, loads a real model, runs inference through Gym, and checks the resulting token usage and output artifacts. CI can supply its pinned vLLM image, GPU device, and shared model cache without moving orchestration into workflow YAML.

Exercise the packaged CLI and isolated Gym components through deterministic CPU tool use.
Add a configurable GPU smoke lane for external vLLM runners.

Signed-off-by: Ananth Subramaniam <[email protected]>
@copy-pr-bot

copy-pr-bot Bot commented Aug 17, 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.

@kajalj22

Copy link
Copy Markdown
Contributor

/claude review

@phtran8

phtran8 commented Aug 17, 2026

Copy link
Copy Markdown

No GPU e2e workflow is actually connected to a pre-merge CI job. Is this expected? It already has the CPU gate in cpu-e2e.yml and the runner-agnostic GPU script in run_external_vllm_gpu_e2e.sh. The remaining missing piece is a pre-merge GPU workflow that simply supplies the environment and invokes that script.


cd "$E2E_DIR/workspace"
"$VENV_DIR/bin/gym" env start \
--config "$ROOT_DIR/resources_servers/example_single_tool_call/configs/example_single_tool_call.yaml" \

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

do we will increase the coverage for all resource_servers in CI, or you expect QA side can have more coverage? The same questions are for below --agent as well

chtruong814 added a commit that referenced this pull request Aug 24, 2026
## What does this PR do?

Adds a matrix-backed hosted-provider E2E job to `cicd-main.yml`,
starting with Fireworks and `accounts/fireworks/models/gpt-oss-20b`.

The provider-neutral runner executes directly on `ubuntu-latest` without
the private CI container. It builds and installs the Gym wheel in an
isolated environment, then mirrors draft PR #2575's two-request tool
loop using the existing `example_single_tool_call` fixture:

1. The hosted model calls `get_weather`.
2. Gym executes the tool and the hosted model produces the final answer.

The verifier checks the function call and matching tool output
structurally without requiring deterministic model prose. It also
requires a completed response, positive input/output token usage, and
non-empty assistant output. The agent is bounded to two steps and each
model response to 1024 output tokens.

The job remains part of the overall `Nemo_CICD_Test` gate. Adding
another hosted provider requires another matrix row with its provider
config, model, and API-key secret name.

The provider secret is resolved only into the provider test step
environment and consumed through OmegaConf environment interpolation. It
is not passed as a CLI argument or written into a config file.

Linear:
https://linear.app/nvidia/issue/AUT-769/e2e-testing-with-an-inference-api-provider-fireworks

## Testing

- `pre-commit run --all-files`
- `python -m pytest tests/unit_tests/test_ci_environment.py -q` — 36
passed
- `detect-secrets scan --exclude-files
'pyproject\.toml|\.github/workflows/config/\.secrets\.baseline'
--disable-plugin KeywordDetector`
- YAML/JSON parsing, shell syntax, and `git diff --check`

The live hosted-provider request was not run locally because the
credential was not accessed; the new CI job performs that validation
with the repository secret.

## Checklist

- [ ] I have read the [contributing
guidelines](https://docs.nvidia.com/nemo/gym/latest/contribute/development-setup).
- [x] The change is focused; unrelated "drive-by" edits are tracked as
separate issues/PRs.
- [x] Tests added or updated and pass locally, or N/A for docs-only /
non-code changes (so CI unit/server checks pass when applicable).
- [x] Pre-commit checks pass locally (`pre-commit run --all-files`) (so
CI lint/format/copyright pass).
- [x] All commits have DCO sign-off (`git commit -s`) (so the DCO check
passes).

---------

Signed-off-by: Charlie Truong <[email protected]>
balasaajay added a commit that referenced this pull request Aug 24, 2026
<!-- Thanks for contributing to NeMo Gym! Please fill out the sections
below. -->

## What does this PR do?
Adds an end-to-end GPU test using the infrastructure introduced in #2630
and the test foundation from #2575.

  The test exercises:

Qwen on GPU → vLLM → Gym model server → simple agent → string_match
verifier

- Serves `Qwen/Qwen2.5-0.5B-Instruct` at a pinned Hugging Face revision.
- Runs locally inside the CI container without inference-provider API
keys.
  - Uses one GPU and temperature `0`.
- Verifies a real rollout receives reward `1.0`, uses the expected
model, and contains valid token usage and output.
- Prefetches isolated Gym server environments during the container
build.
  - Persists the Hugging Face cache between runs.
- Uploads rollout, Gym, vLLM, model-readiness, and GPU diagnostic
artifacts even when the test fails.
- Adds bounded readiness checks, evaluation timeouts, and graceful
process cleanup.

## Checklist

- [ ] I have read the [contributing
guidelines](https://docs.nvidia.com/nemo/gym/latest/contribute/development-setup).
- [ ] The change is focused; unrelated "drive-by" edits are tracked as
separate issues/PRs.
- [ ] Tests added or updated and pass locally, or N/A for docs-only /
non-code changes (so CI unit/server checks pass when applicable).
- [ ] Pre-commit checks pass locally (`pre-commit run --all-files`) (so
CI lint/format/copyright pass).
- [ ] All commits have DCO sign-off (`git commit -s`) (so the DCO check
passes).

---------

Signed-off-by: Ananth Subramaniam <[email protected]>
Signed-off-by: Ajay Balasa <[email protected]>
Signed-off-by: Ajay <[email protected]>
Co-authored-by: Ananth Subramaniam <[email protected]>
@ananthsub

Copy link
Copy Markdown
Contributor Author

Related to the performance roadmap in #2998 and performance-regression tracking in #860. This end-to-end harness can provide compatibility coverage for the roadmap; it does not implement an individual optimization.

@svcnvidia-nemo-ci svcnvidia-nemo-ci added area:ci CI workflows, test routing, and repository automation ci CI, automation, test queue, or workflow infrastructure work labels Oct 20, 2026

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area:ci CI workflows, test routing, and repository automation ci CI, automation, test queue, or workflow infrastructure work

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants