From b3c837d3f3ef66111c09fae329c64e581ec70eb7 Mon Sep 17 00:00:00 2001 From: sora <2075279110@qq.com> Date: Fri, 18 Sep 2026 10:42:29 +0000 Subject: [PATCH] =?UTF-8?q?swe=5Fagentic:=20PIP=5FINDEX=5FURL=20env=20?= =?UTF-8?q?=E2=86=92=20tuna=20mirror=20in=20agent=20containers?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit pypi.org is unreachable from this host's containers; agent pip installs hit 600s _exec timeouts and burned 4/10 samples. The env var makes pip use tuna (~7s for the same package, verified in-container). Co-Authored-By: Claude --- evalharness/agent/envs/swe_agentic.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/evalharness/agent/envs/swe_agentic.py b/evalharness/agent/envs/swe_agentic.py index 5ee0245..701fb12 100644 --- a/evalharness/agent/envs/swe_agentic.py +++ b/evalharness/agent/envs/swe_agentic.py @@ -135,6 +135,10 @@ class SWEAgenticEnvironment(Environment): r = _docker(['run', '-d', '--name', name, '-w', '/testbed', '-e', 'PAGER=cat', '-e', 'MANPAGER=cat', + # CN pip mirror: pypi.org is unreachable from this + # host's containers (agent `pip install` hit 600s + # timeouts); tuna downloads the same package in ~7s + '-e', 'PIP_INDEX_URL=https://pypi.tuna.tsinghua.edu.cn/simple', '-e', 'LESS=-R', '-e', 'PIP_PROGRESS_BAR=off', '-e', 'TQDM_DISABLE=1', image, 'tail', '-f', '/dev/null'], timeout=120)