diff --git a/benchmark/.claude/checkpoints/1754576178.json b/benchmark/.claude/checkpoints/1754576178.json new file mode 100644 index 0000000000..5fa4e70e2d --- /dev/null +++ b/benchmark/.claude/checkpoints/1754576178.json @@ -0,0 +1 @@ +{"branch": "checkpoint/pre-edit-20250807-141618", "file": "/workspaces/claude-code-flow/benchmark/src/swarm_benchmark/swe_bench/official_integration.py", "timestamp": "2025-08-07T14:16:18Z", "type": "pre-edit", "original_branch": "swe-bench"} diff --git a/benchmark/.claude/checkpoints/1754576180.json b/benchmark/.claude/checkpoints/1754576180.json new file mode 100644 index 0000000000..f2508f79b5 --- /dev/null +++ b/benchmark/.claude/checkpoints/1754576180.json @@ -0,0 +1 @@ +{"tag": "checkpoint-20250807-141620", "file": "/workspaces/claude-code-flow/benchmark/src/swarm_benchmark/swe_bench/official_integration.py", "timestamp": "2025-08-07T14:16:20Z", "type": "post-edit", "branch": "swe-bench", "diff_summary": " .claude-flow/metrics/system-metrics.json | 12 +++++ benchmark/.claude-flow/metrics/performance.json | 2 +- benchmark/.claude-flow/metrics/task-metrics.json | 6 +-- benchmark/.claude/checkpoints/task-1754576142.json | 1 + .../swe_bench/official_integration.py | 61 ++++++++++++++++++---- 5 files changed, 68 insertions(+), 14 deletions(-) "} diff --git a/benchmark/src/swarm_benchmark/swe_bench/official_integration.py b/benchmark/src/swarm_benchmark/swe_bench/official_integration.py index 068c82b9b3..6c2abdde0c 100644 --- a/benchmark/src/swarm_benchmark/swe_bench/official_integration.py +++ b/benchmark/src/swarm_benchmark/swe_bench/official_integration.py @@ -157,11 +157,23 @@ Return ONLY the git diff patch in proper format.""" # Extract patch from output output = stdout.decode() if stdout else "" + error_output = stderr.decode() if stderr else "" + + # Log process result + print(f" 📊 Process exit code: {process.returncode}") + + if error_output and "error" in error_output.lower(): + print(f" ⚠️ Stderr: {error_output[:200]}") + patch = self._extract_patch(output) + # If no patch in stdout, check stderr (sometimes output goes there) + if not patch and error_output: + patch = self._extract_patch(error_output) + # Store prediction self.predictions[instance_id] = { - "model_patch": patch, + "model_patch": patch if patch else "", "model_name_or_path": "claude-flow-swarm", "instance_id": instance_id } @@ -171,9 +183,9 @@ Return ONLY the git diff patch in proper format.""" return { "instance_id": instance_id, "success": bool(patch), - "patch": patch, + "patch": patch if patch else "", "duration": duration, - "error": None + "error": None if patch else "No patch generated" } except asyncio.TimeoutError: