Skip to content

fix: increase core deflate size limit to 54 KB#2738

Open
hectorhdzg wants to merge 3 commits into
microsoft:mainfrom
hectorhdzg:fix/core-deflate-size-limit
Open

fix: increase core deflate size limit to 54 KB#2738
hectorhdzg wants to merge 3 commits into
microsoft:mainfrom
hectorhdzg:fix/core-deflate-size-limit

Conversation

@hectorhdzg

Copy link
Copy Markdown
Member

No description provided.

Copilot AI review requested due to automatic review settings June 10, 2026 00:18
@hectorhdzg hectorhdzg requested a review from a team as a code owner June 10, 2026 00:18

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Updates the Application Insights Core size gate unit test to allow a slightly larger deflated (compressed) bundle, preventing CI failures when the core package’s minified output grows marginally.

Changes:

  • Increase the maximum allowed deflate size for both raw and bundled Core builds from 53 KB to 54 KB.

The npm install steps fail when puppeteer's postinstall (node install.mjs)
tries to download chrome-headless-shell v148 and the cache is partial
('browser folder exists but the executable is missing').

Fix:
- Add job-level PUPPETEER_SKIP_DOWNLOAD=true to gate the flaky postinstall
  download during the npm install steps.
- Add an explicit 'Install Puppeteer browsers' step that names each browser
  (chrome and chrome-headless-shell) so they install even with SKIP_DOWNLOAD
  set (the no-arg form is a silent no-op under that env var, leaving Chrome
  missing for 'npm run test').
Mirrors the non-pureview parts of microsoft#2739. The floating '>= 0.14.0 < 2.x'
range let CI resolve a newer ts-utils (0.15.x) than was locked, which is
what surfaced as the @microsoft/applicationinsights-shims build failure
and grew the core/AISKU bundle sizes.

- Bump ts-utils floor to '>= 0.15.0 < 2.x' across all source package.json
  files (25 packages).
- Regenerate common/config/rush/npm-shrinkwrap.json so CI resolves the same
  pinned ts-utils 0.15.0 (verified locally).
- Bump size-test thresholds to match: core RAW/BUNDLE 132 => 133 (deflate
  already 54); AISKU RAW/BUNDLE 174 => 175, deflate 70 => 71.

Verified locally: shims build OK, core build OK, all 873 core tests pass
(including the deflate/raw size checks).
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants