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
Archive generation fails for large datasets (S3 10,000 part limit) #180
The generate-archive.yml workflow streams a zip archive to S3 using @aws-sdk/lib-storage with partSize: 10 * 1024 * 1024 (10MB). S3 multipart uploads have a hard limit of 10,000 parts, so the maximum archive size is ~100GB.
nm000103 (HBN-EEG) has 21,142 files. The resulting zip exceeded 10,000 parts at progress 9,500/21,142.
Fix
Increase partSize to handle larger datasets. Options:
Part Size
Max Archive Size
Tradeoff
10MB (current)
~100GB
Too small
50MB
~500GB
Good default
100MB
~1TB
Safe for foreseeable datasets
Recommended: Use 100MB part size (100 * 1024 * 1024). Memory usage stays low since @aws-sdk/lib-storage buffers queueSize parts (4 x 100MB = 400MB), well within GitHub Actions' 7GB limit.
Alternatively, calculate dynamically based on estimated archive size.
Files to Change
.github/workflows/generate-archive.yml in nemarDatasets/.github (shared workflow) or per-repo copies
Activity
Increase archive upload part size to 100MB
neuromechanist commentedon Feb 24, 2026
Fixed in commit 1a15a04 (backend template) and deployed to all live dataset repos. Archive generation re-triggered for nm000103 and nm000104.