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]
Fix: Remove spinners for skipped instances
Kilian Lieret06000410d34e
diff --git a/sweagent/run/_progress.py b/sweagent/run/_progress.pyindex 633784ba..eac80162 100644--- a/sweagent/run/_progress.py+++ b/sweagent/run/_progress.py@@ -97,8 +97,3 @@ class RunBatchProgressManager:with self._lock:self.exit_status_histogram[f"Uncaught {type(exception).__name__}"] += 1self.update_exit_status_table()-- def on_instance_skipped(self, instance_id: str):- with self._lock:- self.exit_status_histogram["skipped"] += 1- self.update_exit_status_table()diff --git a/sweagent/run/run_batch.py b/sweagent/run/run_batch.pyindex 486f3804..fea04ba6 100644--- a/sweagent/run/run_batch.py+++ b/sweagent/run/run_batch.py@@ -175,7 +175,7 @@ class RunBatch:self._progress_manager.on_instance_start(instance.problem_statement.id)if self.should_skip(instance):- self._progress_manager.on_instance_skipped(instance.problem_statement.id)+ self._progress_manager.on_instance_end(instance.problem_statement.id, exit_status="skipped")return# Either catch and silence exception, or raise _BreakLoop to stop the loop