Files
bot-bottle/tests/unit
didericis b315a127b8
tracker-policy-pr / check-pr (pull_request) Successful in 12s
lint / lint (push) Successful in 56s
test / unit (pull_request) Failing after 46s
test / integration-docker (pull_request) Successful in 1m1s
test / coverage (pull_request) Has been skipped
fix(backend): skip gateway reconcile when no running bottles (0081)
reconcile_running_bottles() gathered the gateway attach-resources (a read of
the per-host singleton gateway's CA) *before* enumerating running bottles. On
a cold-boot bring-up of a NON-default gateway instance with no host bottles —
e.g. an isolated integration test's `-itest-` gateway — that read targeted the
default `bot-bottle-orch-gateway`, which doesn't exist for that instance, so
setUpClass died with "No such container: bot-bottle-orch-gateway" (seen on the
0081 PR's integration-docker job).

Enumerate running bottles first and return early when there are none: the
reconcile is a no-op with nothing to reattach, so the CA read is both wasted
and wrong for a non-default instance. Production (default names, real bottles)
is unchanged. Adds unit coverage for the three reconcile paths.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
2026-07-26 22:52:47 -04:00
..