Skip to content

Conversation

@mydea
Copy link
Member

@mydea mydea commented Jul 4, 2024

This updates the Loader Script to ensure we also check for an already installed instance of the SDK under v8, where the global carrier window.__SENTRY__ has a different shape.

Part of getsentry/sentry-javascript#12187

@mydea mydea self-assigned this Jul 4, 2024
@github-actions github-actions bot added Scope: Frontend Automatically applied to PRs that change frontend components Scope: Backend Automatically applied to PRs that change backend components labels Jul 4, 2024
@github-actions
Copy link
Contributor

github-actions bot commented Jul 4, 2024

🚨 Warning: This pull request contains Frontend and Backend changes!

It's discouraged to make changes to Sentry's Frontend and Backend in a single pull request. The Frontend and Backend are not atomically deployed. If the changes are interdependent of each other, they must be separated into two pull requests and be made forward or backwards compatible, such that the Backend or Frontend can be safely deployed independently.

Have questions? Please ask in the #discuss-dev-infra channel.

@@ -1,5 +1,5 @@
declare const __LOADER__PUBLIC_KEY__: any;
declare const __LOADER_SDK_URL__: any;
declare const __LOADER__SDK_URL__: any;
Copy link
Member Author

Choose a reason for hiding this comment

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

This is not directly related but noticed that this was inconsistent before!

@codecov
Copy link

codecov bot commented Jul 4, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 78.11%. Comparing base (ba90407) to head (fda806a).
Report is 5 commits behind head on master.

Additional details and impacted files
@@            Coverage Diff             @@
##           master   #73831      +/-   ##
==========================================
+ Coverage   78.08%   78.11%   +0.03%     
==========================================
  Files        6659     6659              
  Lines      297923   297920       -3     
  Branches    51259    51256       -3     
==========================================
+ Hits       232639   232731      +92     
+ Misses      58986    58904      -82     
+ Partials     6298     6285      -13     

see 37 files with indirect coverage changes

@codecov
Copy link

codecov bot commented Jul 4, 2024

Bundle Report

Changes will increase total bundle size by 235 bytes ⬆️

Bundle name Size Change
app-webpack-bundle-array-push 27.3MB 235 bytes ⬆️

@mydea mydea marked this pull request as ready for review July 4, 2024 14:31
@mydea mydea requested a review from a team as a code owner July 4, 2024 14:31
@mydea mydea merged commit d5e3525 into master Jul 8, 2024
@mydea mydea deleted the fn/loader-v8 branch July 8, 2024 13:53
priscilawebdev pushed a commit that referenced this pull request Jul 11, 2024
This updates the Loader Script to ensure we also check for an already
installed instance of the SDK under v8, where the global carrier
`window.__SENTRY__` has a different shape.

Part of getsentry/sentry-javascript#12187

* Tests for v8:
getsentry/sentry-javascript#12764
* Tests for v7:
getsentry/sentry-javascript#12765
@github-actions github-actions bot locked and limited conversation to collaborators Jul 24, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

Scope: Backend Automatically applied to PRs that change backend components Scope: Frontend Automatically applied to PRs that change frontend components

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants