Skip to content
This repository has been archived by the owner on Jul 2, 2024. It is now read-only.

EVG-20320: Upload Sentry source maps #2016

Merged
merged 5 commits into from
Sep 5, 2023
Merged

Conversation

sophstad
Copy link
Contributor

@sophstad sophstad commented Aug 31, 2023

EVG-20320

Description

  • Upload source maps to Sentry via its Vite plugin
  • Use v2.6.2 instead of 2.7.0 of the plugin: 2.7.0 threw an OOM error!
  • Due to the release.inject option utilized by the plugin, it's no longer necessary to pass APP_VERSION when initializing Sentry.
  • I can send you an updated .env-cmdrc.json with the Sentry auth token for review (will update the 1Password vault when this PR is approved)
  • View Spruce's uploaded source maps on Sentry here

Testing

  • Verified uploads on Sentry UI

@cypress
Copy link

cypress bot commented Sep 1, 2023

Passing run #12464 ↗︎

0 573 7 0 Flakiness 0

Details:

Codegen
Project: Spruce Commit: 1fd1da0992
Status: Passed Duration: 16:41 💡
Started: Sep 5, 2023 7:30 PM Ended: Sep 5, 2023 7:46 PM

This comment has been generated by cypress-bot as a result of this project's GitHub integration settings.

@sophstad sophstad requested a review from a team September 1, 2023 14:52
@sophstad sophstad marked this pull request as ready for review September 1, 2023 14:53
name: process.env.npm_package_version,
},
sourcemaps: {
assets: "./build/assets/*",
Copy link
Contributor

Choose a reason for hiding this comment

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

It looks like from the upload link that minified files are being uploaded alongside the minified files. I think this suggestion might do the trick to limit that

Suggested change
assets: "./build/assets/*",
assets: "./build/assets/*.map",

Copy link
Contributor Author

@sophstad sophstad Sep 5, 2023

Choose a reason for hiding this comment

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

The minified files should be uploaded with the sourcemaps! As per the docs:

For Sentry to de-minify your stack traces you must provide both the minified files (for example, app.min.js) and the corresponding source maps.

@sophstad sophstad requested a review from SupaJoon September 5, 2023 19:15
@sophstad sophstad added this pull request to the merge queue Sep 5, 2023
Merged via the queue into evergreen-ci:main with commit 2390f81 Sep 5, 2023
2 checks passed
@sophstad sophstad deleted the EVG-20320 branch September 5, 2023 20:18
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants