Skip to content

ci: add Gym GPU test workflow - #2630

Merged
chtruong814 merged 5 commits into
NVIDIA-NeMo:mainfrom
chtruong814:chtruong/gpu-tests
Aug 21, 2026
Merged

chtruong814 merged 5 commits into
NVIDIA-NeMo:mainfrom
chtruong814:chtruong/gpu-tests

Conversation

@chtruong814

Copy link
Copy Markdown
Contributor

Summary

  • add the main Gym CI workflow with preflight, unit tests, container build, GPU test matrix, and aggregate status check
  • add shared Gym change classification so docs-only behavior matches the unit-test workflow without label overrides
  • add a simplified CPU/GPU container test action and an initial nvidia-smi E2E placeholder

Testing

  • pytest tests/unit_tests/test_ci_environment.py -q
  • pre-commit run --files .github/actions/classify-changes/action.yml .github/actions/test-template/action.yml .github/workflows/cicd-main.yml .github/workflows/unit-tests.yml tests/e2e/gpu_e2e_test.sh tests/unit_tests/test_ci_environment.py
  • YAML parsing, Bash syntax validation, and git diff --check

Signed-off-by: Charlie Truong <[email protected]>
Signed-off-by: Charlie Truong <[email protected]>
Signed-off-by: Charlie Truong <[email protected]>
@kajalj22

Copy link
Copy Markdown
Contributor

/claude review

@claude

claude Bot commented Aug 20, 2026

Copy link
Copy Markdown
Contributor

SHIP — LGTM, no reliability concerns.

CI/CD plumbing only; no verifier/scorer/async/public-API surface touched. Traced the failure modes that matter for this diff:

  • Aggregate gate is sound. Nemo_CICD_Test (always() && !cancelled()) requires unit_tests + container_build + gpu_e2e_tests all success on the non-docs path, or all skipped on docs-only. A failed unit_tests skips the needs-chained downstream jobs, so neither branch passes → exit 1. No path yields green on a real failure.
  • Classification stays consistent. cicd-main classify_changes and unit-tests detect both invoke the shared classify-changes action with the same pre-flight base_ref. unit-tests' force-run-all only triggers on empty base-ref and only escalates toward the full suite (safe direction — never under-tests).
  • No double runs. unit-tests.yml has no push trigger, so on internal pull-request/[0-9]+ pushes it runs only via cicd-main's workflow_call; GitHub pull_request runs it standalone.
  • test-template uses continue-on-error + explicit exit 1 in the always() report step, correctly failing the job while emitting the summary. All shell interpolation goes through quoted env vars — no injection surface.

New test_ci_environment.py assertions check real wiring (job deps, docs_only gating counts, container push, classifier paths), not vacuous pass-throughs.

Comment thread .github/workflows/cicd-main.yml Resolved
@kajalj22
kajalj22 self-requested a review August 20, 2026 23:56
@chtruong814
chtruong814 merged commit 1db4bab into NVIDIA-NeMo:main Aug 21, 2026
44 checks passed
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]>
kajalj22 added a commit that referenced this pull request Aug 26, 2026
## Summary
- The `nemo-ci-aws-gpu-x2` self-hosted runner pool (added in #2630) is
queuing indefinitely, leaving PRs stuck on the required `Nemo_CICD_Test`
check
- Disable `container_build` and `gpu_e2e_tests` (`if: false`) and drop
them from `Nemo_CICD_Test`'s pass/fail logic so they no longer gate
merges to main
- `provider_e2e_tests` (fireworks-e2e) and unit tests are unaffected and
continue to run

## Test plan
- [ ] Confirm `Nemo_CICD_Test` passes on this PR without waiting on
`container_build` / `gpu_e2e_tests`
- [ ] Re-enable both jobs once the `nemo-ci-aws-gpu-x2` runner pool
backlog is resolved

Signed-off-by: Kajal Jain <[email protected]>

This branch was previously deployed

1 inactive deployment
public — 28c92a64 Deployed Aug 21, 2026 by copy-pr-bot[bot] via release / finalize / notify #1603
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.

2 participants