fix(monitor): alerts by Feishu and email, host checks, OTP retry, off-host probe (BUG-2348)
- notify-feishu.sh: add a Resend email channel (key read from .env.production via a header file, never argv/stdout); both channels when configured, one acceptance counts; fixed Chinese labels on every alert line. - classify_error_log.py: per-code thresholds for low-volume signals, the [ops-signal] marker, api access-log 429/5xx counted without query strings. - ops-check.sh: container restarts/OOM, host memory, report queue wait, new feedback count (no content). - OTP sender: retry network/429/5xx once with the same idempotency key; final failure logs otp_send_failed (no address). - install-production-monitor.sh: idempotent cron install + --test-alert. - monitor-public-health.yml: off-host probe every 5 minutes on the runner. - Tests: tests/test_monitor_alerts_2348.py (on the quick list), OTP sender and ops-signal tests. Issues #350, #354. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01DbBXoyn7Hj3LCW3BUs5bZ8
This commit is contained in:
@@ -168,6 +168,7 @@ CORE_PYTEST_TARGETS = [
|
||||
# Closed-beta safety net. The Linux 0600 monitor-env check only fails in
|
||||
# release-quality-gate unless this file is on the staging quick list.
|
||||
"tests/test_beta_safety_net.py",
|
||||
"tests/test_monitor_alerts_2348.py",
|
||||
# Summary lines by default; failure keeps the last 200 lines and a full log (BUG-1230).
|
||||
"tests/test_run_quality_gate_output.py",
|
||||
"tests/test_upstream_git_import_b9a0ef8f.py",
|
||||
|
||||
Reference in New Issue
Block a user