LichessStatTgWeb/tests/bot
vrubelroman 6351e18795 admin bot: /status redesigned around health, growth and activity; raw counters moved to /counters
- /status: verdict line (✅/⚠️, UTC time), 🩺 health (errors today/yesterday,
  Lichess 429 per 24 h from /health, age of the last player-status refresh,
  closed/not-found players, users who blocked the bot in 7 days), 📈 growth
  table (users/gamers/subscriptions: total, +today, +yesterday, +7 days,
  users without gamers), ⚡ activity today vs yesterday (commands, active
  users, notifications, Lichess requests). Flags: errors >= 10, any 429,
  status older than 30 min, no SUMMARY for yesterday, journal missing.
  Blocks fail independently (only a DB failure breaks the whole message).
- /counters: all raw command counters sorted by total + last SUMMARY as is.
- Database.get_admin_overview replaces get_admin_stats.
- events.summarize_days (one pass over events.log.1 + events.log, extra
  keys active_users/blocked/status_refresh_failed/cmd_by_name/lines),
  last_summary(); last_summary_line reads the rotated backup too.
- LichessAPI.get_service_health(timeout).
- Designer spec in docs/design/admin_status.md; README, CURRENT_STATE,
  CHANGELOG (Unreleased) updated; 25 new tests (61 bot tests total).

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
2026-10-21 06:16:53 +00:00
..
__init__.py v1.5.1: not-found players paused, tests in repo + CI, log-based daily summary, docs pruned 2026-10-21 02:48:00 +00:00
_env.py v1.5.1: not-found players paused, tests in repo + CI, log-based daily summary, docs pruned 2026-10-21 02:48:00 +00:00
test_admin_status.py admin bot: /status redesigned around health, growth and activity; raw counters moved to /counters 2026-10-21 06:16:53 +00:00
test_database.py admin bot: /status redesigned around health, growth and activity; raw counters moved to /counters 2026-10-21 06:16:53 +00:00
test_events.py admin bot: /status redesigned around health, growth and activity; raw counters moved to /counters 2026-10-21 06:16:53 +00:00
test_i18n.py v1.5.1: not-found players paused, tests in repo + CI, log-based daily summary, docs pruned 2026-10-21 02:48:00 +00:00
test_periodic_decisions.py v1.5.1: not-found players paused, tests in repo + CI, log-based daily summary, docs pruned 2026-10-21 02:48:00 +00:00
test_player_status.py v1.5.1: not-found players paused, tests in repo + CI, log-based daily summary, docs pruned 2026-10-21 02:48:00 +00:00
test_stats_skip.py v1.5.1: not-found players paused, tests in repo + CI, log-based daily summary, docs pruned 2026-10-21 02:48:00 +00:00
test_wiring.py admin bot: /status redesigned around health, growth and activity; raw counters moved to /counters 2026-10-21 06:16:53 +00:00