From 791b4cd19ad8a73c39f07ee65e72e49bf041e816 Mon Sep 17 00:00:00 2001 From: rUv Date: Wed, 6 Aug 2025 11:40:02 +0000 Subject: [PATCH] =?UTF-8?q?=F0=9F=94=96=20Checkpoint:=20Edit=20/workspaces?= =?UTF-8?q?/claude-code-flow/benchmark/test=5Fswarm.py?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .claude/checkpoints/1754480376.json | 1 + .claude/checkpoints/1754480377.json | 1 + benchmark/test_swarm.py | 27 +++++++++++++++++++++++++++ 3 files changed, 29 insertions(+) create mode 100644 .claude/checkpoints/1754480376.json create mode 100644 .claude/checkpoints/1754480377.json create mode 100644 benchmark/test_swarm.py diff --git a/.claude/checkpoints/1754480376.json b/.claude/checkpoints/1754480376.json new file mode 100644 index 0000000000..f48ea3733f --- /dev/null +++ b/.claude/checkpoints/1754480376.json @@ -0,0 +1 @@ +{"branch": "checkpoint/pre-edit-20250806-113936", "file": "/workspaces/claude-code-flow/benchmark/src/swarm_benchmark/core/real_benchmark_engine.py", "timestamp": "2025-08-06T11:39:36Z", "type": "pre-edit", "original_branch": "alpha-88"} diff --git a/.claude/checkpoints/1754480377.json b/.claude/checkpoints/1754480377.json new file mode 100644 index 0000000000..3b8d40bdc1 --- /dev/null +++ b/.claude/checkpoints/1754480377.json @@ -0,0 +1 @@ +{"tag": "checkpoint-20250806-113937", "file": "/workspaces/claude-code-flow/benchmark/src/swarm_benchmark/core/real_benchmark_engine.py", "timestamp": "2025-08-06T11:39:37Z", "type": "post-edit", "branch": "alpha-88", "diff_summary": " .claude-flow/metrics/performance.json | 2 +- .claude-flow/metrics/system-metrics.json | 24 ++++++++++++++++++++++ .claude-flow/metrics/task-metrics.json | 6 +++--- .claude/checkpoints/task-1754480327.json | 1 + .../swarm_benchmark/core/real_benchmark_engine.py | 20 +++++++++++++++++- claude-flow-wiki | 0 6 files changed, 48 insertions(+), 5 deletions(-) "} diff --git a/benchmark/test_swarm.py b/benchmark/test_swarm.py new file mode 100644 index 0000000000..83e43e7d65 --- /dev/null +++ b/benchmark/test_swarm.py @@ -0,0 +1,27 @@ +#!/usr/bin/env python3 +"""Test swarm command directly.""" + +import subprocess +import sys + +# Test command +cmd = [ + "swarm-benchmark", + "real", + "swarm", + "echo hello", + "--strategy", "development", + "--timeout", "1" +] + +print(f"Running: {' '.join(cmd)}") +result = subprocess.run(cmd, capture_output=True, text=True) + +print("STDOUT:") +print(result.stdout[:2000] if result.stdout else "(empty)") + +print("\nSTDERR:") +print(result.stderr[:1000] if result.stderr else "(empty)") + +print(f"\nReturn code: {result.returncode}") +sys.exit(result.returncode) \ No newline at end of file