From fb72987fb55b4a2b00a8b507f4da6b5af07cac8e Mon Sep 17 00:00:00 2001 From: Hamza Ali Shahjahan <191920295+hamza-ali-shahjahan@users.noreply.github.com> Date: Thu, 9 Jul 2026 06:13:52 +0500 Subject: [PATCH] fix(benchmarks): make agentic fixture path portable via PONYTAIL_TMPL (#206) tasks.py hardcoded _TMPL to a personal absolute Windows path (D:\dev\...), which the agentic benchmark's Reproduce flow depends on. Resolve it via a PONYTAIL_TMPL env override with a relative fallback, mirroring the existing PONYTAIL_PLUGIN_DIR convention in run.py; run.py's loader resolves the relative name under fixtures/. selftest skips the open tasks that consume _TMPL, so instrument validation is unaffected (verified: all instruments valid). --- benchmarks/agentic/README.md | 3 ++- benchmarks/agentic/tasks.py | 4 +++- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/benchmarks/agentic/README.md b/benchmarks/agentic/README.md index f39d68c..94e1157 100644 --- a/benchmarks/agentic/README.md +++ b/benchmarks/agentic/README.md @@ -112,7 +112,8 @@ python complete.py --run runs/ # completeness-score every workspace ## Reproduce Needs the `claude` CLI (this is the harness, no SDK), Python 3, an authenticated Claude Code, and a -clone of the template at the pinned commit (point `_TMPL` in `tasks.py` at it): +clone of the template at the pinned commit (set `PONYTAIL_TMPL` to its path, or drop it at +`fixtures/full-stack-fastapi-template`): ```bash git clone https://github.com/fastapi/full-stack-fastapi-template diff --git a/benchmarks/agentic/tasks.py b/benchmarks/agentic/tasks.py index 6e0fa6a..45015c3 100644 --- a/benchmarks/agentic/tasks.py +++ b/benchmarks/agentic/tasks.py @@ -25,7 +25,9 @@ from pathlib import Path # Real-repo fixture: tiangolo/full-stack-fastapi-template @ cd83fc1 (v0.10.0, MIT), cloned locally. # Reproduce: git clone https://github.com/tiangolo/full-stack-fastapi-template && git -C ... checkout cd83fc1 -_TMPL = r"D:\dev\fullstack-fastapi-template" +# Point PONYTAIL_TMPL at your local clone, or drop it at fixtures/full-stack-fastapi-template +# (run.py resolves a relative name under fixtures/). Mirrors the PONYTAIL_PLUGIN_DIR override. +_TMPL = os.environ.get("PONYTAIL_TMPL", "full-stack-fastapi-template") # --- helpers --- _imp_n = 0