pytest still imports every module to collect it, and -m "not e2e" only filters
execution; the pipeline E2E modules import the pipeline (tqdm/scenedetect/ML)
which is absent from the unit environment. Fixes the CI unit job.
Three-level end-to-end suite, all deterministic (no retries, no sleeps, no
unmocked network):
- tests/e2e/api (209 tests): every route in clipwright/api/app.py +
free_tools — health/config, uploads, process submit matrix + worker/webhook/
auto-retry/resume, status/source/download-all, edit/effects, transcript/EDL/
rerender, scenes/reframe, subtitle, hook, Postiz, thumbnails, free tools,
and the security/path guards.
- tests/e2e/pipeline (136 tests): every stage with real ffmpeg and stubbed
Gemini/yt-dlp/ASR/ML — download, transcribe, scene detect, selection,
layout, reframe/render, subtitles, hooks, watermark, thumbnails, plus the
real CLI full pipeline via stub_env.
- dashboard/e2e (19 Playwright specs): route-interception state machine
covering every dashboard flow; one real-backend spec left test.fixme.
- Foundation: tests/e2e/conftest.py (state isolation, no-network guard, ffmpeg
media factory, disk-seeded jobs), FakePopen worker harness, child-process
stub_env, architecture-consistent fixtures.
- CI: unit + backend-e2e + dashboard-e2e jobs in the python+node container;
ffmpeg + Playwright installed in-job; no setup-node/cache (act runner).
Verified: unit 790 passed; API E2E 209 passed; pipeline E2E 136 passed;
Playwright 19 passed / 1 skipped.
- Postiz publishing now selects exact channels by integration id; identifier
mapping fixes instagram-standalone (was 'not connected') and multiple channels
per network (was first-only); settings.__type uses the real identifier
- Publish modal lists all channels, DD/MM/YYYY + HH:MM scheduling with validation,
surfaces backend errors and a success confirmation
- Remove AWS/S3 clip backup and ElevenLabs voice dubbing (server, UI, tests, docs)
- Boot straight into the app; remove the landing/launch screen
- CI backend-tests runs in a python:3.11-slim container (Forgejo has no 3.11 cache)
Reviewed-on: #1
Co-authored-by: pedro-bento <mail@pbento.pt>
Co-committed-by: pedro-bento <mail@pbento.pt>
CI has been red since the July layout work: the workflow installed five
light packages while the suite grew tests importing numpy, and the MCP
endpoint tests added fastapi on top. Two fixes:
- panel_layout/screencast_layout imported main (torch, mediapipe) BEFORE
their ENABLED gate, so even the disabled path paid the heavy import.
Move the import below the gate: the default path now imports nothing,
which is what the gate was for.
- The workflow installs exactly what the collected tests import at
module level, still excluding the ML stack the lazy imports protect.
List validated against a clean venv: 382 passed, 3 skipped, 0 import
errors.
Ported from PR #50 (Themegaindex) onto current main, adapted to the
billing-mode app.py and the Lumen dashboard:
- subtitles.py: karaoke ASS generation (word-level highlight, glow/pop/box
effects, dim/uppercase), whisper continuation-word merging, env-configurable
whisper model, ASS/font input sanitization, faststart
- editor.py + edit_builder.py: Auto-Edit v2 — Gemini returns a structured
edit-decision list and the FFmpeg filter is built deterministically with
hard caps (no raw filter strings from the LLM), 2s dry-run + one
self-repair round, caption-safe mode blocks zooms on subtitled clips
- app.py: /api/subtitle karaoke fields + re-subtitle prefix walk-back
(fixes double subtitles), has_captions passed to Auto-Edit
- hooks.py: emoji rendering (color-emoji font with strip fallback),
char-level hard wrap, unique temp PNGs, ffmpeg timeouts; keeps the
duration/enable overlay from b1113d7
- translate.py: exponential-backoff retries for transient ElevenLabs errors
- dashboard: 11 caption presets in SubtitleModal; karaoke burns server-side
- tests/: 50 pytest tests; .github/workflows/ci.yml runs them + fe build
Encode settings kept at CRF 18 (medium for post-process steps) per f791a74.
Co-authored-by: Themegaindex <themegaindex@users.noreply.github.com>