Fix upstream sentry-wizard bugs in the ported iOS and React Native wizards

Aperta
#2,561 2 commenti 0 reazioni 0 assegnatari Vedi su GitHub

I maintainer di solito rispondono entro 1 giorno

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
4/5
Tempo stimato
3-5 giorni
Idoneità per principianti
45/100
Tipo di issue
Bug
Chiarezza
Abbastanza chiara
Stato di attività
Attiva
Stack tecnologico
ios, react-native, typescript
Ambito
mobile

Direzione di ricerca

Start with the Apple wizard in src/lib/wizard/apple/, specifically filterFilesByExceptionSets, getExceptionSetsForGroup and resolvePathOfGroupRelativeToGroup in xcode-manager.ts, and the update regex in fastlane.ts. The React Native bugs are in src/lib/wizard/react-native/ across xcode.ts, expo.ts, expo-env-file.ts, javascript.ts, gradle.ts and react-native-wizard.ts. Done means each of the 11 checklist items behaves as described and the matching tests pass; the issue does not name the test files, so locate them first.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

getsentry/toolkit#2544 ports the iOS, Apple Snapshots and React Native flows of sentry-wizard 9.1.0 into sentry wizard as-is (part of getsentry/toolkit#2511). Warden flagged these 11 bugs in that ported code. Each one also exists in upstream sentry-wizard 9.1.0 (@069923d), so #2544 leaves them as they are and this issue tracks fixing them.

iOS (src/lib/wizard/apple/)

  • membershipExceptions are matched with path.includes(), so excluding View.swift also drops ContentView.swift from the target's sources (xcode-manager.ts, filterFilesByExceptionSets). Warden
  • Synchronized-group exception sets aren't filtered by their owning target, so one target's exclusions can hide another target's entry point (xcode-manager.ts, getExceptionSetsForGroup). Warden
  • A nested PBXGroup with no path resolves to undefined, so the files in it are dropped and the snippet isn't injected (xcode-manager.ts, resolvePathOfGroupRelativeToGroup). Warden
  • A sentry_debug_files_upload on the first line of a lane isn't matched by the update regex, so a second copy is appended (fastlane.ts). Warden

React Native (src/lib/wizard/react-native/)

  • script.includes("expo") also matches shell export, so a plain RN bundle script gets the Expo rewrite (xcode.ts). Warden
  • The manual app.json snippet puts plugins at the root instead of under expo (expo.ts). Warden
  • An Expo plugin that's already configured is reported as a patch failure, and the user is told to add it again (expo.ts). Warden
  • Appending to an existing .env.local doesn't add a leading newline, so the token comment can join onto the last line (expo-env-file.ts). Warden
  • addSentryInit reports success after writeFileSync fails (javascript.ts). Warden
  • wrapRootComponent reports success after writeFileSync fails (javascript.ts). Warden
  • writeAppBuildGradle swallows write errors, so the wizard still logs that app/build.gradle was saved (gradle.ts, react-native-wizard.ts). Warden

via @BYK.

--

View Session [Sentry]

Lingua principale
TypeScript
Stelle
975
Fork
189
Merge medio
19h 57m
PR unite (30g)
542

Preparare l'ambiente

Questo progetto non fornisce container di sviluppo, Dockerfile né guida per i contributori, quindi l'ambiente è a tuo carico: parti dal suo README e consulta la nostra guida al primo contributo per i passaggi generali.

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di getsentry/toolkit

Tutte le issue di getsentry/toolkit

Issue simili

Altre issue su TypeScript

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.