ci(apple): characterize bounded xcrun stalls in iOS preflight and fold-helper gate
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, typescript
- Área
- ci-cd, mobile-dev, testing-qa
Línea de trabajo
Start with packages/platform-apple/src/readiness/runtime.ts and its LIST_TIMEOUT_MS path for simctl device inventory, then inspect packages/platform-apple/src/foldable/fold-helper-cache.test.ts and its FOLD_HELPER_BUILD_TIMEOUT_MS gate. Add focused fake-host coverage for a recoverable first timeout and a persistent timeout, preserving the prepare budget and typed failure. Done includes a macOS gate measurement or failing-job link and a live iOS PR run through preflight.
Escrito por el modelo de indexación a partir del texto del issue.
Descripción
Purpose
An Apple host stall can fail smoke before the test under review starts. Keep the two xcrun paths distinct so a cold simulator inventory failure is not reported as an XCTest assertion or hidden by a test retry.
Evidence and scope
- iOS PR run 36030060382, job 107736587593 failed in Preflight iOS runner through public CLI. The typed error was
COMMAND_FAILED: xcrun timed out after 15000ms, withargs: ["simctl", "list", "devices", "-j"], empty stdout/stderr, andtimeoutMs: 15000. The fixture E2E step never ran. The 15 s budget isLIST_TIMEOUT_MSinpackages/platform-apple/src/readiness/runtime.ts; this is distinct from the cold toolchain version probes closed by #2422. - The macOS fold-helper -Werror gate invokes
xcrunwithFOLD_HELPER_BUILD_TIMEOUT_MS = 30000inpackages/platform-apple/src/foldable/fold-helper-cache.test.ts. This is a separate compile path to audit. I have not established a recent failure of this gate from the currently visible macOS runs, so its budget should be changed only if a captured duration or timeout warrants it.
Required behavior
- Attribute a preflight failure to the exact
simctloperation, its elapsed time, remaining prepare deadline, and whether a retry could join/reuse a warmed result. A timeout must stay bounded and typed; no generic XCTest or E2E retry is the fix. - Reproduce or characterize the 15 s inventory stall on a cold/contended host and choose a bounded recovery using the remaining prepare budget. A warm second call may be tried only when the first typed timeout and deadline allow it. Verify the simulator is still the scoped target and that a persistent hang still fails promptly.
- Measure the fold-helper warning gate's cold and warm
xcrunduration separately. If it reaches its 30 s budget, file the concrete failing run here and fix that gate at its own compile seam while retaining-Werror; otherwise close that audit item without changing the timeout.
Completion
- A focused fake-host test plants a first inventory timeout followed by a valid scoped result, plus a persistent timeout, and proves both outcomes and total budget.
- A macOS gate measurement or failing job link settles the fold-helper audit.
- A live iOS PR run gets through preflight on the exact fixing head. Record runner queue and execution time separately.
Related: #2422 (closed toolchain identity probes), #2491 (rotating iOS smoke failures), #2879 (fold request envelope; a different budget).
- Lenguaje dominante
- TypeScript
- Estrellas
- 4.7k
- Forks
- 304
- Merge medio
- 11 h 29 min
- PR fusionados (30 d)
- 514
Guía de contribución
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 callstack/agent-device
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 68/100
callstack/agent-device#1869 ·
-
needs-triage
Dificultad 5/5 Más de una semana Aptitud para principiantes 32/100
callstack/agent-device#2948 ·
-
Dificultad 4/5 3-5 días Aptitud para principiantes 55/100
callstack/agent-device#2946 ·
-
bug ready-for-agent
Dificultad 5/5 Más de una semana Aptitud para principiantes 35/100
callstack/agent-device#2935 ·
-
needs-triage
Dificultad 5/5 Más de una semana Aptitud para principiantes 38/100
callstack/agent-device#2906 ·
Todos los issues de callstack/agent-device
Issues similares
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 84/100
bcgov/bc-wallet-mobile#4761 · 1 comentario ·
-
external-issue to-triage
Dificultad 2/5 1-3 horas Aptitud para principiantes 88/100
-
area-deployment area-integrations triage:bot-seen
Dificultad 2/5 Medio día Aptitud para principiantes 86/100
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 82/100
-
refactor
Dificultad 2/5 1-3 horas Aptitud para principiantes 84/100