{"record":{"id":"49d4f07873107f06","repo":"zed-industries/zed","slug":"verifier-produced-no-results-exit-completed-retu","errorCode":null,"errorMessage":"verifier produced no results (exit {completed.returncode}): {completed.stderr.strip()[:500]}","messagePattern":"verifier produced no results \\(exit (.+?)\\): (.+?)","errorType":"exception","errorClass":"RuntimeError","httpStatus":null,"severity":"error","filePath":"crates/eval_cli/zed_eval/rejudge.py","lineNumber":232,"sourceCode":"    LOGS_VERIFIER_DIR.mkdir(parents=True, exist_ok=True)\n    _stage_tests_dir(tests_dir)\n\n    env = os.environ.copy()\n    env.update(verifier_environment(judge_model, port))\n    script = tests_dir / (RF_VERIFIER if part == PART_RF else QNA_VERIFIER)\n    results_path = RF_RESULTS_PATH if part == PART_RF else QNA_RESULTS_PATH\n    if results_path.exists():\n        results_path.unlink()\n\n    completed = subprocess.run(\n        [sys.executable, str(script)],\n        env=env,\n        capture_output=True,\n        text=True,\n    )\n    results = load_json(results_path)\n    if not isinstance(results, dict):\n        raise RuntimeError(\n            f\"verifier produced no results (exit {completed.returncode}): \"\n            f\"{completed.stderr.strip()[:500]}\"\n        )\n    return results\n\n\ndef rejudge_trial(\n    trial_dir: Path,\n    tasks_root: Path,\n    judge: config.JudgeConfig,\n    judge_model: str,\n    port: int,\n) -> dict[str, Any]:\n    \"\"\"Re-grade one trial in place (the trial dir is a copy in the derived run).\n\n    Returns a per-trial record; on any recoverable problem it returns\n    `{\"ok\": False, \"error\": ...}` so one bad trial can't sink the whole job.\n    \"\"\"","sourceCodeStart":214,"sourceCodeEnd":250,"githubUrl":"https://github.com/zed-industries/zed/blob/f4178619acd0d47ea1f76a2025c42962c6d6638c/crates/eval_cli/zed_eval/rejudge.py#L214-L250","documentation":"After running a verifier script (RF or QnA part) as a subprocess, rejudge.py loads the JSON results file the verifier was expected to write (RF_RESULTS_PATH / QNA_RESULTS_PATH). If that file is missing or does not deserialize to a dict, this RuntimeError is raised with the verifier's exit code and the first 500 characters of its stderr. The verifier ran but produced nothing usable.","triggerScenarios":"The verifier script raises an exception partway and never writes results; it exits non-zero because of missing env (API key, prompts path); it writes to a different path than the expected results path; it writes valid JSON that is not an object (for example a list).","commonSituations":"Judge model quota exhausted mid-verifier; the staged /tests symlink pointing at the wrong trial package so rubrics or prompts are missing; a verifier update changed its output location; crash before the first write.","solutions":["Read the stderr tail embedded in the message — it usually contains the verifier's traceback","Re-run the verifier manually with the same env (python <script>) and watch where it fails","Confirm the results-path env var matches where the verifier actually writes","Verify the staged /tests dir belongs to this trial (the code re-symlinks it per trial)"],"exampleFix":"# before\nresults = rejudge_trial(...)  # RuntimeError: verifier produced no results (exit 1): ...\n\n# after — run the failing verifier by hand to see the full error\npython $VERIFIER_SCRIPT   # fix the traceback it prints, then re-run rejudge_trial","handlingStrategy":"try-catch","validationCode":"results_path = RF_RESULTS_PATH if part == PART_RF else QNA_RESULTS_PATH\nresults_path.parent.mkdir(parents=True, exist_ok=True)\nassert os.access(results_path.parent, os.W_OK), \"results directory is not writable\"","typeGuard":null,"tryCatchPattern":"try:\n    results = run_verifier(part, ...)\nexcept RuntimeError as err:\n    # message already carries the exit code and first 500 chars of stderr\n    log.error(\"verifier failed: %s\", err)\n    raise","preventionTips":["Smoke-test each verifier on one trial before batching","Assert required env vars before spawning the verifier","Persist the verifier's full stderr to a file, not just the 500-char tail"],"tags":["verifier","subprocess","results-file","rejudge","json"],"backgroundTag":"missing-results-file","analyzedSha":"f4178619acd0d47ea1f76a2025c42962c6d6638c","analyzedAt":"2026-08-20T19:29:52.058Z","contentChangedAt":"2026-08-20T19:29:52.058Z","schemaVersion":2},"datasetVersion":"2026-09-23T08:17:48.524Z"}