Repository navigation
feat(sandbox): local provider - #2863
Merged
Merged
Conversation
hemildesai
approved these changes
Sep 2, 2026
Contributor
Author
|
/ok to test fd66161 |
Signed-off-by: Christian Munley <[email protected]>
cmunley1
force-pushed
the
cmunley1/local-provider
branch
from
September 3, 2026 02:18
fd66161 to
dc75435
Compare
Contributor
Author
|
/ok to test dc75435 |
ekellbuch
added a commit
to ekellbuch/Gym
that referenced
this pull request
Sep 8, 2026
NVIDIA-NeMo#2863 adds a provider that runs commands as host subprocesses with no container. Paired with BACKEND=local it is the cheapest smoke there is: no cluster, no sandbox service, no credentials. It also has no filesystem boundary, which the table now says. Co-Authored-By: Claude Opus 5 <[email protected]> Signed-off-by: Kelly Buchanan <[email protected]>
jkyi-nvidia
pushed a commit
that referenced
this pull request
Sep 11, 2026
<!-- Thanks for contributing to NeMo Gym! Please fill out the sections below. --> ## What does this PR do? <!-- Briefly describe the change and the motivation. Link any related issue, e.g. "Closes #123". --> ## 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: Christian Munley <[email protected]> Signed-off-by: Junkeun Yi <[email protected]>
yuhezhang-ai
pushed a commit
to ManoharPaturi/Gym
that referenced
this pull request
Oct 1, 2026
Cancelling an in-flight local sandbox command previously left its subprocess group running, allowing background children to keep writing into the task workspace. Timeout cleanup also missed children when their shell had already exited, because looking up the departed shell's process-group ID failed. Handle cancellation in the existing process-group kill and bounded reap block, then re-raise `CancelledError`. Use the session leader PID directly as the process-group ID so cleanup still reaches children after shell exit. Preserve the timeout result contract and the bounded reap behavior introduced in NVIDIA-NeMo#2863. The real-subprocess regression exercises the public `AsyncSandbox` API for cancellation and timeout, each with a waiting shell and an exited shell. It waits for the child to start and the requested shell state before starting the provider's timeout, confirms the timeout result or propagated cancellation, then releases the child's pending write and verifies that it cannot write afterward. This is a focused lifecycle bug fix; no separate issue or API migration is needed. Validation at `f027228bc5a55ecd2a6b2e923251df29455839aa`: - `python -m pytest --import-mode=importlib tests/unit_tests/test_local_provider.py -o addopts='' -o log_cli=false -q` — 13 passed. - The exited-shell timeout regression fails because the child writes after timeout with the pre-fix provider from `a6c5fb04f^`, and passes with the final provider. - `pre-commit run --all-files` and `git diff --check` — passed. - The review-fix commit includes DCO sign-off. Full core/sandbox coverage and the eight-shard server suite were not rerun locally for this test-only follow-up. The complete PR remains full-scope under CI classification. - Model rollout: N/A for this subprocess-cleanup fix; the follow-up changes only regression coverage. <!-- gym-verified-bug-hunter:local-sandbox-cancellation-process-leak --> --------- Signed-off-by: yaoyu-33 <[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?
Checklist
pre-commit run --all-files) (so CI lint/format/copyright pass).git commit -s) (so the DCO check passes).