Repository navigation
fix(sandbox): confirm OOM from control-plane lifecycle reports - #5605
Conversation
|
Auto-sync is disabled for draft pull requests in this repository. Workflows must be run manually. Contributors can view more details about this message here. |
|
/ok to test 0843585 |
|
/ok to test fa7f46c |
|
A real-task run of DeepSWE's OOM form on this head still ended as a retryable |
|
Correction to the line above: the provider did report the OOM in the 410 body ( |
|
/ok to test eb9568f |
|
Giulio is folding this into #5127 and taking it over. The commit to take is eb9568f, the provider fix plus its tests (2 files); nothing from the base branch. The tests are the three parametrized 410-ended cases ( |
eb9568f to
1af5748
Compare
Signed-off-by: Giulio Lovisotto <[email protected]>
Signed-off-by: Giulio Lovisotto <[email protected]>
Signed-off-by: Giulio Lovisotto <[email protected]> (cherry picked from commit 3ecb8478b9c5c07bc79c0d8e01379004d690f885)
0f485c9 to
071b862
Compare
An expired retire may mark an attempt before its cleanup runs. Refuse to publish such records and cache an export failure with recovery instructions. Signed-off-by: Giulio Lovisotto <[email protected]>
|
Fixed the failing checkpoint-worker CI case in 31862c7. An expired retire request could mark an attempt without stopping it, allowing a later checkpoint to export it; the shared commit path now refuses those records before writing and returns a cached export failure with recovery instructions. Added a deterministic regression without changing the randomized test. All 456 checkpoint environment/control/sequence/worker/resource tests and scoped pre-commit checks pass. Independent review requested the explicit export-failure contract; that correction is included. Fresh CI is running, so full CI success is not yet confirmed. |
|
CI is green at 31862c7 after rerunning the failed jobs: https://github.com/NVIDIA-NeMo/Gym/actions/runs/42191364027/attempts/2 The checkpoint regression passed. The subsequent failures were the process-supervisor grace-cleanup test and Scale-SWE bounded shutdown test; both passed unchanged on rerun. Before rerunning, the exact Linux cleanup driver passed 20 consecutive local runs and all 53 Scale-SWE session tests passed. No source changes or test skips were added for these intermittent failures. |
|
🔄 Merge queue validation started! You can track the progress here: https://github.com/NVIDIA-NeMo/Gym/actions/runs/42198947704 |
|
🔄 Merge queue validation started! You can track the progress here: https://github.com/NVIDIA-NeMo/Gym/actions/runs/42201681584 |
|
🔄 Merge queue validation started! You can track the progress here: https://github.com/NVIDIA-NeMo/Gym/actions/runs/42210193125 |
A command-status HTTP 410 response can contain an ended report from the sandbox process, even when routed through the server proxy. OpenSandbox now confirms OOM from the control plane's persisted lifecycle report, requiring the requested sandbox ID, its single owned pod, the user container, and an explicit current termination reason. The same bounded lookup serves command execution and PTY loss, including after the pod disappears.
This replaces the unmerged
diagnostics.ended_report_oomoption. Generic lifecycle reasons and unrecognized, sidecar, init, pooled or contradictory reports remain unconfirmed; HTTP 410 bodies and causal failures remain available for diagnosis. Scoring and health attribution continue to use the shared recorded policy decision from the stack below. This fourth PR builds on #5129; it needs no separate issue because it completes the sandbox failure work in #5127.The reported container exit code remains in the diagnostic reason;
SandboxFailureDetails.exit_codestays unset when the command exit was not observed. This addresses the container-versus-command evidence distinction raised in review.Review clarifications
This supersedes the earlier plan to fold a narrow HTTP-410 ended-body interpretation into #5127: the sandbox process can supply that body, so it cannot independently prove the cause of its own termination. This PR uses the persisted control-plane report and remains the fourth stack member.
The supported parser names the user-container and single-pod suffix assumptions explicitly; it does not claim support for arbitrary deployment layouts. Lifecycle evidence is considered before optional inspect fallback. The lifecycle test module now reflects that source, and a real SDK 410 regression under both FAIL and RETRY verifies that command retry does not introduce diagnostic polling.
Validation:
Compatibility: remove
diagnostics.ended_report_oomfrom configurations using the unmerged option. Recognized lifecycle evidence is checked by default; the existingdiagnostics.inspect_oomfallback remains optional. No benchmark-specific scoring rule or new failure-record field is introduced.Existing diagnostic bounds still apply: a full request failure log can omit a later OOM event, in which case consumers retain the omission marker and do not infer a scored OOM without its canonical event. This change does not redesign report capacity or other benchmark consumers.
Latest review fixes: the final assembled selection at
6f247486a3ff58b72ca9d83933960f4c547e6c2dpassed 949 tests; scoped pre-commit and import-linter passed. Individual fixes received independent Claude review and one fix pass. These checks do not assert full repository CI or benchmark-wide score invariance.