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

未关闭
#405 2 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看

维护者通常 1 天内回复

还没有人认领这个 Issue。

评估

难度
4/5
预计耗时
3-5 天
新手友好度
38/100
Issue 类型
缺陷
描述清晰度
基本清楚
活跃度
活跃

调研方向

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 分钟
30 天内合并 PR
8

环境准备

这个项目没有提供开发容器、Dockerfile 或贡献指南,环境需要你自己搭建:先看它的 README,通用步骤见我们的新手贡献指南。

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

ActivityWatch/aw-android 的其他 Issue

查看 ActivityWatch/aw-android 的全部 Issue

相似的 Issue

更多 Kotlin Issue

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。