Skip to content

Local code intelligence for developers and AI agents. Connect code, docs and infrastructure in a persistent graph, with CBM Lens, MCP tools, agent integrations and change-aware test selection.

test(frontend): widen recovery hang guard for MSan

Pxx500b9da6dca0312
diff --git a/src/main.c b/src/main.c
index 98db00561..5547d79b1 100644
--- a/src/main.c
+++ b/src/main.c
@@ -3070,7 +3070,6 @@ int main(int argc, char **argv) {
cbm_daemon_bootstrap_result_t bootstrap_result;
cbm_daemon_bootstrap_status_t bootstrap_status =
main_client_bootstrap_with_upgrade(&bootstrap_config, &bootstrap_result, true);
- cbm_daemon_ipc_endpoint_free(endpoint);
if (bootstrap_status != CBM_DAEMON_BOOTSTRAP_CONNECTED || !bootstrap_result.client) {
main_report_client_bootstrap_failure(role, &bootstrap_result);
cbm_daemon_ipc_endpoint_free(endpoint);
diff --git a/tests/test_daemon_frontend.c b/tests/test_daemon_frontend.c
index 7df0e3e9f..96889ad33 100644
--- a/tests/test_daemon_frontend.c
+++ b/tests/test_daemon_frontend.c
@@ -231,6 +231,9 @@ enum {
* dev machine (see the index-supervisor calibration). */
FRONTEND_EOF_TEST_REQUEST_TIMEOUT_MS = 30000,
FRONTEND_EOF_TEST_CATASTROPHIC_TIMEOUT_S = 90,
+ /* Recovery can spend most of the generic guard restarting an instrumented
+ * daemon before the clean-EOF case enters its deliberate 15s drain. */
+ FRONTEND_RECOVERY_TEST_CATASTROPHIC_TIMEOUT_S = 120,
FRONTEND_BACKPRESSURE_MESSAGE_BYTES = 2 * 1024 * 1024,
FRONTEND_BACKPRESSURE_FRONTEND_TIMEOUT_S = 90,
FRONTEND_BACKPRESSURE_DAEMON_TIMEOUT_S = 90,
@@ -764,7 +767,7 @@ static bool frontend_eof_run_isolated(const char *tag, bool overflow) {
}
static int frontend_recovery_child_run(const char *parent, frontend_recovery_mode_t recovery_mode) {
- (void)alarm(FRONTEND_EOF_TEST_CATASTROPHIC_TIMEOUT_S);
+ (void)alarm(FRONTEND_RECOVERY_TEST_CATASTROPHIC_TIMEOUT_S);
frontend_eof_fixture_t fixture;
if (!frontend_eof_fixture_start(&fixture, parent)) {
(void)frontend_eof_fixture_finish(&fixture);