From c96fab2cdc9276dbc3ed2e5892d331493401ab06 Mon Sep 17 00:00:00 2001 From: tegwick Date: Wed, 8 Jul 2026 14:38:07 +0200 Subject: [PATCH] Production todo-md scan: sweep hostname + deploy tag main-d8808bf Use STATE_HUB_SWEEP_HOSTNAME in doi_engine path resolution so /repos/todo-md-staleness works on railiance01 with mounted /home/tegwick. --- api/doi_engine.py | 8 +++++++- deploy/railiance/apps/helm/state-hub-values.yaml | 2 +- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/api/doi_engine.py b/api/doi_engine.py index 9490cd7..140da06 100644 --- a/api/doi_engine.py +++ b/api/doi_engine.py @@ -8,6 +8,7 @@ from __future__ import annotations import asyncio import json +import os import re import socket import urllib.error @@ -242,8 +243,13 @@ def compute_fingerprint( return "|".join(parts) +def _sweep_hostname() -> str: + """Hostname for host_paths resolution; override when pod hostname != fleet FQDN.""" + return os.environ.get("STATE_HUB_SWEEP_HOSTNAME", "").strip() or socket.gethostname() + + def _resolve_path(repo: dict) -> str: - hostname = socket.gethostname() + hostname = _sweep_hostname() host_paths = repo.get("host_paths") or {} candidates = [] if host_paths.get(hostname): diff --git a/deploy/railiance/apps/helm/state-hub-values.yaml b/deploy/railiance/apps/helm/state-hub-values.yaml index ae191c5..6123280 100644 --- a/deploy/railiance/apps/helm/state-hub-values.yaml +++ b/deploy/railiance/apps/helm/state-hub-values.yaml @@ -6,7 +6,7 @@ namespace: image: repository: forgejo.coulomb.social/coulomb/state-hub - tag: "main-0ca9c27" + tag: "main-d8808bf" ingress: enabled: false