zed-industries/zed · error · RuntimeError
verifier produced no results
Error message
verifier produced no results (exit {completed.returncode}): {completed.stderr.strip()[:500]} What it means
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.
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)
Example fix
# before results = rejudge_trial(...) # RuntimeError: verifier produced no results (exit 1): ... # after — run the failing verifier by hand to see the full error python $VERIFIER_SCRIPT # fix the traceback it prints, then re-run rejudge_trial
Defensive patterns
Strategy: try-catch
Validate before calling
results_path = RF_RESULTS_PATH if part == PART_RF else QNA_RESULTS_PATH results_path.parent.mkdir(parents=True, exist_ok=True) assert os.access(results_path.parent, os.W_OK), "results directory is not writable"
Try / catch
try:
results = run_verifier(part, ...)
except RuntimeError as err:
# message already carries the exit code and first 500 chars of stderr
log.error("verifier failed: %s", err)
raise Prevention
- 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
When it happens
Trigger: 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).
Common situations: 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.
Related errors
- judge proxy exited before becoming ready
- Command failed with status
- error deserializing latest release
- Expected exactly one context server configuration
- failed to create archive.tar.gz
AI-assisted analysis of zed-industries/zed@f4178619ac (2026-08-20).
Data as JSON: /api/errors/49d4f07873107f06.
Report an issue: GitHub.
Appendix: source
Thrown at crates/eval_cli/zed_eval/rejudge.py:232
LOGS_VERIFIER_DIR.mkdir(parents=True, exist_ok=True)
_stage_tests_dir(tests_dir)
env = os.environ.copy()
env.update(verifier_environment(judge_model, port))
script = tests_dir / (RF_VERIFIER if part == PART_RF else QNA_VERIFIER)
results_path = RF_RESULTS_PATH if part == PART_RF else QNA_RESULTS_PATH
if results_path.exists():
results_path.unlink()
completed = subprocess.run(
[sys.executable, str(script)],
env=env,
capture_output=True,
text=True,
)
results = load_json(results_path)
if not isinstance(results, dict):
raise RuntimeError(
f"verifier produced no results (exit {completed.returncode}): "
f"{completed.stderr.strip()[:500]}"
)
return results
def rejudge_trial(
trial_dir: Path,
tasks_root: Path,
judge: config.JudgeConfig,
judge_model: str,
port: int,
) -> dict[str, Any]:
"""Re-grade one trial in place (the trial dir is a copy in the derived run).
Returns a per-trial record; on any recoverable problem it returns
`{"ok": False, "error": ...}` so one bad trial can't sink the whole job.
"""View on GitHub (pinned to f4178619ac)