Skip to content

Commit 70ccde4

Browse files
committed
added e2b as a new option
1 parent a41b61f commit 70ccde4

File tree

3 files changed

+6
-1
lines changed

3 files changed

+6
-1
lines changed

commit0/harness/constants.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ def items(self) -> ItemsView[str, object]:
6464
PASS_TO_FAIL = "PASS_TO_FAIL"
6565

6666
# Evaluation backends
67-
EVAL_BACKENDS = ["local", "modal"]
67+
EVAL_BACKENDS = ["local", "modal", "e2b"]
6868

6969
# available commands
7070
COMMANDS = [

commit0/harness/execution_context.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,7 @@
3333
class ExecutionBackend(StrEnum):
3434
LOCAL = auto()
3535
MODAL = auto()
36+
E2B = auto()
3637

3738

3839
class ExecutionContext(ABC):

commit0/harness/run_pytest_ids.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@
2626
ExecutionBackend,
2727
Docker,
2828
Modal,
29+
E2B,
2930
)
3031

3132

@@ -192,6 +193,9 @@ def main(
192193
elif ExecutionBackend(backend) == ExecutionBackend.LOCAL:
193194
logger.info("Runnning locally")
194195
execution_context = Docker
196+
elif ExecutionBackend(backend) == ExecutionBackend.E2B:
197+
logger.info("Runnning E2B")
198+
execution_context = E2B
195199
else:
196200
raise ValueError(
197201
f"Evaluation must be from {', '.join(EVAL_BACKENDS)}, but {backend} is provided."

0 commit comments

Comments
 (0)