Skip to content

Add sandbox coverage unit tests - #1684

Merged
cmunley1 merged 1 commit into
NVIDIA-NeMo:mainfrom
hemildesai:codex/opensandbox-coverage-tests
Jun 23, 2026
Merged

cmunley1 merged 1 commit into
NVIDIA-NeMo:mainfrom
hemildesai:codex/opensandbox-coverage-tests

Conversation

@hemildesai

Copy link
Copy Markdown
Contributor

Summary

  • add OpenSandbox provider tests for extension validation, float resource normalization, and retry-loop guard branches
  • add public sandbox/registry tests for missing-spec status, builtin provider loading, and sync async-operation timeouts
  • raises focused sandbox coverage from 98.34% to 99.86%, leaving only an unreachable defensive OpenSandbox create fallback uncovered

Validation

  • UV_CACHE_DIR=/tmp/uv-cache uv run pre-commit run --files tests/unit_tests/test_opensandbox_provider.py tests/unit_tests/test_sandbox.py
  • UV_CACHE_DIR=/tmp/uv-cache uv run pytest tests/unit_tests/test_opensandbox_provider.py tests/unit_tests/test_sandbox.py --cov=nemo_gym.sandbox.providers.opensandbox --cov=nemo_gym.sandbox.providers.registry --cov=nemo_gym.sandbox.api --cov-report=term-missing
  • UV_CACHE_DIR=/tmp/uv-cache uv run pytest tests/unit_tests/ -x

Signed-off-by: Hemil Desai <hemild@nvidia.com>
@copy-pr-bot

copy-pr-bot Bot commented Jun 23, 2026

Copy link
Copy Markdown

This pull request requires additional validation before any workflows can run on NVIDIA's runners.

Pull request vetters can view their responsibilities here.

Contributors can view more details about this message here.

@cmunley1
cmunley1 merged commit aea42d3 into NVIDIA-NeMo:main Jun 23, 2026
17 checks passed
ritaneves pushed a commit that referenced this pull request Jun 25, 2026
## Summary
- add OpenSandbox provider tests for extension validation, float
resource normalization, and retry-loop guard branches
- add public sandbox/registry tests for missing-spec status, builtin
provider loading, and sync async-operation timeouts
- raises focused sandbox coverage from 98.34% to 99.86%, leaving only an
unreachable defensive OpenSandbox create fallback uncovered

## Validation
- `UV_CACHE_DIR=/tmp/uv-cache uv run pre-commit run --files
tests/unit_tests/test_opensandbox_provider.py
tests/unit_tests/test_sandbox.py`
- `UV_CACHE_DIR=/tmp/uv-cache uv run pytest
tests/unit_tests/test_opensandbox_provider.py
tests/unit_tests/test_sandbox.py
--cov=nemo_gym.sandbox.providers.opensandbox
--cov=nemo_gym.sandbox.providers.registry --cov=nemo_gym.sandbox.api
--cov-report=term-missing`
- `UV_CACHE_DIR=/tmp/uv-cache uv run pytest tests/unit_tests/ -x`

Signed-off-by: Hemil Desai <hemild@nvidia.com>
Signed-off-by: Rita Fernandes Neves <rfernandesne@nvidia.com>
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