Loading
fix(mqtt): the no-docker path never ran a single command
Two defects in Start Mqtt Server Natively, either of which alone makes every MQTT
Test Purpose fail at setup with ConnectionRefusedError - a broker fault to read,
and not one.
Set Variable with more than one argument returns a LIST, not a joined string.
Run Process then handed /bin/sh the repr of that list, which is the
/bin/sh: 1: [set -e;,: not found
in the log: the bracket and the comma are Python's. Catenate is the keyword that
joins.
And the readiness probe ends in `exec 3<>/dev/tcp/127.0.0.1/${port}`, a bash
builtin. shell=yes runs the script under /bin/sh - dash on Debian and Ubuntu -
and dash does not implement /dev/tcp, so the probe failed every time and the
keyword reported "could not be started" about a mosquitto that had started
perfectly well. Run it under bash.
Verified against a PATH with no docker on it, so the native branch is the one
taken: before, the keyword fails with exactly the error above; after, mosquitto
comes up and is listening on the port asked for.
Co-Authored-By:
Claude Opus 5 (1M context) <noreply@anthropic.com>