Some checks are pending
build-images / api (push) Waiting to run
build-images / worker-gpu (push) Waiting to run
build-images / web (push) Waiting to run
codeql / Analyze (javascript-typescript) (push) Waiting to run
codeql / Analyze (python) (push) Waiting to run
perf / API hot-path micro-smoke (budgeted) (push) Waiting to run
perf / Desktop engine crates (release build check) (push) Waiting to run
vision2026-ci / Shared packages (TS≡Python golden parity) (comfy-workflow-schema) (push) Waiting to run
vision2026-ci / Shared packages (TS≡Python golden parity) (effects-core) (push) Waiting to run
vision2026-ci / Shared packages (TS≡Python golden parity) (eventbus-types) (push) Waiting to run
vision2026-ci / Shared packages (TS≡Python golden parity) (growth-analytics) (push) Waiting to run
vision2026-ci / Shared packages (TS≡Python golden parity) (trends-schema) (push) Waiting to run
vision2026-ci / API phase modules (ruff + pytest) (push) Waiting to run
vision2026-ci / Shared packages (TS≡Python golden parity) (provider-adapter-kit) (push) Waiting to run
vision2026-ci / Shared packages (TS≡Python golden parity) (publishing-connectors) (push) Waiting to run
vision2026-ci / Shared packages (TS≡Python golden parity) (render-core) (push) Waiting to run
vision2026-ci / Shared packages (TS≡Python golden parity) (shot-template-schema) (push) Waiting to run
vision2026-ci / Python SDK resource tests (push) Waiting to run
vision2026-ci / Desktop engine crates (test + clippy + fmt) (push) Waiting to run
vision2026-ci / Alembic upgrade + drift check (push) Waiting to run
vision2026-ci / Shared packages (TS≡Python golden parity) (caption-engine) (push) Waiting to run
Paid, hosted product at menivor.com, now retired as a company project. Fresh squashed history of the cleaned working tree (secret-scanned, no .env, no customer data, no outreach logs). Built on MoneyPrinterTurbo (MIT, harry0703) — see NOTICE.
141 lines
6.3 KiB
Makefile
141 lines
6.3 KiB
Makefile
# ReelForge developer Makefile.
|
|
#
|
|
# Usage: make -f Makefile.reelforge <target>
|
|
# (Kept separate from any MPT Makefile so the fork stays non-destructive.)
|
|
#
|
|
# Prefers `uv run` when uv is available (matches the repo's uv.lock workflow),
|
|
# otherwise falls back to the bare tool on PATH.
|
|
|
|
COMPOSE := docker compose -f docker-compose.reelforge.yml
|
|
LOCAL_VENV := $(wildcard $(CURDIR)/.venv/bin/python)
|
|
UV := $(shell command -v uv 2>/dev/null)
|
|
ifneq ($(LOCAL_VENV),)
|
|
PYTHON := $(CURDIR)/.venv/bin/python
|
|
RUFF := $(CURDIR)/.venv/bin/ruff
|
|
else ifeq ($(UV),)
|
|
PYTHON := python
|
|
RUFF := ruff
|
|
else
|
|
PYTHON := uv run python
|
|
RUFF := uv run ruff
|
|
endif
|
|
|
|
PYTHON_API := PYTHONPATH=packages/provider-adapter-kit/python:apps/api/engine:apps/api:. REELFORGE_BACKEND_ROOT=$(CURDIR)/apps/api $(PYTHON)
|
|
PYTHON_TEST := NEON_DATABASE_URL=sqlite:///:memory: R2_ACCOUNT_ID=x R2_ACCESS_KEY_ID=x R2_SECRET_ACCESS_KEY=x R2_BUCKET=x REELFORGE_LAUNCH_MODE=public REELFORGE_PUBLIC_LAUNCH_APPROVED=true REELFORGE_CHECKOUT_ENABLED=true REELFORGE_PUBLISHING_ENABLED=true $(PYTHON_API)
|
|
CELERY_APP := app.workers.celery_app
|
|
RUFF_PRODUCT := apps/api/app apps/api/engine/reelforge_engine
|
|
RUFF_GATE := $(RUFF_PRODUCT) tests/reelforge migrations
|
|
|
|
.DEFAULT_GOAL := help
|
|
.PHONY: help up down logs worker beat api generation-worker web migrate lint test prism-test fmt golden golden-synthetic gate bench smoke sdk tools-gradio tools-gradios
|
|
|
|
help: ## Show this help
|
|
@grep -hE '^[a-zA-Z_-]+:.*?## .*$$' $(MAKEFILE_LIST) \
|
|
| awk 'BEGIN {FS = ":.*?## "}; {printf " \033[36m%-10s\033[0m %s\n", $$1, $$2}'
|
|
|
|
up: ## Build + start the full stack (api, worker, redis) in the background
|
|
$(COMPOSE) up -d --build
|
|
|
|
down: ## Stop and remove the stack containers
|
|
$(COMPOSE) down
|
|
|
|
logs: ## Tail logs from all services
|
|
$(COMPOSE) logs -f
|
|
|
|
api: ## Run the FastAPI app locally (no Docker) on :8080
|
|
$(PYTHON_API) -m uvicorn app.asgi:app --host 0.0.0.0 --port 8080 --reload
|
|
|
|
generation-worker: ## Run the dedicated GPU generation Celery worker
|
|
$(PYTHON_API) -m celery -A $(CELERY_APP) worker -Q generation --concurrency=1 --loglevel=info
|
|
|
|
web: ## Run the Next.js product locally on :3000
|
|
npm --workspace reelforge-web run dev
|
|
|
|
worker: ## Run a normal Celery worker locally (celery+render queues)
|
|
$(PYTHON_API) -m celery -A $(CELERY_APP) worker -Q celery,render,housekeeping --concurrency=2 --loglevel=info
|
|
|
|
beat: ## Run the Celery scheduler locally
|
|
$(PYTHON_API) -m celery -A $(CELERY_APP) beat --loglevel=info
|
|
|
|
migrate: ## Apply DB migrations to head (Neon/Postgres via alembic)
|
|
$(PYTHON_API) -m alembic upgrade head
|
|
|
|
lint: ## Lint the app with ruff
|
|
$(RUFF) check --select F,E9 $(RUFF_PRODUCT)
|
|
|
|
fmt: ## Auto-fix lint + format with ruff
|
|
$(RUFF) check --fix $(RUFF_PRODUCT)
|
|
$(RUFF) format $(RUFF_PRODUCT)
|
|
|
|
test: ## Run the test suite with pytest
|
|
$(PYTHON_TEST) -m pytest
|
|
|
|
prism-test: ## Run the standalone Prism Sx0 gateway suite
|
|
PYTHONPATH=packages/provider-adapter-kit/python:apps/api:apps/prism-media-gateway:. $(PYTHON) -m pytest apps/prism-media-gateway/tests -q
|
|
|
|
sdk: ## Build the public TypeScript and Python SDKs from packages/
|
|
npm --workspace @reelforge/sdk run build
|
|
$(PYTHON) -m build packages/sdk-python
|
|
|
|
smoke: ## Check API, in-process generation capability, web, and desktop entrypoints
|
|
$(PYTHON_API) -c "from app.asgi import app; assert app"
|
|
$(PYTHON_API) -c "from app.generation.app import app; assert app"
|
|
npm --workspace reelforge-web run build
|
|
cargo check --workspace
|
|
|
|
# --------------------------------------------------------------------------- #
|
|
# Local quality gate. This is deliberately developer-run: ReelForge has no
|
|
# hosted CI workflow. Export the hermetic test environment documented in
|
|
# docs/reelforge/DEVELOPMENT.md before running it.
|
|
#
|
|
# Keep the golden step synthetic and deterministic. The separate `golden`
|
|
# target intentionally upgrades to live provider renders when credentials are
|
|
# supplied; a routine pre-push gate must never incur provider work or cost.
|
|
gate: ## Run lint, ReelForge tests, migration apply/drift check, and synthetic golden acceptance
|
|
@echo ">> [1/5] ruff (F,E9 — syntax + undefined names)"
|
|
$(RUFF) check --select F,E9 $(RUFF_GATE)
|
|
@echo ">> [2/5] pytest tests/reelforge"
|
|
$(PYTHON_TEST) -m pytest tests/reelforge -q
|
|
@echo ">> [3/5] alembic upgrade head"
|
|
$(PYTHON_API) -m alembic upgrade head
|
|
@echo ">> [4/5] alembic check (model vs migrations drift)"
|
|
$(PYTHON_API) -m alembic check
|
|
@echo ">> [5/5] synthetic golden acceptance"
|
|
$(PYTHON_API) -m pytest $(GOLDEN_SYNTHETIC) -q
|
|
@echo ">> GATE PASSED"
|
|
|
|
RESULTS ?= tests/golden/results.json
|
|
bench: ## Print p50/p95 from a completed 10-job golden results JSON/JSONL artifact
|
|
$(PYTHON_API) scripts/reelforge_bench.py $(RESULTS) --expected 10
|
|
|
|
# --------------------------------------------------------------------------- #
|
|
# Golden regression set (CTO plan §8 Definition of Done).
|
|
#
|
|
# The full 10-job set (5 TR + 5 EN, tests/golden/manifest.yaml) renders REAL
|
|
# videos end-to-end and asserts: 1080x1920, h264 + faststart, >=8 Mbps, hook
|
|
# <=2.5s, caption drift <=50ms, avatar/audio delta <=150ms. It needs live
|
|
# provider credentials AND a libass-enabled ffmpeg:
|
|
#
|
|
# ANTHROPIC_API_KEY (script generation via litellm)
|
|
# ELEVENLABS_API_KEY (/with-timestamps TTS — the single timing authority)
|
|
# HEYGEN_API_KEY (talking-head avatar render)
|
|
# ffmpeg built with libass + chromakey/geq/overlay/scale/crop/vstack filters
|
|
#
|
|
# When those keys are present we run the real set; otherwise we fall back to the
|
|
# synthetic acceptance suite (lavfi-composed clip + pure helper unit tests),
|
|
# which is always safe to run on a hermetic CI box.
|
|
GOLDEN_SYNTHETIC := tests/reelforge/test_golden_acceptance.py
|
|
|
|
golden-synthetic: ## Run the hermetic golden acceptance suite (never invokes providers)
|
|
$(PYTHON_API) -m pytest $(GOLDEN_SYNTHETIC) -q
|
|
|
|
golden: ## Run the golden set: real 10-job set if provider keys are set, else the synthetic acceptance suite
|
|
@if [ -n "$$ANTHROPIC_API_KEY" ] && [ -n "$$ELEVENLABS_API_KEY" ] && [ -n "$$HEYGEN_API_KEY" ]; then \
|
|
echo ">> provider keys detected — running the REAL golden 10-job set (needs libass ffmpeg)"; \
|
|
REELFORGE_GOLDEN_REAL=1 $(PYTHON_API) -m pytest -m integration $(GOLDEN_SYNTHETIC) -v; \
|
|
else \
|
|
echo ">> provider keys missing — running the SYNTHETIC acceptance suite"; \
|
|
echo " (set ANTHROPIC_API_KEY + ELEVENLABS_API_KEY + HEYGEN_API_KEY for the real 10-job run)"; \
|
|
$(MAKE) -f $(firstword $(MAKEFILE_LIST)) golden-synthetic; \
|
|
fi
|