You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Streaming archive generation for large datasets #138
The current generate-archive GitHub Actions workflow downloads all dataset files to the runner's local disk (git annex get .), zips them, then uploads the zip to S3. This fails for large datasets (50-100+ GB) because GitHub Actions runners have ~14 GB free disk.
Solution
Replace the download-zip-upload approach with streaming archive generation: read each file directly from S3, feed it through a zip encoder, and stream the zip output directly to S3 via multipart upload. Memory and disk usage stay constant regardless of dataset size.
Approach
Use a Node.js script in the GitHub Actions workflow that:
Checks out the repo at the version tag (metadata only, no git-annex get)
Lists all files in the tree, resolves git-annex keys to S3 URLs
Streams each file from S3 through a zip encoder (archiver library)
Pipes zip chunks to S3 multipart upload (@aws-sdk/client-s3 + Upload)
Streaming archive generation is implemented and working. The remaining issue (S3 10,000 part limit for very large datasets like nm000103) is tracked in #180.
Activity
Stream archive to S3 without local disk (#138)
neuromechanist commentedon Feb 24, 2026
Streaming archive generation is implemented and working. The remaining issue (S3 10,000 part limit for very large datasets like nm000103) is tracked in #180.