SKILL.md
Debug Render Failure
Use this skill when debugging render pipeline issues.
Environment
- APPRENDERDRY_RUN=1 – Run full pipeline without paid APIs; outputs are placeholder files.
- APPDRYRUNFAILSTEP=<step> – Simulate failure at a specific step. Valid steps:
ttsgenerate,asralign,imagesgenerate,captionsbuild,musicbuild,ffmpegrender,finalize_artifacts. - APPDRYRUNSTEPDELAY_MS – Optional delay (ms) before each dry-run step.
Where to look
- Run state:
Run.logsJson(array of log messages),Run.resumeStateJson(completed steps, resume data). DB via Prisma ordb:studio. - Pipeline:
apps/server/src/services/render/renderPipeline.ts. CheckcompletedSteps,saveResumeState,handlePipelineError, and queue processing (processNextInQueue). - Retry:
POST /api/run/:runId/retrysupports optionalfromStepto resume from a specific step.
Checks
- Confirm Run status (
queued/running/failed/done/canceled/qa_failed). - Inspect
logsJsonandresumeStateJsonfor the last completed step and error message. - Reproduce with
APPRENDERDRYRUN=1and optionallyAPPDRYRUNFAIL_STEPto test error handling. - Ensure FFmpeg is available when not in dry-run; check
ARTIFACTS_DIRand disk space.
References
- [renderPipeline.ts](apps/server/src/services/render/renderPipeline.ts), [run routes](apps/server/src/routes/run.ts)
- [.github/copilot-instructions.md](.github/copilot-instructions.md) (Test Modes, Debug render failures)