`debug-files upload` fails on a fat Mach-O dSYM with "Object contains 2 architectures (1 expected)"
Los mantenedores suelen responder en 1 día
Ya se ha fusionado un pull request relacionado.
- #1849 de @sentry-junior — fusionado
Evaluación
- Dificultad
- 3/5
- Tiempo estimado
- 1-2 días
- Aptitud para principiantes
- 50/100
- Tipo de issue
- Error
- Claridad
- Bien especificado
- Estado de actividad
- Activo
- Stack tecnológico
- python, typescript
- Área
- cli
Línea de trabajo
Start in matchedDif in packages/cli/src/lib/dif/scan.ts, which uploads the whole fat Mach-O as one DIF under the first object's debug id. The legacy archive.objects() loop in src/utils/dif_upload/mod.rs shows the per-slice approach. Done when a fat dSYM uploads one file per architecture with its own debug id and the "Object contains 2 architectures" error no longer appears; check create_dif_from_id in src/sentry/models/debugfile.py to confirm what the server accepts.
Escrito por el modelo de indexación a partir del texto del issue.
Descripción
On macOS with sentry 0.45.0 and current main, a watchOS app built with Xcode for arm64 and arm64_32 produces a fat Mach-O dSYM with two slices:
$ dwarfdump --uuid FooWatch.app.dSYM/Contents/Resources/DWARF/FooWatch
UUID: 8C4CD4E7-DB7C-3AC8-BC5B-605AF57BD7E2 (arm64) ...
UUID: 46FC586D-B173-37C8-B1CD-34D3CBEFF085 (arm64_32) ...
$ sentry debug-files upload --wait-for 300 FooWatch.app.dSYM
│ DIF │ 8c4cd4e7-db7c-3ac8-bc5b-605af57bd7e2 FooWatch [error] │
1 file had failures: 8c4cd4e7-db7c-3ac8-bc5b-605af57bd7e2: error (Object contains 2 architectures (1 expected)).
matchedDif in packages/cli/src/lib/dif/scan.ts uploads the whole fat file as one DIF under the debug id of the first object. The server's assemble step, create_dif_from_id in src/sentry/models/debugfile.py, accepts only one object per file and rejects it. The second slice never reaches Sentry.
The legacy sentry-cli makes one upload per object of a fat archive (the archive.objects() loop in src/utils/dif_upload/mod.rs), so each slice gets its own debug id. Splitting the file first with lipo <file> -thin <arch> -output <out> works: both thin files come back [ok].
- Lenguaje dominante
- TypeScript
- Estrellas
- 957
- Forks
- 174
- Merge medio
- 16 h 43 min
- PR fusionados (30 d)
- 390
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
- Lee el issue completo y luego la guía de contribución del proyecto.
- Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
- Haz un fork del repositorio y trabaja en una rama.
- Abre un pull request que haga referencia al número del issue.
Más de getsentry/toolkit
-
CLI enhancement MCP
Dificultad 2/5 1-3 horas Aptitud para principiantes 63/100
getsentry/toolkit#1908 · 1 comentario ·
Los mantenedores suelen responder en 1 día
-
Docs MCP URL normalization retains query strings and fragmentsPosiblemente ocupada @pcbeingused333 la tomó hace 6 días. Abiertobug MCP
Dificultad 2/5 1-3 horas Aptitud para principiantes 73/100
getsentry/toolkit#1618 · 1 comentario ·
Los mantenedores suelen responder en 1 día
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 72/100
getsentry/toolkit#1471 · 1 comentario ·
Los mantenedores suelen responder en 1 día
-
Release v4 as the Sentry CLI, replacing sentry-cliPosiblemente ocupada @BYK la tomó hace 1 día. Abierto
getsentry/toolkit#1965 · 1 comentario · 1 asignado ·
Los mantenedores suelen responder en 1 día
-
Dificultad 4/5 3-5 días Aptitud para principiantes 48/100
getsentry/toolkit#1956 · 1 comentario ·
Los mantenedores suelen responder en 1 día
Todos los issues de getsentry/toolkit
Issues similares
-
Add: Upin & Ipin Channel HDAbiertocheck:passed streams:add
Dificultad 2/5 1-3 horas Aptitud para principiantes 72/100
Los mantenedores suelen responder en 1 día
-
S: triage
Dificultad 2/5 1-3 horas Aptitud para principiantes 75/100
Los mantenedores suelen responder en 1 día
-
iot client
Dificultad 2/5 1-3 horas Aptitud para principiantes 82/100
Open-Locker/Open-Locker#365 ·
Los mantenedores suelen responder en 1 día
-
bug enhancement
Dificultad 2/5 1-3 horas Aptitud para principiantes 69/100
inmanta/web-console#7787 ·
Los mantenedores suelen responder en 1 día
-
bug
Dificultad 2/5 1-3 horas Aptitud para principiantes 65/100
shoelace-style/webawesome#2979 ·
Los mantenedores suelen responder en 1 día