Skip to content

[NVBug 6667736] Fail fast with actionable error when CCC/IOI sandbox is unreachable #4508

Closed

Description

@qiaochuz-nv

Queue rank 20/48 · Difficulty 2/5 · Status on main: not_fixed

NVBug: https://nvbugspro.nvidia.com/bug/6667736 · priority: P0-Must have · ARB: Frankie Siino
GitHub: none found

Summary

Running the IOI benchmark on H100 (ioi_resources_server, an instance of the competitive_coding_challenges resources server), startup aborts with RuntimeError: Sandbox not ready after waiting 240s, which cascades to Process ioi_resources_server finished unexpectedly! and tears down the Ray cluster. The CCC server talks to an external NeMo-Skills sandbox at 127.0.0.1:6000; in the failing run that sandbox was never started, so the server hangs 240s then crashes with an opaque message.

Reproduction

  1. gym env start --benchmark ioi --model-type vllm_model WITHOUT first starting the NeMo-Skills sandbox on 127.0.0.1:6000.
  2. Startup runs _eager_init -> _initialize_runtime -> _setup -> wait_for_sandbox, which polls echo hello world until the 240s deadline, then raises.

Root cause

LocalSandbox (ccc_eval.py:94-145) is only an HTTP client to an external sandbox (NEMO_SKILLS_SANDBOX_HOST/PORT, default 127.0.0.1:6000). The server never launches the sandbox. When it is down, wait_for_sandbox (ccc_eval.py:228-238) swallows every connection error and only reports a generic timeout. The prerequisite is documented in both READMEs but NOT on the public Fern benchmarks page the reporter followed. Missing-prerequisite + poor failure surface, not a probe-logic bug.

Status on main (not_fixed)

wait_for_sandbox is byte-identical since 8194d10 (2026-04-16) and present at HEAD 75bb53e; ccc_eval.py:238 still raises Sandbox not ready after waiting {timeout}s and :235-236 except Exception: pass swallows every probe error. _setup (ccc_eval.py:579) still calls it with no auto-launch/actionable error. A second call site ccc_eval.py:400 raises the same message; a function-level fix covers both. git log <rev>..HEAD -- resources_servers/competitive_coding_challenges shows only Ray/compile-once chores, none touching the sandbox path. fern/.../benchmarks.mdx and environment-list.mdx still omit the prerequisite.

Proposed fix

  • ccc_eval.py wait_for_sandbox: capture the last probe error and raise an actionable message (sandbox URL + "start the NeMo-Skills sandbox; see README"); optionally fail fast on persistent connection-refused instead of waiting 240s.
  • Docs: add the sandbox prerequisite to the public benchmarks/environment-list pages.
  • Tests: tests/test_ccc_eval.py asserting the actionable error when the endpoint is unreachable.
  • Out of scope (separate design): auto co-launching the sandbox.

Validation

No dedicated ioi/CCC QA testcase exists. Most relevant: testcases/environments/ns_tools.py, which probes the same 127.0.0.1:6000 sandbox; testcases/integrations/sandbox_backed_verify.py uses a different nemo_gym.sandbox Docker provider (not the CCC path). Re-run gym env start --benchmark ioi with the sandbox up for the green path; run the new unit test for the down path.

Triage

Difficulty 2/5 — root cause pinpointed; localized code+docs change, unit-testable, but maintainers must agree on scope (error+docs vs auto-launch). Needs GPU: no (fix + unit test).

Reviewer notes

Verifier confirmed all 7 paths and status not_fixed on main (HEAD 75bb53e; raise string unchanged since 8194d10); difficulty held at 2 (2/3 border). Corrections applied: HEAD line numbers are 228-238/579 (the bug-record traceback's 188/496 is the reporter's older checkout); a second call site at ccc_eval.py:400 raises the same error and the function-level fix covers both; and ns_tools.py (same :6000 sandbox) is the most relevant QA case, not sandbox_backed_verify.py.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions