clipwright/tests
juancarlos.cavero 60fa37a969 fix(gpu,proxy): release ASR models in the API, probe one video not the playlist
Three failures measured in prod on 17-sep-2026, one deploy.

1. 5 of 12 jobs failed with "ffmpeg could not cut clip ... exit 187, 0 bytes".
   Exit 187 is AVERROR_EXIT after "h264_nvenc: Could not open encoder":
   VRAM was full. The uvicorn process itself held 7.7 GB of the 20 GB card
   while idle: the thumbnail studio and /api/subtitle on a dubbed clip
   transcribe in-process, and the whisper (ctranslate2) and parakeet
   (onnxruntime CUDA) singletons then lived in the API for good. Both call
   transcribe_backends.release_models() now; the loaders fetch their model
   inside the ASR gate so a release can never pull it from under a running
   transcription.

2. 26 of the 37 probes that reached the per-GB proxy in 10 days were
   `watch?v=X&list=...` or mix links. Neither the probe nor the download set
   `noplaylist`, so yt-dlp walked the whole list, died on its first private /
   age-gated / bot-checked entry (a video nobody pasted), the probe read it
   as an IP problem and paid the proxy to walk the same list again, and the
   user got a 400 for a valid link. Reproduced in the prod container: the
   same URL with noplaylist answers in 9.6 s on a static. The probe also
   keeps every attempt's error per route now, so the anonymous retry's
   bot-check cannot overwrite a "confirm your age" from the cookie attempt
   into an escalation.

3. noplaylist does nothing for a search or a bare playlist URL: one
   `results?search_query=` held the probe thread for 2220 s in the container
   and still failed. Search, playlist, channel and feed URLs are refused by
   path before any request, with a message that says what to paste.
