]> git.ipfire.org Git - thirdparty/rspamd.git/commitdiff
[Test] WebUI: widen throughput counter E2E range 6146/head
authorAlexander Moisseev <moiseev@mezonplus.ru>
Sat, 25 Jul 2026 10:12:30 +0000 (13:12 +0300)
committerAlexander Moisseev <moiseev@mezonplus.ru>
Sat, 25 Jul 2026 10:12:30 +0000 (13:12 +0300)
#rrd-total-value is an integral of the message rate (truncated per
series and summed over the 6 action series), an approximation that can
overshoot the messages scanned near row boundaries. CI observed the
total reach base+4 while only +2 were actually scanned (the exact
"Scanned" counter test still passed), exceeding the previous +3 cap.
Allow +4.

test/playwright/tests/scan.spec.mjs

index 049d3aba920ad0e393c1ac27d66e8670828f14ef..15eaa29ceca900ed6de3447ee82139de824a3a9a 100644 (file)
@@ -208,12 +208,15 @@ test.describe.serial("Scan flow across WebUI tabs", () => {
 
         test("Throughput `Total messages` counter increased", async ({}, testInfo) => {
             testInfo.setTimeout(140000);
-            // With empty RRD the first PDP is lost, so only +1 is visible
-            // Depending on row boundaries, throughput may show +2 or even +3
+            // With empty RRD the first PDP is lost, so only +1 is visible.
+            // #rrd-total-value is an integral of the message rate (truncated per
+            // series, summed over the 6 action series), so depending on row
+            // boundaries it can overshoot the messages scanned (+2 .. +4).
             const targetValues = [
                 scannedBefore.throughput + 1,
                 scannedBefore.throughput + 2,
                 scannedBefore.throughput + 3,
+                scannedBefore.throughput + 4,
             ];
 
             let lastValue = null;