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

Đang mở
#2,561 2 bình luận 0 reaction 0 người được giao Xem trên GitHub

Maintainer thường phản hồi trong vòng 1 ngày

Chưa có ai nhận issue này.

Đánh giá

Độ khó
4/5
Thời gian dự kiến
3-5 ngày
Mức phù hợp với người mới
45/100
Loại issue
Lỗi
Độ rõ ràng
Khá rõ ràng
Mức độ hoạt động
Sôi nổi
Công nghệ
ios, react-native, typescript
Lĩnh vực
mobile

Hướng nghiên cứu

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.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Mô tả

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]

Ngôn ngữ chính
TypeScript
Star
975
Fork
189
Merge trung bình
19 giờ 57 phút
Pull request đã merge (30 ngày)
542

Chuẩn bị môi trường

Dự án này không cung cấp dev container, Dockerfile hay hướng dẫn đóng góp, nên bạn cần tự thiết lập môi trường: hãy bắt đầu từ README và xem hướng dẫn đóng góp lần đầu của chúng tôi để biết các bước chung.

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của getsentry/toolkit

Tất cả issue của getsentry/toolkit

Issue tương tự

Thêm issue về TypeScript

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.