hero_embedder health check blocks server startup in CI #65

Closed
opened 2026-02-26 02:17:30 +00:00 by mik-tf · 0 comments
Owner

Problem

Since commit 95ed3aa, the server performs a mandatory health check for hero_embedder at startup. If the Unix socket doesn't exist, the server refuses to start.

This blocks the CI integration job — the smoke tests in make test-all can't start the server because there's no hero_embedder service running in the CI container.

Root Cause

verify_hero_embedder_health() in src/web/axum_server.rs returns an error if the socket is missing, and both start_axum_server() and start_rpc_only_server() propagate that as a fatal startup error.

Fix

Make the health check non-fatal: log a warning and continue in degraded mode (no vector search). Errors are returned at call time if embedder features are used without an available embedder.

This matches the pattern of other Hero services handling optional dependencies gracefully.

## Problem Since commit 95ed3aa, the server performs a mandatory health check for `hero_embedder` at startup. If the Unix socket doesn't exist, the server refuses to start. This blocks the CI integration job — the smoke tests in `make test-all` can't start the server because there's no `hero_embedder` service running in the CI container. ## Root Cause `verify_hero_embedder_health()` in `src/web/axum_server.rs` returns an error if the socket is missing, and both `start_axum_server()` and `start_rpc_only_server()` propagate that as a fatal startup error. ## Fix Make the health check non-fatal: log a warning and continue in degraded mode (no vector search). Errors are returned at call time if embedder features are used without an available embedder. This matches the pattern of other Hero services handling optional dependencies gracefully.
Sign in to join this conversation.
No labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
lhumina_code/hero_books#65
No description provided.