Revert "do not mount workspace for swe-eval to avoid accidentally overwrite files"

This reverts commit 8ef7739054.
This commit is contained in:
Xingyao Wang
2024-05-04 17:20:25 +08:00
parent 8ef7739054
commit 016cfbb9f0

View File

@@ -2,7 +2,7 @@ import sys
import uuid
from opendevin.core.logger import opendevin_logger as logger
from opendevin.runtime.docker.ssh_box import SANDBOX_WORKSPACE_DIR, DockerSSHBox
from opendevin.runtime.docker.ssh_box import DockerSSHBox
from opendevin.runtime.plugins import JupyterRequirement, SWEAgentCommandsRequirement
SWE_BENCH_CONTAINER_IMAGE = 'ghcr.io/xingyaoww/eval-swe-bench-all:lite-v1.0'
@@ -47,13 +47,7 @@ class SWEBenchSSHBox(DockerSSHBox):
@property
def volumes(self):
# remove the default workspace mounting SANDBOX_WORKSPACE_DIR
volumes = {
k: v
for k, v in super().volumes.items()
if not v['bind'] == SANDBOX_WORKSPACE_DIR
}
return volumes
return {**super().volumes}
@classmethod
def get_box_for_instance(