[PR #4100] [MERGED] Game: harness and horizon-ctl runs don't add the official server or ping #5418

Closed
opened 2026-11-03 05:12:27 +07:00 by bsakaguchi · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/horizon-rust/horizon/pull/4100
Author: @ludovic111
Created: 10/30/2026
Status: ✅ Merged
Merged: 10/30/2026
Merged by: @ludovic111

Base: main ← Head: fix/no-official-server-in-harness-runs


📝 Commits (1)

  • 14fad07 Game: harness and horizon-ctl runs don't add the official server or ping

📊 Changes

1 file changed (+4 additions, -7 deletions)

View changed files

📝 crates/horizon-client/src/game.rs (+4 -7)

📄 Description

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

What and why

A parity run left servers.dat and horizon_official_server.txt (holding horizon.bunchy7s.dev) in the repo root. run() adds the official server to servers.dat in the game folder, which is the working directory, and starts the anonymous "N playing now" ping. Its guard skipped servers, benchmarks, offscreen runs and frame-limited runs, but not a harness's fixture (HORIZON_DISPENSE_FIXTURE, HORIZON_SCULK_FIXTURE, HORIZON_COMMAND_SCRIPT, HORIZON_NET_REPORT) or a run driven by horizon-ctl. Harnesses start those runs in the checkout, so every dispenser, sculk or command harness wrote both files there, and each run counted as a player in the ping.

The guard now reuses synchronous_startup, which already names every one of these runs. A player's ordinary launch is unchanged.

Checked

The same empty dispenser fixture run, from a scratch working directory with scratch HORIZON_HOME/XDG folders:

  • main's game.rs: the folder gets servers.dat and horizon_official_server.txt;
  • this branch: neither.

cargo clippy -D warnings (horizon-client bin) and rustfmt pass. The change is one condition in run(), so no harness depends on it.

🤖 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/4100 **Author:** [@ludovic111](https://github.com/ludovic111) **Created:** 10/30/2026 **Status:** ✅ Merged **Merged:** 10/30/2026 **Merged by:** [@ludovic111](https://github.com/ludovic111) **Base:** `main` ← **Head:** `fix/no-official-server-in-harness-runs` --- ### 📝 Commits (1) - [`14fad07`](https://github.com/horizon-rust/horizon/commit/14fad0786eba2fa8c2c37f5fc9b90a78e800c856) Game: harness and horizon-ctl runs don't add the official server or ping ### 📊 Changes **1 file changed** (+4 additions, -7 deletions) <details> <summary>View changed files</summary> 📝 `crates/horizon-client/src/game.rs` (+4 -7) </details> ### 📄 Description > 🤖 Opened by Ludovic's AI agent (Claude), not by Ludovic himself. ## What and why A parity run left `servers.dat` and `horizon_official_server.txt` (holding `horizon.bunchy7s.dev`) in the repo root. `run()` adds the official server to `servers.dat` in the game folder, which is the working directory, and starts the anonymous "N playing now" ping. Its guard skipped servers, benchmarks, offscreen runs and frame-limited runs, but not a harness's fixture (`HORIZON_DISPENSE_FIXTURE`, `HORIZON_SCULK_FIXTURE`, `HORIZON_COMMAND_SCRIPT`, `HORIZON_NET_REPORT`) or a run driven by horizon-ctl. Harnesses start those runs in the checkout, so every dispenser, sculk or command harness wrote both files there, and each run counted as a player in the ping. The guard now reuses `synchronous_startup`, which already names every one of these runs. A player's ordinary launch is unchanged. ## Checked The same empty dispenser fixture run, from a scratch working directory with scratch `HORIZON_HOME`/XDG folders: - main's `game.rs`: the folder gets `servers.dat` and `horizon_official_server.txt`; - this branch: neither. `cargo clippy -D warnings` (horizon-client bin) and `rustfmt` pass. The change is one condition in `run()`, so no harness depends on it. 🤖 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 05:12:27 +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#5418
No description provided.