Play Console data collection: state, tooling, and what's automatable

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

还没有人认领这个 Issue。

评估

难度
3/5
预计耗时
1-2 天
新手友好度
56/100
Issue 类型
文档
描述清晰度
基本清楚
活跃度
冷清
技术栈
github-actions, python
领域
tooling

调研方向

从 collect-play.yml 开始,因为它是 Play 收集任务的 CI 入口,并检查/运行定时 workflow 的输出。然后检查 vitals.py 和 android_installs.py,确认它们在哪里写入 data/android-*.csv。将当前行为与 issue 中的“works / blocked”说明进行对照,然后记录手动 Installed audience path,或实现带有不完整 zero days 过滤器的 Active Device Installs。完成的标志是:repository 记录了明确的决策,并且 CI 输出与该指标选择保持一致。

由索引模型根据 Issue 内容生成。

描述

Tracking issue for the Play Console data-collection capability that now lives in this repo (vitals.py, android_installs.py, collect-play.yml), what works, and open decisions. Related: #4, aw-android#176.

Service account

[email protected] — key at ~/.config/activitywatch/play-sa.json (local + Bob's machine); repo secrets PLAY_SA_JSON + PLAY_BUCKET set.

✅ Works — Play Developer Reporting API (vitals + errors)

vitals.py works end-to-end; collect-play.yml runs it daily:

  • crash-rate / anr-rate → data/android-crash-rate.csv, data/android-anr-rate.csv
  • errors [--stacktraces] → top crash/ANR clusters + stacktraces (errorIssues/errorReports)

Actionable for agents/devs: the current top crash is ChromeWatcher.onAccessibilityEvent NPE at ChromeWatcher.kt:76 (~791 reports).

✅ Works — GCS bulk reports (installs)

Update: the SA's bucket access finally propagated (well past Google's "up to 24h"), so android_installs.py can now list and read the pubsite_prod_rev_… reports. CI automation via the SA is viable (earlier this was blocked by 403 storage.objects.list; resolved).

installed.csv metric — the real remaining decision

Access is no longer the blocker; the metric is:

  • Manual export used "Installed audience" (unique users) — not present in any bulk report (installs/acquisition/ratings/crashes/store_performance); Statistics-dashboard-only, no API. Cannot be automated.
  • Bulk reports offer "Active Device Installs" (devices, ~10% higher) — automatable in CI now, matches the chart's "Installed Devices" label.

So: Installed audience = manual forever, or switch to Active Device Installs = full CI automation.

Open items

  • Decide installed.csv metric (Installed audience manual vs Active Device Installs automated).
  • If switching: skip spurious 0 values from not-yet-finalized recent days (e.g. saw 2026-07-06 = 0 between ~6300 neighbors).
  • "Mobile usage" metric — no programmatic source (#4).
  • Fix the dominant crash: ChromeWatcher.kt:76 NPE (aw-android#176).
主要语言
Python
星标
12
派生
3
平均合并
15 天 13 小时
30 天内合并 PR
1

环境准备

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

从这里开始

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

ActivityWatch/stats 的其他 Issue

查看 ActivityWatch/stats 的全部 Issue

相似的 Issue

更多 Python Issue

把新 issue 发到你的邮箱

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