zed-industries/zed · error · ValueError
provide a run_id or --job-dir
Error message
provide a run_id or --job-dir
What it means
Error "provide a run_id or --job-dir" thrown in zed-industries/zed.
Source
Thrown at crates/eval_cli/zed_eval/report.py:427
for entry in report["errored_trials"][:20]:
lines.append(f" - {entry['task_name']}: {entry['reason']}")
if len(report["errored_trials"]) > 20:
lines.append(f" ... and {len(report['errored_trials']) - 20} more")
lines.append("")
return "\n".join(lines)
def locate_job_dir(args: Any) -> Path:
"""Resolve the fetched Harbor/Pier job directory for a `report` invocation,
fetching it first when asked."""
job_dir = getattr(args, "job_dir", None)
if job_dir:
return Path(job_dir)
run_id = getattr(args, "run_id", None)
if not run_id:
raise ValueError("provide a run_id or --job-dir")
jobs_dir = Path(getattr(args, "jobs_dir", Path.home() / ".cache/harbor/jobs"))
candidate = jobs_dir / run_id
if getattr(args, "fetch", False) or not candidate.exists():
# Reuse the existing fetch command to download + extract the archive.
from .volume import command_fetch
command_fetch(args)
if not candidate.exists():
raise ValueError(
f"no fetched job at {candidate}. Run `zed-eval fetch {run_id} "
f"--experiment-name <benchmark>` first, or pass --job-dir."
)
return candidate
def _timeout_is_failure(args: Any) -> bool:
"""Agent timeouts count as failures on test-scored benchmarks. Derived fromView on GitHub (pinned to bc538def45)
When it happens
Trigger: Thrown at crates/eval_cli/zed_eval/report.py:427 when the library encounters an invalid state.
Common situations: See trigger scenarios.
AI-assisted analysis of zed-industries/zed@bc538def45 (2026-08-16).
Data as JSON: /api/errors/c5f52cfa8c4c4c67.
Report an issue: GitHub.