Skip to content

Commit ea43b38

Browse files
JacksonWeberCopilot
andcommitted
test: bump bundle size limits for @nevware21/ts-utils 0.15.0
ts-utils 0.15.0 (resolved via rush update --full) slightly increases bundle sizes, pushing core-js, AISKU, AISKULight and 1ds-post over their size-check thresholds. Bump the limits to match the values chosen in #2738 (core 132->133 / 53->54, AISKU 174->175 / 70->71, AISKULight 102->105 / 42->44, 1ds-post deflate 26.5->28). Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
1 parent 3e7d8c5 commit ea43b38

4 files changed

Lines changed: 13 additions & 13 deletions

File tree

AISKU/Tests/Unit/src/AISKUSize.Tests.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -54,10 +54,10 @@ function _checkSize(checkType: string, maxSize: number, size: number, isNightly:
5454
}
5555

5656
export class AISKUSizeCheck extends AITestClass {
57-
private readonly MAX_RAW_SIZE = 174;
58-
private readonly MAX_BUNDLE_SIZE = 174;
59-
private readonly MAX_RAW_DEFLATE_SIZE = 70;
60-
private readonly MAX_BUNDLE_DEFLATE_SIZE = 70;
57+
private readonly MAX_RAW_SIZE = 175;
58+
private readonly MAX_BUNDLE_SIZE = 175;
59+
private readonly MAX_RAW_DEFLATE_SIZE = 71;
60+
private readonly MAX_BUNDLE_DEFLATE_SIZE = 71;
6161
private readonly rawFilePath = "../dist/es5/applicationinsights-web.min.js";
6262
// Automatically updated by version scripts
6363
private readonly currentVer = "3.4.1";

AISKULight/Tests/Unit/src/AISKULightSize.Tests.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -51,10 +51,10 @@ function _checkSize(checkType: string, maxSize: number, size: number, isNightly:
5151
}
5252

5353
export class AISKULightSizeCheck extends AITestClass {
54-
private readonly MAX_RAW_SIZE = 102;
55-
private readonly MAX_BUNDLE_SIZE = 102;
56-
private readonly MAX_RAW_DEFLATE_SIZE = 42;
57-
private readonly MAX_BUNDLE_DEFLATE_SIZE = 42;
54+
private readonly MAX_RAW_SIZE = 105;
55+
private readonly MAX_BUNDLE_SIZE = 105;
56+
private readonly MAX_RAW_DEFLATE_SIZE = 44;
57+
private readonly MAX_BUNDLE_DEFLATE_SIZE = 44;
5858
private readonly rawFilePath = "../dist/es5/applicationinsights-web-basic.min.js";
5959
private readonly currentVer = "3.4.1";
6060
private readonly prodFilePath = `../browser/es5/aib.${this.currentVer[0]}.min.js`;

channels/1ds-post-js/test/Unit/src/FileSizeCheckTest.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ import { dumpObj, mathCeil } from '@nevware21/ts-utils';
33
import { createPromise, doAwait, IPromise } from '@nevware21/ts-async';
44
import * as pako from 'pako';
55

6-
const MAX_DEFLATE_SIZE = 26.5;
6+
const MAX_DEFLATE_SIZE = 28;
77

88
const PACKAGE_JSON = "../package.json";
99

shared/AppInsightsCore/Tests/Unit/src/ai/AppInsightsCoreSize.Tests.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -51,10 +51,10 @@ function _checkSize(checkType: string, maxSize: number, size: number, isNightly:
5151
}
5252

5353
export class AppInsightsCoreSizeCheck extends AITestClass {
54-
private readonly MAX_RAW_SIZE = 132;
55-
private readonly MAX_BUNDLE_SIZE = 132;
56-
private readonly MAX_RAW_DEFLATE_SIZE = 53;
57-
private readonly MAX_BUNDLE_DEFLATE_SIZE = 53;
54+
private readonly MAX_RAW_SIZE = 133;
55+
private readonly MAX_BUNDLE_SIZE = 133;
56+
private readonly MAX_RAW_DEFLATE_SIZE = 54;
57+
private readonly MAX_BUNDLE_DEFLATE_SIZE = 54;
5858
private readonly rawFilePath = "../dist/es5/index.min.js";
5959
private readonly prodFilePath = "../browser/es5/applicationinsights-core-js.min.js";
6060

0 commit comments

Comments
 (0)