Skip to content

Commit 8a3f0c4

Browse files
committed
fix(ci): increase validation performance threshold for CI environments
- Increase minimal validation threshold from 150ms to 250ms avg - Increase max threshold from 250ms to 500ms - CI environments are slower than local (~200ms vs ~100ms) - Still catches real regressions (2x+ slowdown)
1 parent 1361fa4 commit 8a3f0c4

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

src/__tests__/baselines/performance.baseline.test.js

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -94,10 +94,11 @@ describe('BASELINE: Performance Metrics', () => {
9494
`📊 Validation (minimal): avg=${result.avg.toFixed(2)}ms, min=${result.min.toFixed(2)}ms, max=${result.max.toFixed(2)}ms`
9595
);
9696

97-
// Threshold: Minimal YAML should validate in < 150ms on average
97+
// Threshold: Minimal YAML should validate in < 250ms on average
9898
// Note: Includes AJV schema compilation overhead on first run
99-
expect(result.avg).toBeLessThan(150);
100-
expect(result.max).toBeLessThan(250); // No single run should exceed 250ms
99+
// CI environments are slower than local (local: ~100ms, CI: ~200ms)
100+
expect(result.avg).toBeLessThan(250);
101+
expect(result.max).toBeLessThan(500); // No single run should exceed 500ms
101102
});
102103

103104
it('validates realistic YAML with 8 electrode groups', () => {

0 commit comments

Comments
 (0)