Repository navigation
Read each server host file in status embeds - #37
Merged
Merged
Conversation
valzargaming
marked this pull request as ready for review
October 28, 2026 21:17
There was a problem hiding this comment.
🔇 Additional comments: 1
src/Civ13/GameServer.php-1909-1910: 1
1909-1910:Major · Stability & Availability · Heavy lift
⚠️ Unverified finding
Verification ran but could not confirm this finding. It is shown for review, not as a verified issue.Reject network-backed paths before probing them.
A mapped network drive such as
Z:\gamepasses this guard.is_file()then performs a network lookup on the event-loop thread, which can stall the bot when the share is unavailable. Check the underlying volume before probing the host file; a path-prefix check alone cannot establish that it is local. (learn.microsoft.com)

Review info
-
Run configuration-
- Source mode: Auto
- Repository: Unavailable
- Branch: Unavailable
- File: No configuration file from this repository applied
- Commit: Unavailable
- Layers: defaults
- Review profile: CHILL
- Plan: Advanced
- Run ID:
bae59077-3b0e-44d7-9654-2bd509bc620e
Files selected for processing: 3-
src/Civ13/GameServer.phptests/local/heartbeat-integration.phptests/local/server-compatibility.php
Included review availability: This review used your included allowance. Your plan provides up to 10 included reviews per hour; 9 remain after this review.
-
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Server status embeds displayed the configured host placeholder instead of the host identified by each game server's
config/host.txt. Read that server's local host file when rendering both status surfaces, trim surrounding whitespace, and report unavailable when the file is missing, unreadable, empty, oversized or invalid UTF-8. Nonlocal and UNC paths are not probed. Remove the hard-coded Connectivity field while preserving heartbeat and observation behavior.Windows PHP 8.5.12 offline checks passed: heartbeat integration with two isolated server fixtures, missing/unreadable/empty/oversized and invalid UTF-8 cases, valid non-ASCII text, remote/UNC guards and Connectivity absence; heartbeat and server-compatibility contracts; and PHP lint. The server-compatibility fixture now initializes the required base directory before rendering status. Network and process functions were disabled. Dependency-backed local tests used an existing vendor baseline whose production package versions and references match the lock; no live bot or game was started.
Policy review - 2026-10-28
Current head:
452974bac720c5515feb35e6161f4f7c5d8a6b03; base:main. This completed slice is offered as a regular PR. verifier (8.5) is successful. Existing failed, skipped and historical results retain their stated scope. Unverified native/in-game/save/load items do not by themselves hold a source fix. Merge decisions and any live activation remain separate.Summary by CodeRabbit