Skip to content

fix(video): write recordings to a temp file - #580

Open
NayanBhut wants to merge 1 commit into
getsentry:mainfrom
NayanBhut:fix/577-record-video-temp-output
Open

NayanBhut wants to merge 1 commit into
getsentry:mainfrom
NayanBhut:fix/577-record-video-temp-output

Conversation

@NayanBhut

Copy link
Copy Markdown

Fixes #577

record-video was started without an output path, so AXe wrote axe-video-<timestamp>.mp4 into the current working directory. When the server runs from a project checkout, recordings grew inside the repository.

  • Start now passes an explicit --output path under os.tmpdir().
  • Stop prefers that path when the file exists, and falls back to parsing AXe's printed path so older AXe versions still work.
  • The existing stop handler still copies the recording to outputFile and deletes the source, so no temp file is left after a normal stop.

Verification

  • npx vitest run src/utils/__tests__/video_capture.test.ts → 3 passed
  • npm test → 244 files, 2,594 tests passed
  • npm run lint → exit 0
  • npm run typecheck → exit 0
  • npm run format:check → exit 0
  • npm run build → exit 0

Changelog entry added under [Unreleased].

record-video was started without --output, so AXe wrote axe-video-<timestamp>.mp4 into the current working directory. Pass an explicit path under os.tmpdir(), prefer it on stop, and keep the printed-path fallback for older AXe versions.
@NayanBhut
NayanBhut marked this pull request as ready for review December 5, 2026 04:42

This branch has not been deployed

No deployments
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.

[Bug]: Simulator recording writes a growing MP4 into the Git checkout before export

1 participant