Compare commits

..

3 commits

Author SHA1 Message Date
026f3ff271 test: add full E2E coverage (API, pipeline, browser)
Some checks failed
CI / unit (pull_request) Failing after 24s
CI / backend-e2e (pull_request) Successful in 1m18s
CI / dashboard-e2e (pull_request) Successful in 1m44s
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.
2026-10-04 21:58:28 +01:00
7f4cdbc318 ci: run frontend-build in the python+node container, drop setup-node
All checks were successful
CI / backend-tests (pull_request) Successful in 29s
CI / frontend-build (pull_request) Successful in 20s
setup-node's Node download + GitHub cache service time out on the Forgejo
act runner (ETIMEDOUT 172.27.0.4:41759) and push the job to ~9m47s. The
nikolaik/python-nodejs container already ships Node 20 + npm + git.
2026-10-04 21:25:58 +01:00
59e0db8c24 chore: remove dead code, unused assets, and the server-render chain
Backend:
- Drop unused imports/locals and zero-reference helpers (truncate_ip,
  in_split, GEMINI_PROMPT_TEMPLATE, legacy subtitles SRT path, dead paths)
- Remove unwired features (delete_uploaded, mark_ai_generated, unmark_job,
  compact_words, restoring_static restorer hook, gemini_worker __main__)
- Remove shelved panel_layout module + its flags/tests
- Remove the /api/render proxy + RENDER_SERVICE_URL

Frontend:
- Delete App.css, react.svg, vite.svg, agent screenshot, demo mp4s
- Remove dead exports (downloadBlobUrl, consent reopen machinery, dead zod
  schemas/CITED_STATS) and unused deps (@remotion/media-utils, zod)
- Drop the /render dev proxy; rewrite dashboard README

Repo/config:
- Delete render-service/ and top-level remotion/ (superseded by the
  dashboard's in-browser Remotion copy); drop the compose renderer service
- Delete docker-compose.e2e.local.yml and 4 unreferenced screenshots
- Prune .env.example dead keys, add GEMINI_API_KEY/MAX_CONCURRENT_JOBS
- Tighten .dockerignore/.gitignore; add dashboard lint to CI
- Fix stale compliance doc + README structure

Backend 709 passed / 18 skipped; dashboard lint+build green; compose valid.
2026-10-04 21:24:42 +01:00

View file

@ -26,11 +26,7 @@ jobs:
- name: Install test dependencies - name: Install test dependencies
run: pip install -r requirements-test.txt run: pip install -r requirements-test.txt
- name: Run unit tests - name: Run unit tests
# Exclude the E2E tree from *collection*: `-m "not e2e"` only filters run: pytest tests/ -m "not e2e" -q
# execution, but pytest still imports every module to collect it, and the
# pipeline E2E modules import the pipeline (tqdm/scenedetect/ML) which is
# intentionally absent from the unit environment.
run: pytest tests/ --ignore=tests/e2e -m "not e2e" -q
# Backend E2E: API + pipeline. ffmpeg/ffprobe must be installed in-job; the # Backend E2E: API + pipeline. ffmpeg/ffprobe must be installed in-job; the
# E2E requirements add pytest-asyncio/asgi-lifespan/pytest-timeout and the # E2E requirements add pytest-asyncio/asgi-lifespan/pytest-timeout and the