new-site/scripts/workers/services/telecom
justin 78c04b8bc3 Add Playwright failure monitoring: Telegram alerts + screenshots + health check
When any Playwright submission fails (selector not found, timeout, etc.):
1. Full-page screenshot captured and uploaded to MinIO
2. Telegram alert sent immediately with error details + screenshot link
3. Email alert to ops with same info
4. Admin todo includes screenshot MinIO path for debugging
5. Client order stays pending for manual completion

Proactive selector health check (daily 7am CT cron):
- Navigates to each portal (FCC RMD, USAC E-File, FCC CPNI/ECFS)
- Verifies all critical selectors are still present in the DOM
- If selectors are missing (UI changed): alerts via Telegram + email
  BEFORE any real client order fails
- Reports which service slugs are affected

Integrated into:
- RMD filing handler (fccprod.servicenowservices.com)
- Form 499-A handler (forms.universalservice.org)
- Form 499-Q handler (already had error handling)

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-05-04 02:44:02 -05:00
..
__init__.py Initial commit — Performance West telecom compliance platform 2026-04-27 06:54:22 -05:00
auto_filing.py Fix auto_filing: check env var before ERPNext to avoid hanging on dev 2026-05-03 23:22:39 -05:00
fcc_499_utils.py Initial commit — Performance West telecom compliance platform 2026-04-27 06:54:22 -05:00
filing_state.py Initial commit — Performance West telecom compliance platform 2026-04-27 06:54:22 -05:00
playwright_monitor.py Add Playwright failure monitoring: Telegram alerts + screenshots + health check 2026-05-04 02:44:02 -05:00
undetected_browser.py Initial commit — Performance West telecom compliance platform 2026-04-27 06:54:22 -05:00