{"record":{"id":"c5f52cfa8c4c4c67","repo":"zed-industries/zed","slug":"provide-a-run-id-or-job-dir","errorCode":null,"errorMessage":"provide a run_id or --job-dir","messagePattern":"provide a run_id or --job-dir","errorType":"exception","errorClass":"ValueError","httpStatus":null,"severity":"error","filePath":"crates/eval_cli/zed_eval/report.py","lineNumber":427,"sourceCode":"        for entry in report[\"errored_trials\"][:20]:\n            lines.append(f\"  - {entry['task_name']}: {entry['reason']}\")\n        if len(report[\"errored_trials\"]) > 20:\n            lines.append(f\"  ... and {len(report['errored_trials']) - 20} more\")\n        lines.append(\"\")\n\n    return \"\\n\".join(lines)\n\n\ndef locate_job_dir(args: Any) -> Path:\n    \"\"\"Resolve the fetched Harbor/Pier job directory for a `report` invocation,\n    fetching it first when asked.\"\"\"\n    job_dir = getattr(args, \"job_dir\", None)\n    if job_dir:\n        return Path(job_dir)\n\n    run_id = getattr(args, \"run_id\", None)\n    if not run_id:\n        raise ValueError(\"provide a run_id or --job-dir\")\n    jobs_dir = Path(getattr(args, \"jobs_dir\", Path.home() / \".cache/harbor/jobs\"))\n    candidate = jobs_dir / run_id\n\n    if getattr(args, \"fetch\", False) or not candidate.exists():\n        # Reuse the existing fetch command to download + extract the archive.\n        from .volume import command_fetch\n\n        command_fetch(args)\n    if not candidate.exists():\n        raise ValueError(\n            f\"no fetched job at {candidate}. Run `zed-eval fetch {run_id} \"\n            f\"--experiment-name <benchmark>` first, or pass --job-dir.\"\n        )\n    return candidate\n\n\ndef _timeout_is_failure(args: Any) -> bool:\n    \"\"\"Agent timeouts count as failures on test-scored benchmarks. Derived from","sourceCodeStart":409,"sourceCodeEnd":445,"githubUrl":"https://github.com/zed-industries/zed/blob/bc538def4545534201bbfcac4e95ac34ea6501b6/crates/eval_cli/zed_eval/report.py#L409-L445","documentation":"Error \"provide a run_id or --job-dir\" thrown in zed-industries/zed.","triggerScenarios":"Thrown at crates/eval_cli/zed_eval/report.py:427 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":[],"exampleFix":null,"handlingStrategy":null,"validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"bc538def4545534201bbfcac4e95ac34ea6501b6","analyzedAt":"2026-08-16T07:30:46.435Z","schemaVersion":2},"datasetVersion":"2026-08-16T08:17:34.114Z"}