Skip to content

Commit ca6119f

Browse files
dylanjeffersclaude
andcommitted
chore: remove Sentry from the entire monorepo
Removes the Sentry SDK (web + mobile + identity-service), the redux-sentry-middleware, the @sentry/cli release-cut job, and every call site of reportToSentry / ErrorLevel / Feature. Most reportToSentry({...}) calls become console.error(...) with the same context payload. The ErrorReporting model and the sentry + reportToSentry properties on CommonStoreContext / QueryContext are deleted. SENTRY_DSN is dropped from web and mobile env + the Env type, toucan-js is removed from the SSR worker, and the iOS dSYM upload script, sentry.properties files, and CI sentry-cli steps go too. verify (tsc + eslint) passes clean for common, web, and mobile after the SDK and harmony are built locally. The two pre-existing identity-service tsc errors are unrelated to this change. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
1 parent 2a4dd72 commit ca6119f

152 files changed

Lines changed: 429 additions & 2954 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.circleci/src/commands/@mobile-commands.yml

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -38,11 +38,6 @@ mobile-prepare-ios:
3838
command: |
3939
cd packages/mobile/ios
4040
bundle exec pod install
41-
- run:
42-
name: Install Sentry CLI
43-
command: |
44-
curl -sL https://sentry.io/get-cli/ | bash
45-
echo export SENTRY_BINARY=/usr/local/bin/sentry-cli >> "$BASH_ENV"
4641
- run:
4742
name: Build dependencies
4843
no_output_timeout: 60m

.circleci/src/jobs/@web-jobs.yml

Lines changed: 0 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -143,30 +143,6 @@ web-deploy-production-cloudflare:
143143
copy-robots: true
144144
# - web-deploy-sourcemaps-s3
145145

146-
web-deploy-sentry-sourcemaps:
147-
working_directory: ~/apps
148-
docker:
149-
- image: cimg/node:20.19
150-
steps:
151-
- checkout
152-
- attach_workspace:
153-
at: ./
154-
- run:
155-
name: cut-sentry-release
156-
command: |
157-
cd packages/web
158-
../../node_modules/.bin/sentry-cli --auth-token ${SENTRY_AUTH_TOKEN} releases --org audius --project audius-client new ${CIRCLE_SHA1}
159-
- run:
160-
name: upload-sourcemaps
161-
command: |
162-
cd packages/web
163-
../../node_modules/.bin/sentry-cli --auth-token ${SENTRY_AUTH_TOKEN} releases --org audius --project audius-client files ${CIRCLE_SHA1} upload-sourcemaps --no-rewrite build-production/static/js
164-
- run:
165-
name: finalize-release
166-
command: |
167-
cd packages/web
168-
../../node_modules/.bin/sentry-cli --auth-token ${SENTRY_AUTH_TOKEN} releases --org audius --project audius-client finalize ${CIRCLE_SHA1}
169-
170146
web-dist-mac-production:
171147
working_directory: ~/apps
172148
# run on macos so dmg can be created and signed.

.circleci/src/workflows/web.yml

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -70,14 +70,6 @@ jobs:
7070
filters:
7171
branches:
7272
only: /^main$/
73-
- web-deploy-sentry-sourcemaps:
74-
context: Audius Client
75-
requires:
76-
- web-hold-production
77-
filters:
78-
branches:
79-
only: /^main$/
80-
8173
# Distribute production desktop binaries on main.
8274
- web-hold-dist-mac-production:
8375
type: approval

.github/workflows/mobile.yml

Lines changed: 0 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -501,11 +501,6 @@ jobs:
501501
cd packages/mobile/ios
502502
RCT_NEW_ARCH_ENABLED=0 bundle exec pod install
503503
504-
- name: Install Sentry CLI
505-
run: |
506-
curl -sL https://sentry.io/get-cli/ | bash
507-
echo "$HOME/.sentry-cli/bin" >> $GITHUB_PATH
508-
509504
- name: Build dependencies
510505
timeout-minutes: 60
511506
run: npx turbo run build --filter=@audius/mobile
@@ -559,9 +554,6 @@ jobs:
559554
APP_STORE_CONNECT_API_KEY_KEY_ID: ${{ secrets.APP_STORE_CONNECT_API_KEY_KEY_ID }}
560555
APP_STORE_CONNECT_API_KEY_ISSUER_ID: ${{ secrets.APP_STORE_CONNECT_API_KEY_ISSUER_ID }}
561556
APP_STORE_CONNECT_API_KEY_KEY: ${{ secrets.APP_STORE_CONNECT_API_KEY_KEY }}
562-
SENTRY_AUTH_TOKEN: ${{ secrets.SENTRY_AUTH_TOKEN }}
563-
SENTRY_ORG: ${{ secrets.SENTRY_ORG }}
564-
SENTRY_PROJECT: ${{ secrets.SENTRY_PROJECT }}
565557
run: |
566558
cd packages/mobile/ios
567559
bundle exec fastlane build_and_upload bundle_id:co.audius.audiusmusic.releasecandidate
@@ -888,11 +880,6 @@ jobs:
888880
cd packages/mobile/ios
889881
RCT_NEW_ARCH_ENABLED=0 bundle exec pod install
890882
891-
- name: Install Sentry CLI
892-
run: |
893-
curl -sL https://sentry.io/get-cli/ | bash
894-
echo "$HOME/.sentry-cli/bin" >> $GITHUB_PATH
895-
896883
- name: Build dependencies
897884
timeout-minutes: 60
898885
run: npx turbo run build --filter=@audius/mobile
@@ -946,9 +933,6 @@ jobs:
946933
APP_STORE_CONNECT_API_KEY_KEY_ID: ${{ secrets.APP_STORE_CONNECT_API_KEY_KEY_ID }}
947934
APP_STORE_CONNECT_API_KEY_ISSUER_ID: ${{ secrets.APP_STORE_CONNECT_API_KEY_ISSUER_ID }}
948935
APP_STORE_CONNECT_API_KEY_KEY: ${{ secrets.APP_STORE_CONNECT_API_KEY_KEY }}
949-
SENTRY_AUTH_TOKEN: ${{ secrets.SENTRY_AUTH_TOKEN }}
950-
SENTRY_ORG: ${{ secrets.SENTRY_ORG }}
951-
SENTRY_PROJECT: ${{ secrets.SENTRY_PROJECT }}
952936
run: |
953937
cd packages/mobile/ios
954938
bundle exec fastlane build_and_upload bundle_id:co.audius.audiusmusic

