From 533bd79949aa2bf0d75b20cc9edbb4934965d51c Mon Sep 17 00:00:00 2001 From: Chris Coutinho Date: Thu, 4 Jun 2026 23:33:03 +0200 Subject: [PATCH] fix(tests): fast vector-sync cadence for multi-user-basic CI service MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit After restoring the background-sync UI ids, the two indexing-dependent multi-user-basic tests (chunk_context_uses_app_password, plotly_with_basic_auth) surfaced a second, previously-masked failure: they provision a user, create a note, then wait ~90s for it to be indexed. The mcp-multi-user-basic service ran with the production cadence — scan interval 60s and the default user-poll interval 60s. A freshly-provisioned user isn't even *discovered* by the background-sync user manager for up to 60s, leaving too little of the 90s budget for the scan + single-worker indexing to finish (observed: pending docs still "syncing" at timeout, or the scanner not yet started → "idle" with 0 indexed). Match the single-user service's short cadence (5s) and add a matching 5s user-poll interval so discovery + scan + index complete well within the test budget. Test-only config; production deployments set their own intervals. Co-Authored-By: Claude Opus 4.8 (1M context) --- docker-compose.yml | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/docker-compose.yml b/docker-compose.yml index 6dcb7a0a..151d9296 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -160,7 +160,15 @@ services: - TOKEN_STORAGE_DB=/app/data/tokens.db - ENABLE_SEMANTIC_SEARCH=true - - VECTOR_SYNC_SCAN_INTERVAL=60 + # Fast discovery + scan cadence for integration tests: the multi-user + # background-sync suite provisions a user, creates a note, then waits + # ~90s for it to be indexed. With the production defaults (user-poll 60s + # + scan 60s) a freshly-provisioned user often isn't even discovered + # within that budget, so the wait times out (note never indexed). Match + # the single-user service's short cadence so discovery + scan + index + # complete promptly under CI load. + - VECTOR_SYNC_USER_POLL_INTERVAL=5 + - VECTOR_SYNC_SCAN_INTERVAL=5 - VECTOR_SYNC_PROCESSOR_WORKERS=1 # OAuth credentials for background sync (optional - uses DCR if not provided)