Production todo-md scan: sweep hostname + deploy tag main-d8808bf
All checks were successful
CI Smoke / host-smoke (push) Successful in 1s
CI Smoke / container-smoke (push) Successful in 2s

Use STATE_HUB_SWEEP_HOSTNAME in doi_engine path resolution so
/repos/todo-md-staleness works on railiance01 with mounted /home/tegwick.
This commit is contained in:
tegwick 2026-07-08 14:38:07 +02:00
parent 1e59677d62
commit c96fab2cdc
2 changed files with 8 additions and 2 deletions

View file

@ -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):

View file

@ -6,7 +6,7 @@ namespace:
image:
repository: forgejo.coulomb.social/coulomb/state-hub
tag: "main-0ca9c27"
tag: "main-d8808bf"
ingress:
enabled: false