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

Ouverte
#2,561 2 commentaires 0 réactions 0 personnes assignées Voir sur GitHub

Les mainteneurs répondent en général sous 1 jour

Personne n'a encore pris cette issue.

Évaluation

Difficulté
4/5
Temps estimé
3-5 jours
Accessibilité débutants
45/100
Type d'issue
Bug
Clarté
Plutôt claire
Activité
Active
Stack technique
ios, react-native, typescript
Domaine
mobile

Piste de recherche

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.

Rédigé par le modèle d'indexation à partir du texte de l'issue.

Description

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]

Langage dominant
TypeScript
Étoiles
975
Forks
189
Merge moyen
19 h 57 min
PR mergées (30 j)
542

Préparer son environnement

Ce projet ne fournit ni conteneur de développement, ni Dockerfile, ni guide de contribution : l'installation est à votre charge. Commencez par son README, et consultez notre guide de la première contribution pour les étapes générales.

Par où commencer

  1. Lisez l'issue en entier, puis le guide de contribution du projet.
  2. Signalez en commentaire que vous la prenez — cela évite que deux personnes fassent le même travail.
  3. Forkez le dépôt et travaillez sur une branche.
  4. Ouvrez une pull request qui référence le numéro de l'issue.

Autres issues de getsentry/toolkit

Toutes les issues de getsentry/toolkit

Issues similaires

Plus d'issues TypeScript

Recevez les nouvelles issues par e-mail

Un résumé court des issues GitHub adaptées aux débutants.