NotifyWorker treats a failed category query as zero time and reports success
Los mantenedores suelen responder en 2 días
Nadie ha tomado este issue todavía.
Evaluación
- Dificultad
- 2/5
- Tiempo estimado
- 1-3 horas
- Aptitud para principiantes
- 84/100
Línea de trabajo
Empieza por parseCategorySeconds en workers/NotifyWorker.kt:203-229 y por el NotifyWorkerExecutionTest que falla y se describe en el issue. Comprueba cómo gestiona la función la respuesta de androidQuery cuando contiene un objeto de error y, después, ejecuta la prueba con {"error":"x"} como respuesta falsa del backend. Se considera terminado cuando el error de la consulta se hace visible y el worker devuelve Result.retry() en lugar de informar que tuvo éxito.
Escrito por el modelo de indexación a partir del texto del issue.
Descripción
When the native query fails, NotifyWorker treats the day as zero time and returns Result.success(). Category alerts for that run are skipped and nothing records the failure.
parseCategorySeconds (workers/NotifyWorker.kt:203-229) passes the androidQuery result to JSONArray(...). On a query failure the native side returns {"error": "…"} instead (aw-server-rust aw-server/src/android/mod.rs, create_error_object). This happens, for example, when the aw-watcher-android bucket is missing, when a category regex doesn't compile, or when the datastore errors. The exception is logged and swallowed, and the function returns {null: 0.0}. No threshold can be crossed, so the worker reports success instead of retry().
Failing test (NotifyWorkerExecutionTest, using its fake backend): make androidQuery return {"error":"x"} and expect Result.retry(). Today the result is Result.success(). At the unit level:
@Test
fun queryErrorObjectIsNotZeroSeconds() {
assertThrows(Exception::class.java) { parseCategorySeconds("""{"error":"x"}""") }
}
It fails today because the function returns {null=0.0}.
Fix direction: detect the error object and surface it as a failure, so the existing retry/backoff path runs.
Same parse pattern as the widget issue #430; filed separately because the symptom and fix site differ.
Priority: medium (alerts silently skipped). This repo only has a priority: high label, so no priority label is set.
fingerprint: workers/NotifyWorker.kt — androidQuery error object counted as 0 seconds, success instead of retry
Found by code review on master 3b820d61. I verified the trigger path against aw-server-rust 67432e66. I have not run it on a device.
- Lenguaje dominante
- Kotlin
- Estrellas
- 291
- Forks
- 73
- Merge medio
- 4 d 5 h
- PR fusionados (30 d)
- 27
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 ActivityWatch/aw-android
-
WebWatcher: keyboard events still split visits in detected browsers (browserIsActiveWindow checks only the hard-coded list)Posiblemente ocupada @TimeToBuildBob la tomó hoy. Abiertobug
Dificultad 2/5 1-3 horas Aptitud para principiantes 82/100
ActivityWatch/aw-android#435 ·
Los mantenedores suelen responder en 2 días
-
Widget ignores short hex category colors (#CCC), so Uncategorized gets a fallback colorPosiblemente ocupada @TimeToBuildBob la tomó hoy. Abiertobug
Dificultad 2/5 1-3 horas Aptitud para principiantes 82/100
ActivityWatch/aw-android#433 ·
Los mantenedores suelen responder en 2 días
-
bug
Dificultad 2/5 1-3 horas Aptitud para principiantes 78/100
ActivityWatch/aw-android#430 ·
Los mantenedores suelen responder en 2 días
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 68/100
ActivityWatch/aw-android#383 · 2 comentarios ·
Los mantenedores suelen responder en 2 días
-
Web watcher: add support for Brave (`com.brave.browser` missing from KNOWN_BROWSER_PACKAGES)Posiblemente ocupada Un pull request vinculado a esta issue está abierto o ya se fusionó. Abierto
Dificultad 2/5 1-3 horas Aptitud para principiantes 78/100
ActivityWatch/aw-android#306 · 1 comentario · 2 reacciones ·
Los mantenedores suelen responder en 2 días
Todos los issues de ActivityWatch/aw-android
Issues similares
-
Area: Java bug report needs triage OS: Windows
Dificultad 2/5 1-3 horas Aptitud para principiantes 67/100
actions/runner-images#15458 ·
Los mantenedores suelen responder en 3 días
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 78/100
nwverse/persona#22164 · 1 comentario ·
Los mantenedores suelen responder en 1 día
-
bug
Dificultad 2/5 1-3 horas Aptitud para principiantes 82/100
-
(core): a cluster client ignores insecure TLS when a CA certificate or client identity is setAbiertobug 🐞
Dificultad 2/5 1-3 horas Aptitud para principiantes 79/100
valkey-io/valkey-glide#8000 ·
Los mantenedores suelen responder en 2 días
-
Declare two limitations the 2026-12-02/03 plausibility runs confirmed: Huxleys ticket link, Gretchen flyerPosiblemente ocupada Un pull request vinculado a esta issue está abierto o ya se fusionó. Abiertoafk-ok area:data-quality importer size:S
Dificultad 2/5 1-3 horas Aptitud para principiantes 74/100
enorm-labs/event-junkie#5887 ·
Los mantenedores suelen responder en 1 día