Commit Graph

2 Commits

Author SHA1 Message Date
Isaac Moore c45b5a5249 Only upload production source maps to Sentry
Change-Id: I28669bf03e21354009d436368d9b4d438cc6df9b
Reviewed-on: https://gerrit.instructure.com/c/canvas-lms/+/287944
Tested-by: Service Cloud Jenkins <svc.cloudjenkins@instructure.com>
Reviewed-by: Aaron Ogata <aogata@instructure.com>
QA-Review: Isaac Moore <isaac.moore@instructure.com>
Product-Review: Isaac Moore <isaac.moore@instructure.com>
2022-03-24 18:17:54 +00:00
Isaac Moore a012ffe8ca Add support for uploading JS sources and maps to Sentry
This commit adds a rake task with support for uploading JS sources and
maps to Sentry. It makes use of `@sentry/cli` to perform the upload.

closes DE-995
flag=none

test plan:
- run a local Sentry instance with a project configured
- perform a full webpack build (with source map generation)
- invoke the rake task with all necessary arguments
- check Sentry, and observe that only JS and map files in the webpack-*/
  directories have been uploaded
- manually cause a frontend error to occur, and observe that the issue
  page displays correctly-mapped source code context

Change-Id: I679055a7bb04bc1e95a78f8c20b1b86dbabbd258
Reviewed-on: https://gerrit.instructure.com/c/canvas-lms/+/283465
Tested-by: Service Cloud Jenkins <svc.cloudjenkins@instructure.com>
Reviewed-by: Ryan Norton <rnorton@instructure.com>
Product-Review: Ryan Norton <rnorton@instructure.com>
QA-Review: Isaac Moore <isaac.moore@instructure.com>
2022-02-18 22:33:59 +00:00