Ver código fonte

need to run as root to use SWEBench container (#2068)

Gant 1 ano atrás
pai
commit
f0271f9f91
1 arquivos alterados com 2 adições e 1 exclusões
  1. 2 1
      evaluation/swe_bench/swe_env_box.py

+ 2 - 1
evaluation/swe_bench/swe_env_box.py

@@ -86,7 +86,8 @@ class SWEBenchSSHBox(DockerSSHBox):
 
 
         # linting python after editing helps LLM fix indentations
         # linting python after editing helps LLM fix indentations
         config.enable_auto_lint = True
         config.enable_auto_lint = True
-
+        # Need to run as root to use SWEBench container
+        config.run_as_devin = False
         sandbox = cls(
         sandbox = cls(
             container_image=SWE_BENCH_CONTAINER_IMAGE,
             container_image=SWE_BENCH_CONTAINER_IMAGE,
             swe_instance_id=instance['instance_id'],
             swe_instance_id=instance['instance_id'],