SWE-agent takes a GitHub issue and tries to automatically fix it, using your LM of choice. It can also be employed for offensive cybersecurity or competitive coding challenges. [NeurIPS 2024]
Enh: Allow to configure LONG_TIMEOUT for SWEEnv (#584)
Kilian Lieretb72abc704c0a
diff --git a/docs/config/env.md b/docs/config/env.mdindex 3eaec810..00df9558 100644--- a/docs/config/env.md+++ b/docs/config/env.md@@ -8,6 +8,7 @@ This page details all environment variables that are currently in use by SWE-age* All API keys (for LMs and GitHub) can be set as an environment variable. See [here](../installation/keys.md) for more information.* `SWE_AGENT_CONFIG_ROOT`: Used to resolve relative paths in the [config](config.md)+* `SWE_AGENT_ENV_LONG_TIMEOUT` (default: 500): Timeout in seconds used for commands that install instance environment.* `SWE_AGENT_LOG_TIME`: Add timestamps to log (**can only be set as an environment variable**)!!! warning "Unstable"diff --git a/sweagent/environment/swe_env.py b/sweagent/environment/swe_env.pyindex dd8acb37..926d2cb5 100644--- a/sweagent/environment/swe_env.py+++ b/sweagent/environment/swe_env.py@@ -42,7 +42,7 @@ from sweagent.environment.utils import (from sweagent.utils.config import keys_configfrom sweagent.utils.log import default_logger, get_logger-LONG_TIMEOUT = 500+LONG_TIMEOUT = float(keys_config.get("SWE_AGENT_ENV_LONG_TIMEOUT", 500))PATH_TO_REQS = "/root/requirements.txt"PATH_TO_ENV_YML = "/root/environment.yml"