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

Đang mở
#17 0 bình luận 0 reaction 0 người được giao Xem trên GitHub

Chưa có ai nhận issue này.

Đánh giá

Độ khó
3/5
Thời gian dự kiến
1-2 ngày
Mức phù hợp với người mới
56/100
Loại issue
Tài liệu
Độ rõ ràng
Khá rõ ràng
Mức độ hoạt động
Ít trao đổi
Công nghệ
github-actions, python
Lĩnh vực
tooling

Hướng nghiên cứu

Bắt đầu với collect-play.yml, vì đây là điểm vào CI cho các job thu thập Play, và xem xét/chạy output của workflow theo lịch. Sau đó kiểm tra vitals.py và android_installs.py để xem chúng ghi vào data/android-*.csv ở đâu. Đối chiếu hành vi hiện tại với các ghi chú “works / blocked” của issue, rồi либо ghi lại manual Installed audience path hoặc triển khai Active Device Installs với bộ lọc cho các zero days chưa hoàn chỉnh. Được xem là hoàn tất khi repository ghi nhận một quyết định rõ ràng và các output CI vẫn nhất quán với lựa chọn metric đó.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Mô tả

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).
Ngôn ngữ chính
Python
Star
12
Fork
3
Merge trung bình
15 ngày 13 giờ
Pull request đã merge (30 ngày)
1

Chuẩn bị môi trường

Dự án này không cung cấp dev container, Dockerfile hay hướng dẫn đóng góp, nên bạn cần tự thiết lập môi trường: hãy bắt đầu từ README và xem hướng dẫn đóng góp lần đầu của chúng tôi để biết các bước chung.

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của ActivityWatch/stats

Tất cả issue của ActivityWatch/stats

Issue tương tự

Thêm issue về Python

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.