Skip to content

Warn at boot when the docker deploy provider has no daemon - #897

Merged
16francej merged 2 commits into
mainfrom
fix-docker-deploy-daemon-probe
Sep 2, 2026
Merged

Warn at boot when the docker deploy provider has no daemon#897
16francej merged 2 commits into
mainfrom
fix-docker-deploy-daemon-probe

Conversation

@16francej

@16francej 16francej commented Sep 2, 2026

Copy link
Copy Markdown
Contributor

Warn once at core startup when the deploy provider is docker but no Docker daemon is reachable, instead of surfacing a bare socket error at the first publish. The probe runs off the boot path and never blocks startup.

  • verification: npx tsx --test test/docker-deploy-provider.test.ts (9/9), adjacent deploy tests pass
  • verification: npm run typecheck, eslint, prettier clean
  • verification: live core boot with the daemon stopped warns with the reason and starts normally; no warning when it is reachable

View with [code]smith Autofix with [code]smith
Need help on this PR? Tag @codesmith-bot with what you need. Autofix is disabled.

16francej and others added 2 commits September 2, 2026 00:14
DEPLOY_PROVIDER defaults to docker when unset, and the docker provider does
not touch docker until the first publish, so a core with no reachable daemon
looks healthy until a publish fails with a bare socket error. Probe the daemon
once at startup, off the boot path, and warn with the reason and the knob to
change.

Co-Authored-By: QM <qm@ycombinator.com>
Probing from buildApp spawned a real docker subprocess in every test that
builds the app, so the check reached far beyond the process it was meant to
diagnose. Run it once where a long-lived server starts instead, report a hung
daemon as a timeout rather than a bare exit code, and describe the selected
provider without asserting how it was selected.

Co-Authored-By: QM <qm@ycombinator.com>
@16francej
16francej merged commit b384c65 into main Sep 2, 2026
20 checks passed
@16francej
16francej deleted the fix-docker-deploy-daemon-probe branch September 2, 2026 02:04
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