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(daemon): calibrate frontend and cli-quiesce budgets for starved runners

Martin Vogel1fbfb1f69c12
diff --git a/tests/test_cli.c b/tests/test_cli.c
index f814ff944..8646be412 100644
--- a/tests/test_cli.c
+++ b/tests/test_cli.c
@@ -758,7 +758,7 @@ TEST(cli_activation_quiesce_does_not_wait_on_bootstrap_startup) {
bool setup =
endpoint && manager &&
cbm_daemon_runtime_process_build_fingerprint((uint64_t)getpid(), fingerprint) &&
- cbm_version_cohort_acquire(manager, &identity, cbm_now_ms() + 2000U, &lease,
+ cbm_version_cohort_acquire(manager, &identity, cbm_now_ms() + 15000U, &lease,
&conflict) == CBM_VERSION_COHORT_OK &&
cbm_daemon_ipc_startup_lock_try_acquire(endpoint, &startup) == 1 && startup;
char ready = setup ? 'R' : 'E';
diff --git a/tests/test_daemon_frontend.c b/tests/test_daemon_frontend.c
index 2e3f35fac..02d4aa326 100644
--- a/tests/test_daemon_frontend.c
+++ b/tests/test_daemon_frontend.c
@@ -65,13 +65,16 @@ static const char FRONTEND_TEST_CACHE[] =
"cccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccc";
enum {
- FRONTEND_EOF_TEST_REQUEST_TIMEOUT_MS = 2000,
+ /* Hang guards, not benchmarks: starved 3-4-core CI runners need several
+ * seconds for frontend/daemon startup paths that finish instantly on a
+ * dev machine (see the index-supervisor calibration). */
+ FRONTEND_EOF_TEST_REQUEST_TIMEOUT_MS = 10000,
FRONTEND_EOF_TEST_CATASTROPHIC_TIMEOUT_S = 30,
FRONTEND_BACKPRESSURE_MESSAGE_BYTES = 2 * 1024 * 1024,
FRONTEND_BACKPRESSURE_FRONTEND_TIMEOUT_S = 12,
FRONTEND_BACKPRESSURE_DAEMON_TIMEOUT_S = 20,
- FRONTEND_BACKPRESSURE_RUNTIME_TIMEOUT_MS = 15000,
- FRONTEND_BACKPRESSURE_CLEANUP_TIMEOUT_MS = 2000,
+ FRONTEND_BACKPRESSURE_RUNTIME_TIMEOUT_MS = 30000,
+ FRONTEND_BACKPRESSURE_CLEANUP_TIMEOUT_MS = 10000,
/* The production queue is deliberately bounded below this count. Keep the
* regression black-box: it must remain valid if the exact capacity changes
* while still proving that overload cannot hide an already-pending EOF. */