- Remove the watermark feature end to end (watermarked.py, apply_watermark/
mark_delivery/watermark_filter, WATERMARK env, assets/) and its tests; self-host
delivery is now unconditionally clean.
- Delete the unused cli/ package and .github/workflows/publish-cli.yml.
- Delete docs/ (compliance) and design.md; drop the dangling references in the
legal page and the design-token/ui comments.
- Consolidate requirements: requirements.txt (runtime) + requirements-test.txt
(unit + E2E); remove requirements-e2e.txt and requirements-ml-e2e.txt and
point both CI jobs at the single test file. Add libgl1 to the unit job
(scenedetect -> opencv-python links libGL).
Verified in the CI container: unit 701 passed; API E2E 209; pipeline E2E 127;
Playwright 19 passed / 1 skipped.
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.