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]
CI: Add flag for CTF challenges
Kilian Lieret18fb846fb3fa
diff --git a/pyproject.toml b/pyproject.tomlindex 4c004406..95d52f13 100644--- a/pyproject.toml+++ b/pyproject.toml@@ -69,6 +69,7 @@ namespaces = false[tool.pytest.ini_options]markers = ["slow: marks tests as slow (deselect with '-m \"not slow\"')",+ "ctf: marks EnIGMA tests for using SWE-agent on capture the flag (CTF) challenges",]testpaths = ["tests"diff --git a/tests/test_env_utils.py b/tests/test_env_utils.pyindex 5651aa27..a9802706 100644--- a/tests/test_env_utils.py+++ b/tests/test_env_utils.py@@ -189,6 +189,7 @@ def test_load_instances(test_data_path, caplog):get_instances(file_path=str(example), **_TOKEN)def test_load_ctf_instances(test_data_path, caplog):test_data_sources = test_data_path / "data_sources" / "ctf"examples = list(test_data_sources.glob("**/challenge.json"))diff --git a/tests/test_replay_ctf.py b/tests/test_replay_ctf.pyindex a72162e8..327ad3ab 100644--- a/tests/test_replay_ctf.py+++ b/tests/test_replay_ctf.py@@ -6,6 +6,7 @@ from run_replay import get_args, main@pytest.mark.slow@pytest.mark.parametrize("traj_rel_path",["pwn/warmup.traj", "forensics/flash.traj", "web/i_got_id_demo.traj", "rev/rock.traj", "misc/networking_1.traj"],