Repository navigation
shell: add a script for manual ephemeral sandbox shell - #3330
Merged
Merged
Conversation
Can be used to create an ephemeral sandbox and connect to its tty to perform any kind of manual tests. ``` repo/Gym$ uv sync --extra sandbox repo/Gym$ python -m nemo_gym.sandbox.shell --config nemo_gym/sandbox/providers/opensandbox/configs/opensandbox.yaml Creating ephemeral sandbox from 'docker.io/library/python:3.12-slim'... Sandbox ready. Exit the remote shell to destroy it. bash-5.2# cat /etc/os-release PRETTY_NAME="Debian GNU/Linux 13 (trixie)" NAME="Debian GNU/Linux" VERSION_ID="13" VERSION="13 (trixie)" VERSION_CODENAME=trixie DEBIAN_VERSION_FULL=13.6 ID=debian HOME_URL="https://www.debian.org/" SUPPORT_URL="https://www.debian.org/support" ``` Signed-off-by: Piotr Sarna <[email protected]>
psarna
force-pushed
the
psarna/sandbox-shell-script
branch
from
September 11, 2026 19:16
9c40c9d to
d9b2122
Compare
bxyu-nvidia
approved these changes
Sep 11, 2026
Contributor
|
/ok to test d9b2122 |
psarna
marked this pull request as ready for review
September 11, 2026 19:37
3 tasks done
kajalj22
added a commit
that referenced
this pull request
Sep 14, 2026
## Background The full test suite failed on `main` with exact coverage **94.46%**. Root cause (per triage on PR #3330's merge): the coverage gate compares at zero-decimal precision, so an actual **94.97%** rounded to 95% and incorrectly passed the 95% gate before merge. This PR addresses only that rounding gap. It intentionally excludes the stale-PR-head / merge-current-main fix tracked separately in #3338, and does not add tests to close the pre-existing coverage gap (a separate concern). ## What changed - `pyproject.toml`: set `[tool.coverage.report] precision = 2` so `fail_under` compares the exact percentage — 94.97 < 95 now exits nonzero. - `tests/unit_tests/test_ci_environment.py`: assert `precision == 2` and `fail_under == 95.0` in the coverage config. ## Note With this change alone, the repo's aggregate coverage is still below 95%, so the coverage-gated CI job on this PR is expected to fail until coverage is separately brought up. This PR only fixes the gate's precision, not the underlying coverage shortfall. ## Test plan - [x] `pytest tests/unit_tests/test_ci_environment.py` passes locally - [x] `pre-commit run --files pyproject.toml tests/unit_tests/test_ci_environment.py` passes - [x] DCO sign-off on the commit --------- Signed-off-by: Kajal Jain <[email protected]>
This branch was previously deployed
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.
What does this PR do?
Can be used to create an ephemeral sandbox and connect to its tty to perform any kind of manual tests.
Checklist
pre-commit run --all-files) (so CI lint/format/copyright pass).git commit -s) (so the DCO check passes).