2026-09-17 17:19:57 +02:00
..
conftest.py feat(agents): the pipeline as a platform — API keys, MCP server, webhooks 2026-08-03 22:33:16 +02:00
test_account_erasure.py test(ci): skip the Stripe cancel test when the stripe package is absent 2026-08-24 20:47:23 +02:00
test_account_local_purge.py fix(cloud): close the gaps the account-deletion review turned up 2026-08-24 19:26:12 +02:00
test_active_speaker.py feat(reframe): optional layouts, and a Gemini-picked layout per video 2026-07-31 13:28:45 +02:00
test_agent_uploads.py feat(mcp): burn the hook line by default, auto_hook=false opts out 2026-08-27 20:26:57 +02:00
test_ai_disclosure.py feat(rgpd): legales, cookies, baja de marketing, marcado AI Act y alertas sin PII 2026-09-07 19:22:52 +02:00
test_alert_classify.py fix: reject too-short sources at submit and stop alerts blaming recovered downloads 2026-08-20 22:54:51 +02:00
test_api_keys.py feat(agents): the pipeline as a platform — API keys, MCP server, webhooks 2026-08-03 22:33:16 +02:00
test_billing_states.py fix(ci): keep the subscriber-alert rule importable without the stripe SDK 2026-09-16 23:20:21 +02:00
test_camera_inset.py feat(reframe): layout for a screen with the camera composited into a corner 2026-07-31 13:28:45 +02:00
test_clip_ready_marker.py fix(dashboard): show each clip with its hook and captions as soon as it is done 2026-08-24 00:37:24 +02:00
test_clip_selection.py fix(selection): trim the detail pass by score, not by position 2026-08-29 01:42:45 +02:00
test_deploy_drain.py fix(deploy): keep serving until the proxy drops us, then exit for real 2026-08-25 15:11:55 +02:00
test_download_plan.py fix(download): free fallback-static attempt before any per-GB proxy 2026-09-04 16:03:16 +02:00
test_edit_builder.py feat: karaoke subtitles, deterministic Auto-Edit v2, emoji hooks, retries (PR #50 block 1) 2026-07-17 21:26:04 +02:00
test_email_policy.py fix(auth): harden MX verification after code review 2026-08-13 10:07:20 +02:00
test_ffmpeg_utils.py fix(clips): never hand the reframer a cut ffmpeg failed to write 2026-09-09 17:44:21 +02:00
test_filename_limits.py fix(clips): precompose accented titles so the file name survives a fetch() 2026-08-24 00:15:08 +02:00
test_gemini_block_split.py test(selection): fix the expected bisect trace 2026-08-27 19:15:36 +02:00
test_gemini_retry.py fix(gemini): distinguir bloqueo de contenido de fallo transitorio 2026-07-24 00:37:14 +02:00
test_generation_controls.py feat(generate): manual clip count and duration controls (discussion #65) 2026-08-18 19:21:42 +02:00
test_hook_grounding.py fix(hooks): ground GENERAL stretches too when the video is a screencast 2026-09-01 02:18:21 +02:00
test_hook_layers.py test(hook): styles contract, bitmap-emoji scaling, layer walk-back 2026-08-19 16:22:38 +02:00
test_hooks.py test(hook): styles contract, bitmap-emoji scaling, layer walk-back 2026-08-19 16:22:38 +02:00
test_job_error_text.py test(ci): saltar los tests que importan main/app en el CI mínimo 2026-07-23 11:40:05 +02:00
test_layout_picker.py feat(layout): shadow mode, decide and log without touching the render 2026-08-01 01:58:19 +02:00
test_layout_ranges.py feat(layouts): dashboard layout selector, layouts=none, ranges survive a fast recut 2026-08-25 15:45:19 +02:00
test_llm_backend.py feat(llm): run the moment picker on any OpenAI-compatible server (Ollama, vLLM, LM Studio) 2026-09-01 01:34:48 +02:00
test_log_view.py feat(cloud): user-friendly job logs + transcription progress; hide auto profile id in header 2026-07-18 02:20:31 +02:00
test_mcp_endpoint.py feat(mcp): OAuth 2.1 for claude.ai/ChatGPT, and a "connect an agent" panel 2026-08-27 01:17:49 +02:00
test_mcp_oauth.py feat(mcp): OAuth 2.1 for claude.ai/ChatGPT, and a "connect an agent" panel 2026-08-27 01:17:49 +02:00
test_mcp_protocol.py feat(mcp): list_clips renders as an MCP App clip picker in UI-capable clients 2026-08-05 23:59:02 +02:00
test_mcp_stdio.py feat(mcp): stdio transport for hosts that only launch a subprocess 2026-09-07 11:50:39 +02:00
test_mcp_ui.py feat(mcp): list_clips renders as an MCP App clip picker in UI-capable clients 2026-08-05 23:59:02 +02:00
test_media_path_guard.py fix(videos): stop serving the working directory, only deliverables 2026-09-07 21:16:17 +02:00
test_metering_free_plan.py feat(abuse): abrir free a email normal + bloquear dominios desechables 2026-07-21 00:45:54 +02:00
test_openpanel_revenue.py feat(billing): mirror paid invoices, top-ups and refunds into OpenPanel as revenue 2026-09-03 14:16:19 +02:00
test_panel_layout.py fix(panel): a 2x2 grid for three people, not three bands 2026-07-31 14:24:46 +02:00
test_partial_processing.py feat(quota): offer the first N minutes of a long video instead of a bare wall 2026-09-16 21:02:38 +02:00
test_phantom_clips.py fix(jobs): never report a clip that was never rendered 2026-09-07 15:31:08 +02:00
test_probe_anonymous_fallback.py fix(probe): retry the duration probe anonymously before paying per GB 2026-09-09 12:12:45 +02:00
test_probe_noplaylist.py fix(gpu,proxy): release ASR models in the API, probe one video not the playlist 2026-09-17 17:19:57 +02:00
test_probe_plan.py fix(metering): size direct video URLs with ffprobe when yt-dlp reports no duration 2026-08-27 17:10:13 +02:00
test_process_handover.py feat: hand the Thumbnail Studio video and transcript straight to the clip generator 2026-08-20 19:48:13 +02:00
test_proxy_ledger.py fix(alerts): probe the static pool the way the download asks 2026-09-08 11:30:26 +02:00
test_proxy_watch.py test(alerts): bring the proxy watcher tests onto the two-strike rule 2026-08-29 01:51:32 +02:00
test_proxy_watch_alerts.py fix(alerts): proxy watcher says what is affected, and needs two misses 2026-08-28 01:21:06 +02:00
test_punch_in.py feat(reframe): optional layouts, and a Gemini-picked layout per video 2026-07-31 13:28:45 +02:00
test_recut.py fix(recut): virtual_transcript must keep Whisper's word-boundary spaces 2026-08-19 12:22:39 +02:00
test_reframe_endpoint.py fix(reframe): harden PR #70's manual reframing after review 2026-08-19 12:09:02 +02:00
test_reframe_v2.py fix(reframe): a source already shot vertical is passed through untouched 2026-08-29 00:06:15 +02:00
test_rerender_endpoint.py test(edl): pin the full-transcript contract with words outside the old window 2026-08-20 13:36:13 +02:00
test_restoring_static.py fix(videos): restore a project from R2 before answering 404 under /videos 2026-09-06 12:28:38 +02:00
test_scene_cut_reset.py fix(reframe): cut instead of pan when the source changes shot 2026-08-24 20:41:29 +02:00
test_screencast_layout.py feat(reframe): optional layouts, and a Gemini-picked layout per video 2026-07-31 13:28:45 +02:00
test_short_source_gate.py fix: reject too-short sources at submit and stop alerts blaming recovered downloads 2026-08-20 22:54:51 +02:00
test_social_tenant_isolation.py harden(social): fail closed when the server cannot resolve the caller's profile 2026-08-21 21:19:44 +02:00
test_source_access.py fix(source): refuse to mint a signed url for a job we cannot identify 2026-08-31 00:14:18 +02:00
test_sparse_speech.py fix(pipeline): clip wordless footage by vision instead of failing on an empty transcript 2026-08-25 01:12:50 +02:00
test_speaker_tracker.py fix(reframe): ignore lone target jumps so the camera stops swinging 2026-07-26 20:59:04 +02:00
test_split_layout.py feat(reframe): optional layouts, and a Gemini-picked layout per video 2026-07-31 13:28:45 +02:00
test_static_probe_cookies.py fix(alerts): probe the static pool the way the download asks 2026-09-08 11:30:26 +02:00
test_subtitle_metering.py fix(subtitles): stop charging quota for burning captions 2026-07-25 17:16:59 +02:00
test_subtitles.py fix(captions): keep apostrophes out of the burned subtitle path 2026-07-29 15:04:50 +02:00
test_thumbnail_studio.py feat(thumbnail): concept-driven thumbnails, crisp burned text, face frames from the video, scored titles 2026-08-27 10:57:34 +02:00
test_transcribe_backends.py fix(gpu,proxy): release ASR models in the API, probe one video not the playlist 2026-09-17 17:19:57 +02:00
test_transcript_checkpoint.py feat(pipeline): keep the transcript across a redeploy so a resumed job does not transcribe twice 2026-08-24 22:05:40 +02:00
test_translate.py feat: karaoke subtitles, deterministic Auto-Edit v2, emoji hooks, retries (PR #50 block 1) 2026-07-17 21:26:04 +02:00
test_youtube_non_video_urls.py fix(gpu,proxy): release ASR models in the API, probe one video not the playlist 2026-09-17 17:19:57 +02:00
test_yt_clients.py fix(probe): retry the duration probe anonymously before paying per GB 2026-09-09 12:12:45 +02:00