Skip to content

Command timed out after 30.0 seconds: export PIP_CACHE_DIR=~/.cache/pip #864

Closed

Description

@juanmichelini

Observed in cab92fc
Not observed in previous commit.

Steps to reproduce:

  1. In the benchmarks repo, set vendor/agent-sdk to commit cab92fc
  2. Run SKIP_BUILD=0 uv run swebench-infer .llm_config/gpt-5.json --num-workers 1 --n-limit 1 --max-iterations 500
  3. Observe
    [10/22/25 16:07:49] WARNING Command timed out after 30.0 seconds: export PIP_CACHE_DIR=/.cache/pip remote_workspace_mixin.py:122
    [10/22/25 16:07:54] WARNING Command timed out after 30.0 seconds: export PIP_CACHE_DIR=
    /.cache/pip remote_workspace_mixin.py:122
    [10/22/25 16:07:57] WARNING Command timed out after 30.0 seconds: export PIP_CACHE_DIR=/.cache/pip remote_workspace_mixin.py:122
    [10/22/25 16:07:58] WARNING Command timed out after 30.0 seconds: export PIP_CACHE_DIR=
    /.cache/pip remote_workspace_mixin.py:122
    concurrent.futures.process._RemoteTraceback:
    """
    Traceback (most recent call last):
    File "/home/juan-all-hands/.local/share/uv/python/cpython-3.12.11-linux-x86_64-gnu/lib/python3.12/concurrent/futures/process.py", line 264, in _process_worker
    r = call_item.fn(*call_item.args, **call_item.kwargs)
    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
    File "/home/juan-all-hands/v1/benchmarks2/benchmarks/utils/evaluation.py", line 321, in _process_one_mp
    workspace = self.prepare_workspace(instance)
    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
    File "/home/juan-all-hands/v1/benchmarks2/benchmarks/swe_bench/run_infer.py", line 144, in prepare_workspace
    raise RuntimeError(
    RuntimeError: Failed to run env setup command 'export PIP_CACHE_DIR=~/.cache/pip': Command timed out after 30.0 seconds
    """

The above exception was the direct cause of the following exception:

Traceback (most recent call last):
File "/home/juan-all-hands/v1/benchmarks2/.venv/bin/swebench-infer", line 10, in
sys.exit(main())
^^^^^^
File "/home/juan-all-hands/v1/benchmarks2/benchmarks/swe_bench/run_infer.py", line 316, in main
evaluator.run(on_result=_default_on_result_writer(metadata.eval_output_dir))
File "/home/juan-all-hands/v1/benchmarks2/benchmarks/utils/evaluation.py", line 91, in run
return self._run_iterative_mode(on_result=on_result)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/juan-all-hands/v1/benchmarks2/benchmarks/utils/evaluation.py", line 250, in _run_iterative_mode
instance, out = fut.result()
^^^^^^^^^^^^
File "/home/juan-all-hands/.local/share/uv/python/cpython-3.12.11-linux-x86_64-gnu/lib/python3.12/concurrent/futures/_base.py", line 449, in result
return self.__get_result()
^^^^^^^^^^^^^^^^^^^
File "/home/juan-all-hands/.local/share/uv/python/cpython-3.12.11-linux-x86_64-gnu/lib/python3.12/concurrent/futures/_base.py", line 401, in __get_result
raise self._exception
RuntimeError: Failed to run env setup command 'export PIP_CACHE_DIR=~/.cache/pip': Command timed out after 30.0 seconds
/home/juan-all-hands/v1/benchmarks2/.venv/lib/python3.12/site-packages/litellm/llms/custom_httpx/async_client_cleanup.py:66: DeprecationWarning: There is no current event loop
loop = asyncio.get_event_loop()

Activity

  1. changed the title [-]WARNING Command timed out after 30.0 seconds: export PIP_CACHE_DIR=~/.cache/pip[/-] [+]Command timed out after 30.0 seconds: export PIP_CACHE_DIR=~/.cache/pip[/+] on Oct 22, 2025
  2. juanmichelini commented on Oct 22, 2025

    @juanmichelini
    CollaboratorAuthor

    #866 seems the same and is easier to reproduce.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions