Skip to content

Commit 3285008

Browse files
author
Shaw
committed
fix(cloud): relax runtime performance timing guard
1 parent 997b198 commit 3285008

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

cloud/packages/tests/runtime/integration/performance/embedding-init.test.ts

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -149,8 +149,9 @@ describe.skipIf(!hasDatabaseUrl)("Embedding Initialization Performance", () => {
149149
// Repeated startup should stay within a reasonable band of the baseline
150150
// even when there is no dramatic "warm" speedup from embedding setup.
151151
// CI runners have high timing variance (GC, JIT, noisy neighbors), so
152-
// allow up to 3x or +200 ms headroom to avoid flaky failures.
153-
expect(avgWarm).toBeLessThan(Math.max(firstDuration * 3, firstDuration + 200));
152+
// allow an absolute floor plus relative headroom to avoid flaky failures
153+
// when the baseline run is unusually fast on a noisy shared runner.
154+
expect(avgWarm).toBeLessThan(Math.max(500, firstDuration * 3, firstDuration + 300));
154155
expect(warmVariance).toBeLessThan(maxWarmVariance);
155156
},
156157
{ timeout: 180000 },

0 commit comments

Comments
 (0)