osint-dashboard/tests
Repository files (latest commit first)
Filename Latest commit message Latest commit date
Sirius DevOps 56908aed03 fix(gdelt): stop retrying 429 over http, add quota backoff
GDELT's DOC 2.0 API answers 429 with a plain-text body, no Retry-After, and
a per-IP block window that widens with request volume. The https->http retry
only doubled the request count against that quota and could never succeed,
and every cycle logged a full traceback.

- ingest_gdelt: a 429 (or a 200 with a prose body) now sets a backoff window
  (GDELT_BACKOFF_BASE=300s, doubling to GDELT_BACKOFF_MAX=1800s, Retry-After
  honoured when present) and returns 0 instead of raising.
- cycles inside the window skip the call entirely, logging one line.
- the https->http fallback now only covers TransportError (TLS/connect), not
  HTTP error statuses.
- producer_loop logs a GDELT failure as one WARNING line, no traceback.
- tests/test_gdelt_backoff.py covers no-retry-on-429, cooldown skip, doubling
  and cap, Retry-After, 200-prose, success reset, transport fallback.
2026-11-21 18:12:56 -05:00
..
conftest.py feat(auth): public read-only HUD, admin-only API keys and mutations 2026-11-13 20:56:07 -05:00
test_adsb_watch.py fix(adsb): keep aircraft ingest alive with no browser viewport 2026-11-21 17:30:47 -05:00
test_aircraft_popup_frontend.py feat(map): aircraft popup enrichment and emergency/MIL styling 2026-08-31 21:31:20 -04:00
test_api_fires.py Add NASA FIRMS active-fire ingest + /api/fires; API keys management page 2026-08-24 15:37:42 -04:00
test_api_live_layers.py feat(auth): public read-only HUD, admin-only API keys and mutations 2026-11-13 20:56:07 -05:00
test_api_news.py fix(news): unwrap CDATA titles at ingest and on /api/news 2026-11-14 00:47:04 -05:00
test_api_news_blips.py news: per-article proximate geolocation + GET /api/news/blips 2026-11-19 22:50:59 -05:00
test_api_place.py feat(map): right-click place dossier (Nominatim + nearby overlays) 2026-08-31 21:35:00 -04:00
test_api_settings.py feat(auth): public read-only HUD, admin-only API keys and mutations 2026-11-13 20:56:07 -05:00
test_api_stats.py fix(health): ignore future article timestamps; flag unset vessel/FIRMS keys 2026-11-14 00:34:39 -05:00
test_auth.py news: per-article proximate geolocation + GET /api/news/blips 2026-11-19 22:50:59 -05:00
test_bg_jobs.py chore: remove unused masscan scanner 2026-09-01 00:47:24 -04:00
test_cache_and_timeline.py fix: pipeline reliability — WS, summarizer, ingest, health 2026-08-28 21:49:05 -04:00
test_camera_popup_contract.py fix: hydrate camera popup from GET /api/cameras/{id} 2026-08-28 20:04:53 -04:00
test_camera_publish.py fix(cameras): stop publishing discovery rows as events 2026-11-14 00:30:13 -05:00
test_chokepoints.py feat(map): chokepoint preset catalog + vessels ?src= filter 2026-08-29 14:03:15 -04:00
test_conflicts.py feat(conflicts): GET /api/conflicts catalog + news/GDELT event counts 2026-08-31 21:30:23 -04:00
test_conflicts_frontend.py feat(map): Conflicts layer toggle from /api/conflicts 2026-08-31 21:37:10 -04:00
test_event_ingest.py fix: pipeline reliability — WS, summarizer, ingest, health 2026-08-28 21:49:05 -04:00
test_feed_rail.py fix(hud): hide vessel and FIRMS rows when those feeds are unset 2026-11-14 00:30:04 -05:00
test_fire_aircraft.py feat: lean-Pi WS fan-out, geofences, DVR playback, fire/aircraft correlation 2026-08-28 09:35:18 -04:00
test_fire_ingest.py fix: chunk FIRMS bulk inserts under asyncpg 32767 bind cap 2026-08-28 22:22:12 -04:00
test_fire_sources.py fix(ingest): skip known KEV/FIRMS rows; CI skips unchanged images 2026-08-29 19:32:00 -04:00
test_frontend_reliability.py fix(map): geofence delete, vessel snapshots, sentinel cache, news briefs 2026-08-29 20:40:27 -04:00
test_gdelt_backoff.py fix(gdelt): stop retrying 429 over http, add quota backoff 2026-11-21 18:12:56 -05:00
test_geofence.py feat(geofence): hear quakes, WFIGS incidents, and news pins 2026-11-14 00:40:10 -05:00
test_geofence_frontend.py feat(map): geofence inbox shows cameras and the news line 2026-11-17 19:56:41 +00:00
test_gpsjam.py feat(gpsjam): GPS interference hex overlay API (GPSJAM/ADS-B Exchange) 2026-08-29 14:17:52 -04:00
test_health_ready.py fix(health): ignore future article timestamps; flag unset vessel/FIRMS keys 2026-11-14 00:34:39 -05:00
test_hud_chrome.py fix(map): NEWS ticker fills 32px news-only dock 2026-09-01 17:15:32 -04:00
test_hud_osiris.py chore: remove unused masscan scanner 2026-09-01 00:47:24 -04:00
test_infrastructure.py feat(infra): GET /api/infrastructure Overpass nuclear markers (bbox) 2026-08-31 21:31:31 -04:00
test_ingest_ssrf_and_sources.py feat(auth): public read-only HUD, admin-only API keys and mutations 2026-11-13 20:56:07 -05:00
test_live_layers.py Merge origin/master into UDOT IBI 511 cameras 2026-08-31 22:20:04 -04:00
test_map_payloads.py perf: slim fires/cameras/events/news map payloads 2026-08-27 21:19:42 -04:00
test_new_sources.py fix(ingest): skip known KEV/FIRMS rows; CI skips unchanged images 2026-08-29 19:32:00 -04:00
test_news_scraper.py fix(news): unwrap CDATA titles at ingest and on /api/news 2026-11-14 00:47:04 -05:00
test_phase1_guardrails.py fix(ops): pin TiTiler digest, GIST bbox indexes, single uvicorn worker 2026-09-01 00:47:06 -04:00
test_phase2_api.py feat(geofence): hear quakes, WFIGS incidents, and news pins 2026-11-14 00:40:10 -05:00
test_place_dossier_frontend.py feat(map): right-click place dossier (Nominatim + nearby overlays) 2026-08-31 21:35:00 -04:00
test_satellites.py feat(satellites): CelesTrak GP JSON satellites API with SGP4 propagation 2026-08-31 21:42:50 -04:00
test_sentinel1_frontend.py fix(map): geofence delete, vessel snapshots, sentinel cache, news briefs 2026-08-29 20:40:27 -04:00
test_tracks.py feat: lean-Pi WS fan-out, geofences, DVR playback, fire/aircraft correlation 2026-08-28 09:35:18 -04:00
test_upstream_cache.py fix(ingest): skip known KEV/FIRMS rows; CI skips unchanged images 2026-08-29 19:32:00 -04:00
test_vesselapi.py fix(map): geofence delete, vessel snapshots, sentinel cache, news briefs 2026-08-29 20:40:27 -04:00
test_vessels_snapshot.py fix(map): geofence delete, vessel snapshots, sentinel cache, news briefs 2026-08-29 20:40:27 -04:00
test_ws_manager.py feat: lean-Pi WS fan-out, geofences, DVR playback, fire/aircraft correlation 2026-08-28 09:35:18 -04:00