Repository navigation
Check the control plane with barbacane-control health - #9
Conversation
From barbacane-dev/barbacane#411 on, the barbacane-control image has no shell, so the compose health check `bash -c 'echo > /dev/tcp/...'` cannot run and the container stays unhealthy. The image ships `barbacane-control health`, which calls GET /health; the check runs it. CI did not notice: the smoke test reaches the control plane over HTTP and nothing waits for its health check. A new step after the smoke test requires every running service with a health check to report healthy. 1.0.0-rc.1 has no `health` subcommand, so this goes in with the bump to the first release that has it. Signed-off-by: Nicolas Dreno <nicolas.dreno@barbacane.dev>
|
No actionable comments were generated in the recent review. Walkthrough
Merge Risk:
|
The control-plane health check runs `barbacane-control health`, which first ships in 1.0.0-rc.2, so that release is also the new minimum.
From barbacane-dev/barbacane#411 on, the
barbacane-controlimage runs on a base without a shell, so the compose health checkbash -c 'echo > /dev/tcp/localhost/9090'cannot run and the control plane stays unhealthy. The image shipsbarbacane-control health, which callsGET /healthand exits 0 on 200; the check runs it.docker-compose.yml: the control plane's health check is["CMD", "/usr/local/bin/barbacane-control", "health"], same interval, timeout and retries..env.example, README, compose defaults).The gateway keeps its
bashcheck, sincebarbacane-standalonekeeps its shell.On 1.0.0-rc.1 (the first commit alone), the new CI step failed on the control plane, which shows the step catches the break.
Summary by CodeRabbit
Documentation
Chores
Bug Fixes