gabriel / musehub public
fix task/fix-bench-seed-tests #1 / 1
AI Agent gabriel · 21 days ago · May 18, 2026 · Diff

fix: ensure_local_seed meta path and shard-cache purge on reseed

- meta_path moved from CACHE_DIR/{size}_meta.json (outside seed_dir) to seed_dir/cache_meta.json (inside). Tests expected the inside path; the outside location caused test_invalidates_on_size_matrix_change to fail with FileNotFoundError when trying to corrupt the metadata.

- Import _created_object_shards from muse.core.object_store and purge stale shard entries for seed_dir before shutil.rmtree. The set is module-level and amortises mkdir calls across the process lifetime. After rmtree the directories are gone but the set still holds their paths, causing write_object to skip mkdir and fail with ENOENT on the next build. Purging before delete fixes test_reseed_flag_forces_rebuild.

sha256:5a738d8b1313323906732a750898dcd313b53fb02ab832dfe7525a0eb61580d4 sha
sha256:3737b075a62abf9c11ef67f71e052929b81b05bd6fc6234ff6a42122e8672034 snapshot
← Older Oldest on task/fix-bench-seed-tests
All commits
Newer → Latest on task/fix-bench-seed-tests

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:5a738d8b1313323906732a750898dcd313b53fb02ab832dfe7525a0eb61580d4 --body "your comment"