gabriel / muse public
fix patch task/purge-legacy-object-paths #1 / 1
AI Agent gabriel · 59 days ago · Apr 18, 2026 · Diff

fix: purge all legacy object-store path constructions from tests and migrate.py

- test_cmd_gc_hardening: _write_object() uses write_object()+blob_id(); all hardcoded objects/<shard>/ paths → objects/sha256/<shard>/; symlink tests updated; has_object() replaces path-existence checks - test_prune_supercharge: _object_count() uses iter_stored_objects(); object_path() replaces manual path construction in bytes_freed test - test_commit_object_store_completeness: fix mangled import block; _delete_all_objects uses iter_stored_objects() - test_migrate: _latest_manifest/_all_snapshots prefix snap_id with sha256: when reading back by filename; three inline objects/ walks replaced with iter_stored_objects()/has_object()/object_path(); blob_id() replaces hashlib.sha256().hexdigest() for path-existence checks - migrate.py: oid = blob_id(content) instead of bare hexdigest; imports blob_id from muse.core._types

sha256:6639a894c0a9672cc11c4777695e9ef23ced2bb444e06eb3daee82f190041d01 sha
sha256:3708b7c1030dbfb30ae4ab05344fd6212b2587b643935ce7090143777e6e1f40 snapshot
← Older Oldest on task/purge-legacy-object-paths
All commits
Newer → Latest on task/purge-legacy-object-paths

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:6639a894c0a9672cc11c4777695e9ef23ced2bb444e06eb3daee82f190041d01 --body "your comment"