You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@camel.apache.org by da...@apache.org on 2026/10/06 05:11:20 UTC
(camel-performance-tests) 01/02: The ladder stops every integration after an example, not only the one named after it
This is an automated email from the ASF dual-hosted git repository.
davsclaus pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/camel-performance-tests.git
commit 6c4da4309d9a447d971aa06b914a108c616ad58b
Author: Claus Ibsen <cl...@gmail.com>
AuthorDate: Tue Oct 6 07:11:13 2026 +0200
The ladder stops every integration after an example, not only the one named after it
An app the model starts itself with camel_run, or renames, was not stopped by name. In r5 one held port 8080 for
six hours and failed every later HTTP rung. The runner now stops all integrations after each example and warns
when port 8080 is still in use.
Co-Authored-By: Claude Opus 5.5 (1M context) <no...@anthropic.com>
Claude-Session: https://claude.ai/code/session_01STT6whBgK1AqsSsUKrnE8m
---
ai-benchmark/run-stepwise-ladder.sh | 10 ++++++++--
1 file changed, 8 insertions(+), 2 deletions(-)
diff --git a/ai-benchmark/run-stepwise-ladder.sh b/ai-benchmark/run-stepwise-ladder.sh
index ae357b6..5eba143 100755
--- a/ai-benchmark/run-stepwise-ladder.sh
+++ b/ai-benchmark/run-stepwise-ladder.sh
@@ -19,8 +19,14 @@ for i in $(seq 1 "$K"); do
echo "[$T] $name start $(date +%T)" | tee -a "stepwise-$T.log"
BENCH_STEPS="$f" BENCH_TAG="$T/$name" python3 agent_mcp_stepwise.py > "stepwise-$T-$name.out" 2>&1
tail -1 "stepwise/$T/$name/run.log" | tee -a "stepwise-$T.log"
- # safety net: the harness stops its integration, but an interrupted run leaves one behind
- camel stop "$name" > /dev/null 2>&1 || true
+ # safety net: the harness stops its integration, but an interrupted run leaves one behind, and an app the model
+ # started itself with camel_run, or renamed, is not stopped by name (r5: an orphan held port 8080 for six hours
+ # and failed every later HTTP rung). The machine runs only the benchmark during a series, so stop them all.
+ camel stop > /dev/null 2>&1 || true
+ sleep 3
+ if lsof -nP -iTCP:8080 -sTCP:LISTEN > /dev/null 2>&1; then
+ echo "[$T] WARNING port 8080 still in use after $name: $(lsof -nP -iTCP:8080 -sTCP:LISTEN | tail -1)" | tee -a "stepwise-$T.log"
+ fi
done
# the services an example needed stay up across its passes; stop them once the run is over
for svc in $(python3 -c "