fix(cli): use UDS connect-probe health check for _ui and _admin #22
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "development_mik"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Closes #21
The action specs for
hero_assistance_uiandhero_assistance_adminconfigured hero_proc withhttp_url: "http://localhost/health", but both daemons bind UDS only (app.sockandadmin.sock). Every probe attempt failed because nothing on the host serveshttp://localhost:80/health, and after the retry budget elapsed hero_proc killed each daemon. Withmax_attempts=3the actions ended up permanently failed; observed restart cadence before retries exhausted was roughly 30 to 35 seconds.Switch both health checks to the same shape
hero_assistance_serveralready uses:openrpc_socket: Some(<their UDS path>). Perhero_proc_server/src/types/config_ext.rstheOpenRpcSocketvariant is a connect-only probe, so this works regardless of whether the daemon exposes/rpcor/openrpc.json(the customer UI's router only has/rpc; the admin has both).Add
phase24c_build_service_definition_health_checks_use_uds_connect_probepinning the contract across all three actions so a regression tohttp_urlis caught at test time.Live verify against the rewritten action spec on an installed
hero_assistance: all three daemons (server, ui, admin) stayed inrunningphase under hero_proc for 5.5 minutes with the same PIDs (no restart cycle), andcurl --unix-socketagainstrpc.sock,app.sock, andadmin.sockall returned 200 with the expected health JSON.Pre-merge gate clean:
cargo fmt --check,cargo clippy --release --workspace --all-targets -- -D warnings,cargo build --workspace --release. Workspace tests 255 pass / 2 fail / 14 ignored (+1 from the new pin test vs the 254/1/14 baseline; the 2 fails are the documented pre-existing flakesphase24b_ui_add_access_fails_when_hero_proc_unreachableand the transientphase10_multi_project_merged_stream_tags_by_project_id).