Skip to content

Commit e5029bf

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 1f5a75a commit e5029bf

160 files changed

Lines changed: 452 additions & 2979 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
@@ -367,11 +367,6 @@ jobs:
367367
cd packages/mobile/ios
368368
RCT_NEW_ARCH_ENABLED=0 bundle exec pod install
369369
370-
- name: Install Sentry CLI
371-
run: |
372-
curl -sL https://sentry.io/get-cli/ | bash
373-
echo "$HOME/.sentry-cli/bin" >> $GITHUB_PATH
374-
375370
- name: Build dependencies
376371
timeout-minutes: 60
377372
run: npx turbo run build --filter=@audius/mobile
@@ -425,9 +420,6 @@ jobs:
425420
APP_STORE_CONNECT_API_KEY_KEY_ID: ${{ secrets.APP_STORE_CONNECT_API_KEY_KEY_ID }}
426421
APP_STORE_CONNECT_API_KEY_ISSUER_ID: ${{ secrets.APP_STORE_CONNECT_API_KEY_ISSUER_ID }}
427422
APP_STORE_CONNECT_API_KEY_KEY: ${{ secrets.APP_STORE_CONNECT_API_KEY_KEY }}
428-
SENTRY_AUTH_TOKEN: ${{ secrets.SENTRY_AUTH_TOKEN }}
429-
SENTRY_ORG: ${{ secrets.SENTRY_ORG }}
430-
SENTRY_PROJECT: ${{ secrets.SENTRY_PROJECT }}
431423
run: |
432424
cd packages/mobile/ios
433425
bundle exec fastlane build_and_upload bundle_id:co.audius.audiusmusic.releasecandidate
@@ -754,11 +746,6 @@ jobs:
754746
cd packages/mobile/ios
755747
RCT_NEW_ARCH_ENABLED=0 bundle exec pod install
756748
757-
- name: Install Sentry CLI
758-
run: |
759-
curl -sL https://sentry.io/get-cli/ | bash
760-
echo "$HOME/.sentry-cli/bin" >> $GITHUB_PATH
761-
762749
- name: Build dependencies
763750
timeout-minutes: 60
764751
run: npx turbo run build --filter=@audius/mobile
@@ -812,9 +799,6 @@ jobs:
812799
APP_STORE_CONNECT_API_KEY_KEY_ID: ${{ secrets.APP_STORE_CONNECT_API_KEY_KEY_ID }}
813800
APP_STORE_CONNECT_API_KEY_ISSUER_ID: ${{ secrets.APP_STORE_CONNECT_API_KEY_ISSUER_ID }}
814801
APP_STORE_CONNECT_API_KEY_KEY: ${{ secrets.APP_STORE_CONNECT_API_KEY_KEY }}
815-
SENTRY_AUTH_TOKEN: ${{ secrets.SENTRY_AUTH_TOKEN }}
816-
SENTRY_ORG: ${{ secrets.SENTRY_ORG }}
817-
SENTRY_PROJECT: ${{ secrets.SENTRY_PROJECT }}
818802
run: |
819803
cd packages/mobile/ios
820804
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
@@ -827,92 +827,3 @@ jobs:
827827
job_url="${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }}"
828828
json_content="{ \"blocks\": [{ \"type\": \"section\", \"text\": { \"type\": \"mrkdwn\", \"text\": \"Deployed production <${job_url}|v${deploying_version}> to web \n\" } }]}"
829829
curl -f -X POST -H 'Content-type: application/json' --data "$json_content" $SLACK_WEBHOOK
830-
831-
web-deploy-sentry-sourcemaps:
832-
name: Web Deploy Sentry Sourcemaps
833-
runs-on: ubuntu-latest
834-
needs: [web-build, web-check-ssr-bundlesize]
835-
if: github.ref == 'refs/heads/main'
836-
environment:
837-
name: production
838-
steps:
839-
- name: Checkout code
840-
uses: actions/checkout@v4
841-
842-
- name: Setup Node.js
843-
uses: actions/setup-node@v4
844-
with:
845-
node-version: ${{ env.NODE_VERSION }}
846-
847-
- name: Create concatenated patch file
848-
id: patch-file
849-
run: |
850-
ls -d -- packages/*/patches/*.patch 2>/dev/null | xargs cat > combined-patch-file.txt || touch combined-patch-file.txt
851-
echo "patch_checksum=$(sha256sum combined-patch-file.txt | cut -d' ' -f1)" >> $GITHUB_OUTPUT
852-
853-
- name: Cache node modules
854-
id: cache-node-modules
855-
uses: actions/cache@v4
856-
with:
857-
path: |
858-
node_modules
859-
packages/web/node_modules
860-
packages/harmony/node_modules
861-
packages/common/node_modules
862-
packages/libs/node_modules
863-
packages/sdk/node_modules
864-
key: npm-cache-${{ runner.os }}-node-${{ env.NODE_VERSION }}-${{ hashFiles('package-lock.json') }}-${{ steps.patch-file.outputs.patch_checksum }}
865-
restore-keys: |
866-
npm-cache-${{ runner.os }}-node-${{ env.NODE_VERSION }}-${{ hashFiles('package-lock.json') }}-
867-
868-
- name: Install dependencies (if cache miss)
869-
if: steps.cache-node-modules.outputs.cache-hit != 'true'
870-
env:
871-
CI: true
872-
SKIP_POD_INSTALL: true
873-
SKIP_ANDROID_INSTALL: true
874-
ANDROID_HOME: /tmp/android-sdk-dummy
875-
NODE_OPTIONS: --max-old-space-size=8192
876-
run: |
877-
mkdir -p /tmp/android-sdk-dummy
878-
npm ci --prefer-offline
879-
880-
- name: Run postinstall (if cache hit)
881-
if: steps.cache-node-modules.outputs.cache-hit == 'true'
882-
env:
883-
CI: true
884-
SKIP_POD_INSTALL: true
885-
SKIP_ANDROID_INSTALL: true
886-
ANDROID_HOME: /tmp/android-sdk-dummy
887-
NODE_OPTIONS: --max-old-space-size=8192
888-
run: |
889-
mkdir -p /tmp/android-sdk-dummy
890-
npm run postinstall
891-
892-
- name: Download builds
893-
uses: actions/download-artifact@v4
894-
with:
895-
name: builds
896-
path: packages/web
897-
898-
- name: Cut Sentry release
899-
env:
900-
SENTRY_AUTH_TOKEN: ${{ secrets.SENTRY_AUTH_TOKEN }}
901-
run: |
902-
cd packages/web
903-
../../node_modules/.bin/sentry-cli --auth-token ${SENTRY_AUTH_TOKEN} releases --org audius --project audius-client new ${{ github.sha }}
904-
905-
- name: Upload sourcemaps
906-
env:
907-
SENTRY_AUTH_TOKEN: ${{ secrets.SENTRY_AUTH_TOKEN }}
908-
run: |
909-
cd packages/web
910-
../../node_modules/.bin/sentry-cli --auth-token ${SENTRY_AUTH_TOKEN} sourcemaps upload --org audius --project audius-client --release ${{ github.sha }} build-production/static/js
911-
912-
- name: Finalize release
913-
env:
914-
SENTRY_AUTH_TOKEN: ${{ secrets.SENTRY_AUTH_TOKEN }}
915-
run: |
916-
cd packages/web
917-
../../node_modules/.bin/sentry-cli --auth-token ${SENTRY_AUTH_TOKEN} releases --org audius --project audius-client finalize ${{ github.sha }}
918-

0 commit comments

Comments
 (0)