mirror of
https://github.com/mudler/LocalAI.git
synced 2026-09-20 21:28:16 -04:00
test(distributed): name the replica endpoint the router now requires
Two specs in the distributed e2e suite have been red since1cf847f29, which stopped workers advertising an address and removed every fall-back to the node's own endpoint. After that commit a replica row must name the loopback endpoint of its own backend process: DistributedModelStore.Range refuses to list a replica whose backend process is unnamed, and SmartRouter treats an unnamed warm row as naming no process and cold-loads instead.1cf847f29updated the unit specs under core/services/nodes for the new contract but not tests/e2e/distributed, and the phase's closing verification ran test-e2e-cluster rather than test-e2e-distributed, so nothing reported it. The task brief named six later commits as candidates and called671785621known good; both are wrong, and671785621fails these two specs as well. The fix is the scripted input, not the guard. Both specs wrote an empty address, which is a row this release cannot produce, since installBackendOnNode refuses an install that names no address. The dedup spec is repaired rather than merely un-reddened. With an empty address its DB row was dropped by the unnamed-replica guard before Range ever consulted the seen-set, so deleting the dedup check left it green: it asserted nothing. With the endpoint named, removing that check reddens it. Assisted-by: Claude Opus 5 [claude-code] Signed-off-by: Ettore Di Giacinto <mudler@localai.io>
This commit is contained in:
500 Internal Server Error
Gitea Version: 1.28.0+dev-477-g8b6ad49a5f