gabriel / musehub public
fix patch task/snapshot-batch-fix #1 / 1
gabriel · 66 days ago · Apr 14, 2026 · Diff

fix: chunk snapshot batch to respect _MAX_BATCH_SIZE=100

wire_fetch now sends all snapshots for all returned commits, but get_snapshot_manifests_batch() caps at 100 IDs. For repos with >100 commits the previous code crashed with ValueError: batch size N exceeds limit 100.

Fix: iterate in _MAX_BATCH_SIZE chunks, merging results. Also adds test_wire_fetch_more_than_100_snapshots (n=105) which pushes all commits in a single bundle to avoid per-request rate limiting.

sha256:d389881ced7186a96ab24f586860308e505d0f0cd4340a871422ca176178be1d sha
sha256:2bd7cda49e716ad872943e3ac1c7f937357ffd37f38f708903f2a8a28b8e367e snapshot
← Older Oldest on task/snapshot-batch-fix
All commits
Newer → Latest on task/snapshot-batch-fix

0 comments

No comments yet. Be the first to start the discussion.

To add a comment, use the Muse CLI: muse hub commit comment sha256:d389881ced7186a96ab24f586860308e505d0f0cd4340a871422ca176178be1d --body "your comment"