Feat: add stream output to exec_run (#1625)

* Feat: add stream output to exec_run

* Using command timeout to control the exec_box's timeout.
* add bash -c to source command to compatible for sh.

Signed-off-by: ifuryst <ifuryst@gmail.com>

* Feat: add stream output to SSHBox execute

Signed-off-by: ifuryst <ifuryst@gmail.com>

* fix the test case fail.

Signed-off-by: ifuryst <ifuryst@gmail.com>

* fix the test case import wrong path for method.

Signed-off-by: ifuryst <ifuryst@gmail.com>

---------

Signed-off-by: ifuryst <ifuryst@gmail.com>
This commit is contained in:
Leo
2024-05-16 22:37:49 +08:00
committed by GitHub
parent 0fdbe1ee93
commit e89cc8f19b
13 changed files with 249 additions and 51 deletions

View File

@@ -3,7 +3,7 @@ from pathlib import Path
import pytest
from opendevin.core.config import config
from opendevin.events.action import files
from opendevin.runtime.server import files
SANDBOX_PATH_PREFIX = '/workspace'