Skip to content

feat(sandbox): local provider - #2863

Merged
cmunley1 merged 1 commit into
mainfrom
cmunley1/local-provider
Sep 3, 2026
Merged

cmunley1 merged 1 commit into
mainfrom
cmunley1/local-provider

Conversation

@cmunley1

Copy link
Copy Markdown
Contributor

What does this PR do?

Checklist

  • I have read the contributing guidelines.
  • 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).

@copy-pr-bot

copy-pr-bot Bot commented Aug 28, 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 requested a review from hemildesai August 28, 2026 23:30
@github-actions github-actions Bot added the sla:review-overdue Review response is over the one-business-day SLA label Sep 1, 2026
@github-actions github-actions Bot removed the sla:review-overdue Review response is over the one-business-day SLA label Sep 2, 2026
@cmunley1

cmunley1 commented Sep 3, 2026

Copy link
Copy Markdown
Contributor Author

/ok to test fd66161

Signed-off-by: Christian Munley <[email protected]>
@cmunley1
cmunley1 force-pushed the cmunley1/local-provider branch from fd66161 to dc75435 Compare September 3, 2026 02:18
@cmunley1

cmunley1 commented Sep 3, 2026

Copy link
Copy Markdown
Contributor Author

/ok to test dc75435

@cmunley1
cmunley1 merged commit 743daae into main Sep 3, 2026
39 checks passed
@cmunley1
cmunley1 deleted the cmunley1/local-provider branch September 3, 2026 02:32
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

1 inactive deployment
public — dc754351 Deployed Sep 3, 2026 by copy-pr-bot[bot] via release / finalize / notify #2467
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