Skip to content

Fail closed when concat ffmpeg leaves a truncated output - #123

Merged
cursor[bot] merged 2 commits into
mainfrom
cursor/concat-ffmpeg-timeout-2ccd
Sep 7, 2026
Merged

cursor[bot] merged 2 commits into
mainfrom
cursor/concat-ffmpeg-timeout-2ccd

Conversation

@jmjava

@jmjava jmjava commented Sep 7, 2026 •

Copy link
Copy Markdown
Owner

Compose now raises and unlinks a partial mux on ffmpeg timeout (#121). Concat already raised ConcatError on timeout / non-zero ffmpeg, but it left recordings/<target>.mp4 in place. ffmpeg -y writes as it goes, so a hung or failed concat could leave a truncated full-demo file that pages / validate treat as a finished recording.

This PR unlinks the incomplete concat output on timeout, CalledProcessError, or missing ffmpeg, matching compose.

Milestone: milestones/concat-ffmpeg-timeout.md. No clock / compile change.

Local gates

  • ruff check src/ tests/ — pass
  • pytest tests/ — 709 passed, 1 skipped
  • docgen benchmark — meets src/docgen/benchmark_data/baseline.json (no --update-baseline)
Open in Web Open in Cursor 

cursoragent and others added 2 commits September 7, 2026 22:28
Concat already raised ConcatError on timeout or non-zero ffmpeg, but
left recordings/<target>.mp4 in place. Unlink the incomplete file so
pages and validate cannot treat a hung concat as a finished demo.

Co-authored-by: jmjava <jmjava@gmail.com>
ruff, pytest (709 passed, 1 skipped), and docgen benchmark all green.

Co-authored-by: jmjava <jmjava@gmail.com>
@jmjava
jmjava marked this pull request as ready for review September 7, 2026 22:29
@cursor
cursor Bot merged commit 0e98bea into main Sep 7, 2026
6 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants