Merge main into codex/fix-cctv-session-admission

Main's Street View budget tests in the media feed-type file now mount the
provider through the shared CCTV test harness, which also resets the Google
rate-limit setting.
This commit is contained in:
German Khokhlov committed 2026-11-20 17:39:46 +04:00
commit 23efd3b343
196 files changed
+21064 -562

No files matched your search

+3
View File
@@ -45,6 +45,7 @@ export function mountCctvProvider(t, { cameras, fetch }) {
'CCTV_FORCE_AUSTIN',
'GOOGLE_MAPS_SERVER_API_KEY',
'GOOGLE_MAPS_API_KEY',
'GEV_RATELIMIT_GOOGLE_PER_MIN',
])
saved[name] = process.env[name];
@@ -65,6 +66,8 @@ export function mountCctvProvider(t, { cameras, fetch }) {
// No Street View key: a /frame miss lands on the synthetic billboard.
delete process.env.GOOGLE_MAPS_SERVER_API_KEY;
delete process.env.GOOGLE_MAPS_API_KEY;
// The default Google budget, whatever the shell sets.
delete process.env.GEV_RATELIMIT_GOOGLE_PER_MIN;
// The HLS puller binds fetch when cctvProxy() creates it, so mock first.
globalThis.fetch = fetch;
let handler;