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)