|
8 | 8 | from swebench.harness.constants import MAP_REPO_TO_TEST_FRAMEWORK
|
9 | 9 | from swebench.harness.utils import get_test_directives
|
10 | 10 |
|
11 |
| -from opendevin.core.config import config |
| 11 | +from opendevin.core.config import SandboxConfig, config |
12 | 12 | from opendevin.core.logger import opendevin_logger as logger
|
13 | 13 | from opendevin.runtime.docker.ssh_box import DockerSSHBox
|
14 | 14 | from opendevin.runtime.plugins import (
|
@@ -50,7 +50,19 @@ def __init__(
|
50 | 50 | # Need to run as root to use SWEBench container
|
51 | 51 | sid = f'swe_bench_{swe_instance_id}_' + str(uuid.uuid4())
|
52 | 52 | logger.info(f'===Using container image: {container_image}')
|
53 |
| - super().__init__(container_image, timeout, sid) |
| 53 | + super().__init__( |
| 54 | + config=SandboxConfig(container_image=container_image, timeout=timeout), |
| 55 | + persist_sandbox=config.persist_sandbox, |
| 56 | + workspace_mount_path=config.workspace_mount_path, |
| 57 | + sandbox_workspace_dir=config.workspace_mount_path_in_sandbox, |
| 58 | + cache_dir=config.cache_dir, |
| 59 | + use_host_network=config.use_host_network, |
| 60 | + run_as_devin=config.run_as_devin, |
| 61 | + ssh_hostname=config.ssh_hostname, |
| 62 | + ssh_password=config.ssh_password, |
| 63 | + ssh_port=config.ssh_port, |
| 64 | + sid=sid, |
| 65 | + ) |
54 | 66 | self.init_plugins(sandbox_plugins)
|
55 | 67 |
|
56 | 68 | exit_code, output = self.execute('mv ~/.bashrc ~/.bashrc.bak')
|
|
0 commit comments