mirror of
https://github.com/ruvnet/ruflo.git
synced 2026-11-24 06:06:02 +09:00
🔖 Checkpoint: Edit /workspaces/claude-code-flow/benchmark/src/swarm_benchmark/swe_bench/official_integration.py
This commit is contained in:
1 parent
231ad153fc
commit
a85489a3bc
3 files changed
+17
-3
No files matched your search
@@ -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"}
|
||||
@@ -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(-) "}
|
||||
@@ -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:
|
||||
|
||||
Reference in new issue
Block a user