Refactored sandbox config and added fast boot (#2455)

* Refactored sandbox config and added fastboot

* added tests

* fixed tests

* fixed tests

* intimate user about breaking change

* remove default config from eval

* check for lowercase env

* add test

* Revert Migration

* migrate old sandbox configs

* resolve merge conflict

* revert migration 2

* Revert "remove default config from eval"

This reverts commit de57c588db.

* change type to box_type

* fix var name

* linted

* lint

* lint comments

* fix tests

* fix tests

* fix typo

* fix box_type, remove fast_boot

* add tests for sandbox config

* fix test

* update eval docs

* small removal comments

* adapt toml template

* old fields shouldn't be in the app dataclass

* fix old keys in app config

* clean up exec box

---------

Co-authored-by: Engel Nyst <enyst@users.noreply.github.com>
This commit is contained in:
மனோஜ்குமார் பழனிச்சாமி
2024-07-05 09:00:21 +05:30
committed by GitHub
parent 82f4860470
commit 143f38d25a
22 changed files with 332 additions and 96 deletions

View File

@@ -19,9 +19,6 @@ workspace_base = "./workspace"
# Cache directory path
#cache_dir = "/tmp/cache"
# Container image to use for the sandbox
#sandbox_container_image = "ghcr.io/opendevin/sandbox:main"
# Debugging enabled
#debug = false
@@ -79,15 +76,6 @@ persist_sandbox = false
# SSH port for the sandbox
#ssh_port = 63710
# Sandbox timeout in seconds
#sandbox_timeout = 120
# Sandbox type (ssh, exec, e2b, local)
#sandbox_type = "ssh"
# Sandbox user ID
#sandbox_user_id = 1000
# Use host network
#use_host_network = false
@@ -174,7 +162,23 @@ model = "gpt-4o"
# Name of the agent
#name = "CodeActAgent"
#################################### Sandbox ###################################
# Configuration for the sandbox
##############################################################################
[sandbox]
# Sandbox timeout in seconds
#timeout = 120
# Sandbox type (ssh, e2b, local)
#box_type = "ssh"
# Sandbox user ID
#user_id = 1000
# Container image to use for the sandbox
#container_image = "ghcr.io/opendevin/sandbox:main"
#################################### Eval ####################################
# Configuration for the evaluation, please refer to the specific evaluation
# plugin for the available options
##############################################################################
##############################################################################