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

Abierto
#2,561 2 comentarios 0 reacciones 0 asignados Ver en GitHub

Los mantenedores suelen responder en 1 día

Nadie ha tomado este issue todavía.

Evaluación

Dificultad
4/5
Tiempo estimado
3-5 días
Aptitud para principiantes
45/100
Tipo de issue
Error
Claridad
Bastante claro
Estado de actividad
Activo
Stack tecnológico
ios, react-native, typescript
Área
mobile

Línea de trabajo

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.

Escrito por el modelo de indexación a partir del texto del issue.

Descripción

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]

Lenguaje dominante
TypeScript
Estrellas
975
Forks
189
Merge medio
19 h 57 min
PR fusionados (30 d)
542

Preparar el entorno

Este proyecto no incluye contenedor de desarrollo, Dockerfile ni guía de contribución, así que la configuración corre por tu cuenta: empieza por su README y consulta nuestra guía para la primera contribución para los pasos generales.

Primeros pasos

  1. Lee el issue completo y luego la guía de contribución del proyecto.
  2. Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
  3. Haz un fork del repositorio y trabaja en una rama.
  4. Abre un pull request que haga referencia al número del issue.

Más de getsentry/toolkit

Todos los issues de getsentry/toolkit

Issues similares

Más issues de TypeScript

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.