Files
evig/.github
14ab7c77fb fix(uploads): raise proxy body cap + stream-parse multipart — unblock >10MB audio (#220)
* fix(ci): install ffmpeg for prod protocols smoke fixtures

ubuntu-latest runners no longer ship ffmpeg preinstalled — the fixture
generation step failed with exit 127.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01QXEBWjhBB9JYsgLSX4jNES

* fix(uploads): raise proxy body cap + stream-parse multipart — unblock >10MB audio

Prod smoke run 2 proved the pipeline end-to-end for small audio but failed
instantly for a 37 MB file. Reproduced locally and bisected: with a proxy
(src/proxy.ts) present, Next buffers every request body and SILENTLY
TRUNCATES it at 10 MB (dev log: "Request body exceeded 10MB … unless
configured"). Every protocol recording above 10 MB died on body parsing —
before Groq's 25 MB cap was ever reached. This was the real blocker behind
the 63 MB meeting recording.

- next.config.js: experimental.middlewareClientMaxBodySize: '260mb'
  (above FILE_SIZE_LIMITS.AUDIO_MAX) so uploads reach the route intact
- src/lib/api/parse-multipart.ts: stream the multipart body through busboy
  instead of request.formData() — undici's parser chokes on large bodies,
  busboy parses them with explicit limits and a clear MultipartLimitError;
  process-sources returns a specific 400 instead of the catch-all 500.
  Verified locally through next dev: 39 MB and 65 MB uploads parse correctly
  (existing process-sources route tests now exercise this parser)
- prod smoke: new final "sweep leftover smoke protocols" test deletes any
  E2E Smoke rows left behind by failed attempts, keeping prod clean

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01QXEBWjhBB9JYsgLSX4jNES

---------

Co-authored-by: Georgy Butaev <georgy.butaev@revamp-it.ch>
Co-authored-by: Claude Fable 5 <noreply@anthropic.com>
2026-07-16 13:46:14 +02:00
..