sentry icon indicating copy to clipboard operation
sentry copied to clipboard

ci: Use eslint to track calls to @deprecated functions/components

Open ryan953 opened this issue 9 months ago • 1 comments

This creates a new workflow specifically for tracking calls to @deprecated functions in javascript.

It's going to run on a schedule, or on demand. It's not needed to run on every PR because the expectation is that there will be a long list of deprecations, and we should work over time to fix them up. If this were running on every PR it would desensitize people to lint problems so quickly, a really bad place to be.

Followup tasks that we don't need to start with but would be amazing:

  • Change the output so it's grouped by @deprecated method, so we can see all related things at once
  • Connect it to a slackbot command so we can use/share the results with the team more easily, especially the count of errors.

Example output: https://github.com/getsentry/sentry/actions/runs/8943695929/job/24568982206?pr=70184

ryan953 avatar May 02 '24 21:05 ryan953

image

these will just appear on every PR

scttcper avatar May 02 '24 22:05 scttcper

Bundle Report

Changes will decrease total bundle size by 18 bytes :arrow_down:

Bundle name Size Change
app-webpack-bundle-array-push 27.67MB 18 bytes :arrow_down:

codecov[bot] avatar May 20 '24 20:05 codecov[bot]