From 33a59268e8179be05190120b89e93feaa07a915d Mon Sep 17 00:00:00 2001 From: loks0n <22452787+loks0n@users.noreply.github.com> Date: Wed, 24 Jun 2026 10:24:22 +0100 Subject: [PATCH] fix: remove flaky network-requests assertion from testVectorsDBStats assertProjectRequestsAtLeastGlobal() compares the cumulative static $globalRequestsTotal counter against the eventually-consistent network.requests metric. The test's own just-issued vector create/delete requests are the last to flush through usage aggregation, so when the flush lags past the 10s poll window the server reports one fewer request, producing the intermittent "231 vs 232" lower-bound failure. The invariant is unrelated to vector DB stats and is still asserted in five other usage tests, so dropping it here removes the race without losing coverage. Co-Authored-By: Claude Opus 4.8 (1M context) --- tests/e2e/General/UsageTest.php | 2 -- 1 file changed, 2 deletions(-) diff --git a/tests/e2e/General/UsageTest.php b/tests/e2e/General/UsageTest.php index dde1346991..217991c58f 100644 --- a/tests/e2e/General/UsageTest.php +++ b/tests/e2e/General/UsageTest.php @@ -1466,8 +1466,6 @@ final class UsageTest extends Scope $collectionsTotal = $data['vectordbCollectionsTotal']; $documentsTotal = $data['vectordbDocumentsTotal']; - $this->assertProjectRequestsAtLeastGlobal(); - // Project-wide scalars: vectorsdbDatabasesTotal counts ONLY VectorsDB instances // (not relational databases), vectorsdbDocumentsTotal is the sum of all vector // documents across this project. Both are produced exclusively by