Repository navigation
Description
Queue rank 46/48 · Difficulty 4/5 · Status on main: not_fixed
NVBug: https://nvbugspro.nvidia.com/bug/6789990 · NVBug priority: Unprioritized · ARB: Ananth Subramaniam
GitHub: none found (verifier introduced in PR #1201; JIRA sync NMGYM-59)
Summary
The EvalPlus resources server has two verifier defects. A: a valid solution in a generic ``` fence (no python tag) extracts to empty and gets reward 0 without execution. B: a module-level infinite loop is reported as base_status=fail instead of timeout. Both still reproduce on current main (HEAD 75bb53e) and on r0.7.0 rc1 per the 2026-10-08 comment.
Reproduction
./run.sh test evalplus --ref <sha> --no-ai-log (QA testcase testcases/environments/evalplus.py), or POST canned HumanEval/2 code to the live /verify: a generic_fence control returns extracted_model_code=null, reward 0; a timeout control (while True: pass) returns base_status=fail.
Root cause
A (confirmed): resources_servers/evalplus/app.py:115 extract_code_strict. For a complete generic block, completion.rfind(generic_fence) lands on the closing fence; rest.find("```") after it finds nothing, so it returns "" (lines 119-122). Introduced in PR #1201, unchanged since (git blame commit 3bbe185).
B (hypothesis, unverified): evalplus_integration/runner.py forwards EvalPlus status verbatim. The bug's isolated diagnostic shows a Ray-style SIGTERM handler raising SystemExit is caught as BaseException inside EvalPlus's watchdog child, overwriting timeout with fail. The exact in-Ray causal chain is unverified.
Status on main (not_fixed)
- A:
app.py:115stillstart = completion.rfind(generic_fence);tests/test_app.py:111-119test_falls_back_to_generic_fenceasserts== "", codifying the defect. - B:
runner.py:78returnsbase_outcome[0]with no timeout preservation. git log 06123724..HEAD -- resources_servers/evalplus/= only Ray-extra chores (chore(server): request the ray extra from servers that use Ray #4301,chore(server): declare Ray usage for built-in servers #3728,feat: add legacy environment servers #3724); no extraction/timeout fix.gh pr list "evalplus fence"= none.
Proposed fix
- A: rewrite
extract_code_strictto pick the last complete fenced block (regex over```(lang)?\n...```), preferringpython-tagged, rejecting unclosed blocks. Updatetest_falls_back_to_generic_fenceto expect the extracted code; add generic+python-mixed cases. - B: in
runner.py(or the Ray worker), neutralize the SIGTERM->SystemExit handler so EvalPlus's watchdog maps termination totimeout, or detect the watchdog-terminated case and relabel. Confirm the handler-inheritance hypothesis first. Add a Ray-task unit test assertingtimeout.
Validation
Re-run QA testcases/environments/evalplus.py controls generic_fence (base/plus pass, reward 1) and timeout (base_status=='timeout', reward 0); run resources_servers/evalplus/tests/test_app.py.
Triage
Difficulty 4/5 — A is an easy localized extractor fix, but B is cross-component (Ray + EvalPlus watchdog signals) with an unconfirmed root cause and both must land to close. Effort ~12 h. Needs GPU/model: no (controls hit the verifier directly). External dependency: EvalPlus 0.3.1 watchdog + Ray.
Reviewer notes
Verifier confirmed not_fixed and difficulty 4 (high confidence); QA testcase name and control labels (generic_fence, timeout) match the bug record. Corrections applied: Root-cause A range tightened to app.py:115 (the generic-fence fallback line); Reproduction now includes the bug's --ref <sha> --no-ai-log flags for exact replay; Finding B kept explicitly labelled hypothesis/unverified so the Ray-handler mechanism is not read as confirmed. (Estimate 4 stored as the team's nearest point, L.)
Activity