Skip to content

Check the control plane with barbacane-control health - #9

Merged
ndreno merged 2 commits into
mainfrom
control-plane-health
Nov 19, 2026
Merged

ndreno merged 2 commits into
mainfrom
control-plane-health

Conversation

@ndreno

@ndreno ndreno commented Nov 18, 2026 •

Copy link
Copy Markdown
Contributor

From barbacane-dev/barbacane#411 on, the barbacane-control image runs on a base without a shell, so the compose health check bash -c 'echo > /dev/tcp/localhost/9090' cannot run and the control plane stays unhealthy. The image ships barbacane-control health, which calls GET /health and 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.
  • CI: after the smoke test, every running service with a health check must report healthy. The smoke test reaches the control plane over HTTP and nothing waits for its health check, so a broken check passed CI unnoticed.
  • Version: the pin moves to 1.0.0-rc.2, the first release with feat(images): a runtime base of Wolfi packages built with apko barbacane#411, which is also the new minimum (.env.example, README, compose defaults).

The gateway keeps its bash check, since barbacane-standalone keeps 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

    • Updated the quick-start guide to reference the latest release tag.
  • Chores

    • Bumped the default container/image version used in local and compose-based setups to the newer release.
  • Bug Fixes

    • Improved CI smoke testing to wait for container health checks to become healthy and report failures more clearly.

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>
@coderabbitai

coderabbitai Bot commented Nov 18, 2026 •

Copy link
Copy Markdown

Explain Change →

No actionable comments were generated in the recent review.

Walkthrough

This pull request updates the playground to Barbacane 1.0.0-rc.2, changes the control-plane health check to use barbacane-control health, and adds a CI smoke-step check that waits for Docker health checks to become healthy and fails with health logs when they do not.

Changes: Playground release and smoke health checks

Layer / File(s) Summary
Release pin update
.env.example, docker-compose.yml, README.md
The documented minimum version, Compose image defaults for keygen, compiler, barbacane, and control-plane, and the Quick Start instructions now use 1.0.0-rc.2 instead of 1.0.0-rc.1.
Health command and CI verification
docker-compose.yml, .github/workflows/ci.yml
The control-plane service health check now runs /usr/local/bin/barbacane-control health. The smoke job now polls Docker health status for each health-checked container, prints the final status, and fails after dumping health logs if a container does not become healthy within the retry window.

Estimated code review effort: 2 (Simple) | ~10 minutes

Change: Bug fix

Possibly related PRs

  • barbacane-dev/playground#5: It changes the same version pins in .env.example, docker-compose.yml, and README.md, so the pinned release value overlaps directly with this pull request.
Merge Risk: Minimal · up to ccedb

No merge-blocking risk was established. The new health check should be confirmed in CI.

Pre-merge checks: Passed 4

Check name Status Explanation
Description Check Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check Passed The title "Check the control plane with barbacane-control health" matches the main change. The PR replaces the bash-based TCP probe on port 9090 for the control-plane service in docker-compose.yml w…
Linked Issues check Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check Passed Check skipped because no linked issues were found for this pull request.
Full details: Title check

Explanation

The title "Check the control plane with barbacane-control health" matches the main change. The PR replaces the bash-based TCP probe on port 9090 for the control-plane service in docker-compose.yml with the barbacane-control health command, because the image no longer has a shell. The title is specific and names the actual command used. It omits the accompanying version bump to 1.0.0-rc.2 and the new CI health-wait step, but those are secondary to the primary change.

Finishing Touches

Generate unit tests (beta)

  • Commit to this branch
  • Create a new PR
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

Share

Recent review info

Run configuration

  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: defaults
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: d0700ca6-7399-4e5e-aeb8-4c09fe010342
Commits

Reviewing files that changed from the base of the PR and between 4c48fa2 and ccedbda.

Files selected for processing: 4

  • .env.example
  • .github/workflows/ci.yml
  • README.md
  • docker-compose.yml

Included review availability: This review used your included allowance. Your plan provides up to 1 included review per hour; 0 remain after this review.

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.
@ndreno
ndreno marked this pull request as ready for review November 19, 2026 15:42
@ndreno
ndreno merged commit 7c15a1f into main Nov 19, 2026
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant