MCPcopy Create free account
hub / github.com/DeusData/codebase-memory-mcp / cli_scope_host_serving

Function cli_scope_host_serving

tests/test_cli.c:1932–1936  ·  view source on GitHub ↗

Ask the host daemon itself: still running, not stopping, and the parent's * committed client still admitted. A foreign-namespace install leaves this * daemon serving, so a slow reply on a loaded runner must not be misread as * "drained" (the flaky failure this fixture showed): a mute attempt is * repeated until the daemon answers, while a drained daemon is unreachable or * reports stopping, w

Source from the content-addressed store, hash-verified

1930 * repeated until the daemon answers, while a drained daemon is unreachable or
1931 * reports stopping, which decides at once. */
1932static bool cli_scope_host_serving(const cli_scope_fixture_t *fixture) {
1933 cli_scope_status_probe_t probe = {.fixture = fixture};
1934 return fixture->endpoint && cli_scope_until_answered(cli_scope_status_attempt, &probe) &&
1935 !probe.status.stopping && probe.status.committed_clients == 1;
1936}
1937
1938static int cli_scope_install(cli_scope_fixture_t *fixture, const char *home, const char *cache,
1939 const char *bin_dir, bool skip_binary) {

Callers 1

test_cli.cFile · 0.85

Calls 1

cli_scope_until_answeredFunction · 0.85

Tested by

no test coverage detected