Repository navigation
fix(sandbox): reclaim owned session runtimes - #5088
Conversation
Move shared owned-session cleanup and Kilo model-error handling to NVIDIA-NeMo#5088, as requested in review. Keep NVIDIA-NeMo#4764 focused on CoreWeave and its required dependencies, configuration and docs. CoreWeave plus OSWorld resolver-policy checks: 67 passed, 1 skipped. All-file pre-commit passed; private guardwords catalog unavailable. The four removed conformance files now match upstream/main. Signed-off-by: Anson Qian <[email protected]>
7b22ed1 to
fe2ec78
Compare
fe2ec78 to
c82b270
Compare
|
/ok to test c82b270 |
Remove private session files after capture and confirmed cleanup, before stopping owned sandboxes. Always stop the sandbox if runtime removal fails; preserve task output and borrowed-session behavior. Main now contains the Kilo model-error handling, so this PR retains only the shared runtime cleanup fix. Signed-off-by: Anson Qian <[email protected]>
Retry slow package-index and download operations separately, retaining downloaded packages. Install from the completed cache without networking or an inner timeout so dpkg can finish safely. Verify download timeout recovery and timeout placement. Signed-off-by: yaoyu-33 <[email protected]>
yaoyu-33
left a comment
There was a problem hiding this comment.
Expected: slow package downloads retry without interrupting package configuration. Actual: only index/download operations have per-attempt timeouts; installation runs from the cache with --no-download, and interrupted dpkg state is repaired first. All 92 CI-environment tests and full pre-commit passed on the exact final tree; independent review found no blocker. Existing lifecycle and resume-test evidence remains applicable. Issues: none found; fresh required CI is starting.
|
/ok to test 0e887ef |
Refresh package indexes only until the first success so container update hooks cannot erase completed and partial downloads between retries. Cover cache-clearing hooks and index-refresh failure recovery. Signed-off-by: yaoyu-33 <[email protected]>
yaoyu-33
left a comment
There was a problem hiding this comment.
Expected: package download retries retain progress and never interrupt dpkg configuration. Actual: successful index refresh is retained across retries; only index/download phases have inner timeouts, followed by no-download installation. The cache-clearing regression failed before the fix; all 93 CI-environment tests and full pre-commit passed on the exact final tree. Independent review found no blocker. Existing lifecycle and resume-test evidence remains applicable. Issues: none found; fresh required CI is starting.
|
/ok to test 155408b |
|
🔄 Merge queue validation started! You can track the progress here: https://github.com/NVIDIA-NeMo/Gym/actions/runs/42769359123 |
|
🔄 Merge queue validation started! You can track the progress here: https://github.com/NVIDIA-NeMo/Gym/actions/runs/42771359609 |
|
🔄 Merge queue validation started! You can track the progress here: https://github.com/NVIDIA-NeMo/Gym/actions/runs/42773713478 |
Reclaim private session directories after artifact capture and confirmed cleanup, before stopping owned sandboxes. Seeded sessions that never launched are cleaned too; task output and borrowed-session behavior are preserved.
If directory removal fails, log the failure and still stop the owned sandbox. A successful stop completes close because a stopped sandbox cannot retry file removal. Stop failures remain retryable, cancellation still propagates, and provider OOM handling is preserved. Update the Hermes fallback test to cover this contract.
Repair the CI failures encountered while validating this change:
--no-download. This retries slow downloads without killing dpkg during configuration. Repair interrupted dpkg state before retrying; retain the workflow timeout and failure after exhausted retries.Split from #4764; no separate issue is needed for these focused lifecycle and CI repairs. Current main was merged without rewriting the contributor's commits. No configuration migration or verifier/scoring change.
Validation on Linux, Python 3.13.14:
678e8f0e53: four before/after regressions; 132 session/supervisor tests passed; 639 Hermes/shared-session/conformance tests passed, 14 skipped (overlapping session coverage). One real-model smoke throughSandboxSession.executeand LocalProvider independently verified the answer, transcript capture, removal of runtime paths, preservation of task output, and sandbox stop. This validates the shared lifecycle, not full Kilo/Hermes benchmark parity.b9f5e2ae0: a clean-to-dirty checkout identity injection reproduced the fingerprint exception before isolation and passed afterward; all 363 CI-environment and agentic-if-realworld tests passed. CI did not preserve the original identity payloads, so the exact changing field in the first queue run remains unknown. The repaired server shard 2 also passed in CI run 42756951645.155408bec23bd9079730cbec27f1b3fe62e495fa: all 93 CI-environment tests passed, including normal installation, interrupted configuration, exhausted retries, download timeout recovery across cache-clearing update hooks, failed index-refresh recovery, and assertions that timeouts exclude dpkg/configuration.pre-commit run --all-files,bash -n scripts/ci/install_test_dependencies.sh, andgit diff --checkpassed on the final source. Independent review found no remaining blocker.Tests used temporary paths outside Git and the virtualenv on PATH. An initial Python 3.14 run encountered existing Hydra help-string failures; the CI-matching Python 3.13.14 run passed.
Prior author-reported live evidence (October 24): all seven Kilo conformance scenarios passed, and a Qwen3.6 rollout preserved task output and passed independent file verification and runtime cleanup. That evidence remains scoped to its original revision.