Merge pull request #1276 from ludovic111/feat/telemetry-live

🤖 Agent: merged after verify passed. telemetry.playhorizon.dev is live on Railway (service telemetry in horizon-site, volume /data): /healthz, /v1/live (a test ping counted) and /v1/benchmarks/summary (CORS for playhorizon.dev) answer. The PR's local end-to-end runs are in the description.
This commit is contained in:
Ludovic Marie
2026-10-23 01:14:18 +02:00
committed by GitHub
26 changed files with 747 additions and 63 deletions
+2 -1
View File
@@ -64,7 +64,7 @@ class Failed(Exception):
def game_env(screen):
if sys.platform == 'darwin':
return dict(os.environ, HORIZON_NO_AUDIO='1')
return dict(os.environ, HORIZON_NO_AUDIO='1', HORIZON_TELEMETRY_URL='off')
env = dict(os.environ, VSCREEN=screen)
subprocess.run(['vscreen', 'up'], env=env, check=False, capture_output=True)
text = subprocess.run(['vscreen', 'env'], env=env, capture_output=True, text=True, check=True).stdout
@@ -72,6 +72,7 @@ def game_env(screen):
for match in re.finditer(r'(\w+)=(\S+)', text.split('unset')[0]):
env[match.group(1)] = match.group(2)
env['HORIZON_NO_AUDIO'] = '1'
env['HORIZON_TELEMETRY_URL'] = 'off' # no live-count ping from test games
if LAVAPIPE.exists():
env['VK_ICD_FILENAMES'] = str(LAVAPIPE)
return env
+2
View File
@@ -61,6 +61,8 @@ def vscreen_env():
env.pop("DISPLAY", None)
# Benchmark games never play sound on the machine's speakers.
env["HORIZON_NO_AUDIO"] = "1"
# Nor reach the telemetry server (docs/telemetry.md).
env["HORIZON_TELEMETRY_URL"] = "off"
return env
+1 -1
View File
@@ -116,7 +116,7 @@ def main():
os.symlink(resources, version / '.local/horizon-client' / lab.VERSION)
(version / '.installed').write_text('')
env = dict(os.environ, HORIZON_LAUNCHER_HOME=str(work / 'launcher'), HORIZON_HOME=str(work / 'home'),
HORIZON_NO_AUDIO='1')
HORIZON_NO_AUDIO='1', HORIZON_TELEMETRY_URL='off')
m = Mcp(Path(args.launcher).resolve(), env)
try:
summary = scenario(m, out)
+2 -1
View File
@@ -364,7 +364,8 @@ def run_horizon(args, distance):
command.append("--offscreen")
for carry in dev_mods(args):
command += ["--dev-mod", str(carry)]
env = dict(os.environ, HORIZON_NO_AUDIO="1")
# Benchmark runs stay out of the live count and send nothing (docs/telemetry.md).
env = dict(os.environ, HORIZON_NO_AUDIO="1", HORIZON_TELEMETRY_URL="off")
if args.warm:
# A first start to the title screen builds what later starts reuse (the content-mod
# root, the block behaviour snapshot). It is not measured: players see it once.