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

オープン
#405 コメント 2 件 リアクション 0 件 担当者 0 名 GitHub で見る

メンテナーはふだん 1 日以内に返信

まだ誰も着手していません。

評価

難易度
4/5
見積もり時間
3〜5日
初心者へのやさしさ
38/100
issue の種類
バグ
明瞭さ
おおむね明確
活発さ
活発
技術スタック
android, kotlin, rust

調査の方向性

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.

索引モデルが issue の本文から書いたものです。

説明

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.
主要言語
Kotlin
スター
289
フォーク
67
平均マージ
8日 52分
マージ済み PR(30日)
8

環境構築

このプロジェクトには開発コンテナ、Dockerfile、コントリビューションガイドがありません。まず README を読み、一般的な手順ははじめてのコントリビューションガイドを参照してください。

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

ActivityWatch/aw-android のほかの issue

ActivityWatch/aw-android の issue をすべて見る

似ている issue

Kotlin の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。