Follow-through: 4 untracked items deferred from merged PRs (widget fallback order, notify migration, test flake, rollout guard)

Aperta
#405 2 commenti 0 reazioni 0 assegnatari Vedi su GitHub

I maintainer di solito rispondono entro 1 giorno

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
4/5
Tempo stimato
3-5 giorni
Idoneità per principianti
38/100
Tipo di issue
Bug
Chiarezza
Abbastanza chiara
Stato di attività
Attiva
Stack tecnologico
android, kotlin, rust

Direzione di ricerca

This is a bundle of four deferred items against master aa9cea0, not a single edit, so pick one bullet at a time. For item 1, read AsyncBroadcast.launch and its onFailure fallback, then write the described unit test that blocks the fallback while a later pass renders data. For item 2, trace the aw-notify opt-in path through setSetting, awaitRustInterface() and isUpgradeInstall(). Item 3 is WebWatcherTest's focused-address-bar case, which needs to wait on a later known event; item 4 is the pre-release-skipped Play edits.insert/tracks.get guard.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

Follow-through on PRs merged in the last 60 days. These items were deferred in the PR threads and never tracked. Code references are against master aa9cea0.

1. A stale widget fallback can overwrite newer data (#360, the remaining P2 from review). In AsyncBroadcast.launch, the onFailure fallback runs detached and can outlive its 1s wait. It can then render "No data yet" after a later pass has already rendered real data. Erik's decline covered only the skipped-fallback edge, not this ordering.
Repro (unit test): block the fallback, let a later pass render data, release the fallback, and assert the data is still shown.

2. aw-notify opt-in migration edge cases (#365).

  • (a) A failed migration (non-ok setSetting, or awaitRustInterface() returning null) is not retried within the same service. Alerts stay blocked until the service is recreated.
  • (b) isUpgradeInstall() compares lastUpdateTime > firstInstallTime. An Auto Backup restore on a new phone can look like a fresh install, so an existing user's alerts get written as {"enabled":false}.

3. WebWatcherTest's focused-address-bar test can pass too early (#307, Greptile, posted after merge). It asserts that the typed text is absent after waiting only for the four earlier visits. A single read can miss a still-queued write. The test should wait for a later known event before asserting.

4. The production-rollout guard has never made a live call (#361). The only release since the merge was v0.14.4b1, a pre-release, where the step is skipped. The next stable tag will be the first real edits.insert and tracks.get against Play. A 403 from the service account fails closed and blocks the release, so expect that run to need a look.

Checked on master aa9cea0 (CI debug APK, fresh API 34 emulator), all working:

  • #369: /api/0/info hostname is sdk_gphone64_x86_64, which matches device_name.
  • #389 and #390: buckets are created and events are returned.
  • #365 and #329: a fresh install materializes aw-notify = {"enabled":false}.
  • #327: Back from Timeline returns to Home and does not finish the activity.
  • #395: an external link with Chrome disabled shows a toast via SafeIntents, and the app survives.
  • #355: the web menu shows the Sync settings and API authentication items.
Lingua principale
Kotlin
Stelle
289
Fork
67
Merge medio
8g 52m
PR unite (30g)
8

Preparare l'ambiente

Questo progetto non fornisce container di sviluppo, Dockerfile né guida per i contributori, quindi l'ambiente è a tuo carico: parti dal suo README e consulta la nostra guida al primo contributo per i passaggi generali.

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di ActivityWatch/aw-android

Tutte le issue di ActivityWatch/aw-android

Issue simili

Altre issue su Kotlin

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.