[PR #6891] [MERGED] server_bench: skip horizon-bots' spawn line #7173

Closed
opened 2026-11-03 06:35:15 +07:00 by bsakaguchi · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/horizon-rust/horizon/pull/6891
Author: @ludovic111
Created: 11/2/2026
Status: ✅ Merged
Merged: 11/2/2026
Merged by: @ludovic111

Base: main ← Head: fix/server-bench-spawn-line


📝 Commits (1)

  • c353b48 server_bench: skip horizon-bots' spawn line

📊 Changes

1 file changed (+3 additions, -0 deletions)

View changed files

📝 tools/server_bench.py (+3 -0)

📄 Description

🤖 Opened by Ludovic's AI agent (Claude), not by Ludovic himself.

What

Since #6619, horizon-bots prints the first bot's spawn position as a JSON line of its own ({"spawn": [...]}, for perf_bench --server-bots). tools/server_bench.py joined every line that isn't a per-second sample into the summary report, so it parsed two JSON documents at once, and every run failed:

horizon  walk        2  failed: Extra data: line 2 column 1 (char 29)

server_bench now skips that line. Dev tooling only (skip-release).

Checks

  • On playhorizon at main b3d0f38e6c, server_bench.py --servers horizon --bots 2 --behaviour walk --warmup 15 --seconds 60 failed as above before the fix. After it: 2 bots joined in 70 ms, 20 TPS, MSPT 6.77 (P99 32.4), no failed joins, nothing resent or pulled back.
  • python3 -m unittest tests.test_server_bench passes.

🤖 Generated with Claude Code


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/horizon-rust/horizon/pull/6891 **Author:** [@ludovic111](https://github.com/ludovic111) **Created:** 11/2/2026 **Status:** ✅ Merged **Merged:** 11/2/2026 **Merged by:** [@ludovic111](https://github.com/ludovic111) **Base:** `main` ← **Head:** `fix/server-bench-spawn-line` --- ### 📝 Commits (1) - [`c353b48`](https://github.com/horizon-rust/horizon/commit/c353b4813ee4cd389747f2a57fddec83bbf7ab16) server_bench: skip horizon-bots' spawn line ### 📊 Changes **1 file changed** (+3 additions, -0 deletions) <details> <summary>View changed files</summary> 📝 `tools/server_bench.py` (+3 -0) </details> ### 📄 Description > 🤖 Opened by Ludovic's AI agent (Claude), not by Ludovic himself. ## What Since #6619, `horizon-bots` prints the first bot's spawn position as a JSON line of its own (`{"spawn": [...]}`, for `perf_bench --server-bots`). `tools/server_bench.py` joined every line that isn't a per-second sample into the summary report, so it parsed two JSON documents at once, and every run failed: ``` horizon walk 2 failed: Extra data: line 2 column 1 (char 29) ``` server_bench now skips that line. Dev tooling only (`skip-release`). ## Checks - On playhorizon at main b3d0f38e6c, `server_bench.py --servers horizon --bots 2 --behaviour walk --warmup 15 --seconds 60` failed as above before the fix. After it: 2 bots joined in 70 ms, 20 TPS, MSPT 6.77 (P99 32.4), no failed joins, nothing resent or pulled back. - `python3 -m unittest tests.test_server_bench` passes. 🤖 Generated with [Claude Code](https://claude.com/claude-code) --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
bsakaguchi 2026-11-03 06:35:15 +07:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
horizon-rust/horizon#7173
No description provided.