Skip to content

[Fix] Stream large file downloads in validate - #948

Merged
kmturley merged 1 commit into
mainfrom
fix/large-file-download
Sep 21, 2026
Merged

kmturley merged 1 commit into
mainfrom
fix/large-file-download

Conversation

@kmturley

Copy link
Copy Markdown
Member

Validation failed for files larger than 2GB (e.g. VSCO-2-CE, 2.3GB) because the download was buffered in memory and written with a single writeFileSync call.

  • Bump @open-audio-stack/core to ^0.1.60
  • src/validate.ts now uses apiStream + fileCreateFromStream to stream the download to disk

Tested by running npm run dev:validate against the pinned VSCO-2-CE archive URL: the full 2,297,836,334 byte zip downloads and is hashed correctly (previously a 0 byte file and a "length out of range" error). npm run check passes.

Closes open-audio-stack/open-audio-stack-core#112

🤖 Generated with Claude Code

Use apiStream and fileCreateFromStream from core 0.1.60 so files over 2GB
no longer fail with a Buffer length error. Verified against the 2.3GB
VSCO-2-CE archive.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
@savashn savashn mentioned this pull request Sep 21, 2026
@kmturley
kmturley merged commit 7a32160 into main Sep 21, 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.

Validation fails on large files

1 participant