.github/workflows/web.yml

Lines changed: 0 additions & 89 deletions
Original file line numberDiff line numberDiff line change
@@ -837,92 +837,3 @@ jobs:
837837
job_url="${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }}"
838838
json_content="{ \"blocks\": [{ \"type\": \"section\", \"text\": { \"type\": \"mrkdwn\", \"text\": \"Deployed production <${job_url}|v${deploying_version}> to web \n\" } }]}"
839839
curl -f -X POST -H 'Content-type: application/json' --data "$json_content" $SLACK_WEBHOOK
840-
841-
web-deploy-sentry-sourcemaps:
842-
name: Web Deploy Sentry Sourcemaps
843-
runs-on: ubuntu-latest
844-
needs: [web-build, web-check-ssr-bundlesize]
845-
if: github.ref == 'refs/heads/main'
846-
environment:
847-
name: production
848-
steps:
849-
- name: Checkout code
850-
uses: actions/checkout@v4
851-
852-
- name: Setup Node.js
853-
uses: actions/setup-node@v4
854-
with:
855-
node-version: ${{ env.NODE_VERSION }}
856-
857-
- name: Create concatenated patch file
858-
id: patch-file
859-
run: |
860-
ls -d -- packages/*/patches/*.patch 2>/dev/null | xargs cat > combined-patch-file.txt || touch combined-patch-file.txt
861-
echo "patch_checksum=$(sha256sum combined-patch-file.txt | cut -d' ' -f1)" >> $GITHUB_OUTPUT
862-
863-
- name: Cache node modules
864-
id: cache-node-modules
865-
uses: actions/cache@v4
866-
with:
867-
path: |
868-
node_modules
869-
packages/web/node_modules
870-
packages/harmony/node_modules
871-
packages/common/node_modules
872-
packages/libs/node_modules
873-
packages/sdk/node_modules
874-
key: npm-cache-${{ runner.os }}-node-${{ env.NODE_VERSION }}-${{ hashFiles('package-lock.json') }}-${{ steps.patch-file.outputs.patch_checksum }}
875-
restore-keys: |
876-
npm-cache-${{ runner.os }}-node-${{ env.NODE_VERSION }}-${{ hashFiles('package-lock.json') }}-
877-
878-
- name: Install dependencies (if cache miss)
879-
if: steps.cache-node-modules.outputs.cache-hit != 'true'
880-
env:
881-
CI: true
882-
SKIP_POD_INSTALL: true
883-
SKIP_ANDROID_INSTALL: true
884-
ANDROID_HOME: /tmp/android-sdk-dummy
885-
NODE_OPTIONS: --max-old-space-size=8192
886-
run: |
887-
mkdir -p /tmp/android-sdk-dummy
888-
npm ci --prefer-offline
889-
890-
- name: Run postinstall (if cache hit)
891-
if: steps.cache-node-modules.outputs.cache-hit == 'true'
892-
env:
893-
CI: true
894-
SKIP_POD_INSTALL: true
895-
SKIP_ANDROID_INSTALL: true
896-
ANDROID_HOME: /tmp/android-sdk-dummy
897-
NODE_OPTIONS: --max-old-space-size=8192
898-
run: |
899-
mkdir -p /tmp/android-sdk-dummy
900-
npm run postinstall
901-
902-
- name: Download builds
903-
uses: actions/download-artifact@v4
904-
with:
905-
name: builds
906-
path: packages/web
907-
908-
- name: Cut Sentry release
909-
env:
910-
SENTRY_AUTH_TOKEN: ${{ secrets.SENTRY_AUTH_TOKEN }}
911-
run: |
912-
cd packages/web
913-
../../node_modules/.bin/sentry-cli --auth-token ${SENTRY_AUTH_TOKEN} releases --org audius --project audius-client new ${{ github.sha }}
914-
915-
- name: Upload sourcemaps
916-
env:
917-
SENTRY_AUTH_TOKEN: ${{ secrets.SENTRY_AUTH_TOKEN }}
918-
run: |
919-
cd packages/web
920-
../../node_modules/.bin/sentry-cli --auth-token ${SENTRY_AUTH_TOKEN} sourcemaps upload --org audius --project audius-client --release ${{ github.sha }} build-production/static/js
921-
922-
- name: Finalize release
923-
env:
924-
SENTRY_AUTH_TOKEN: ${{ secrets.SENTRY_AUTH_TOKEN }}
925-
run: |
926-
cd packages/web
927-
../../node_modules/.bin/sentry-cli --auth-token ${SENTRY_AUTH_TOKEN} releases --org audius --project audius-client finalize ${{ github.sha }}
928-

0 commit comments

Comments
 (0)