refactor
BREAKING
task/unified-object-store
#5 / 9
refactor: migrate test suite to unified object store IDs (batches 1–15)
Replace all compute_commit_id/compute_snapshot_id shim imports with hash_commit/hash_snapshot from muse.core.ids across the test suite. Fix accompanying bugs surfaced by the migration:
- _write_object helpers in test_cmd_merge/shelf now use write_object() so the blob header is included - test_cmd_merge_tree snapshot existence check uses object_path() - test_cmd_name_rev/rev_parse/read_commit collision messages recomputed under new hash_commit formula - verify.py snapshot sweep walks iter_stored_objects() instead of scanning .muse/snapshots/*.msgpack - test_cmd_verify_commit _force_write_commit writes to unified object store with commit <size>\0<payload> header - test_cmd_verify_hardening bare hex snap_id wrapped with long_id()
sha256:b0e91fbefb1a2ce2d5cd47f2ac09380c9c25f961d8b2d280b5ccbd0d9e8bd350
sha
+136
~272
−146
symbols
sha256:9d384fbf47336d7254b6929c7ced935fee28f50c0ca26acaa1143e96bb76cebc
snapshot
+136
symbols added
~272
symbols modified
−146
symbols removed
0
dead code introduced
Semantic Changes
554 symbols
~
LICENSE
~
tests/test_apply_mpack_partial_failure.py
.py
2 symbols added, 2 symbols removed, 4 symbols modified
~
tests/test_apply_pack_oserror_integrity.py
.py
4 symbols added, 12 symbols removed, 13 symbols modified
−
test_impostor_file_not_overwritten_by_apply_mpack
method
method test_impostor_file_not_overwritten_by_apply_mpack L177–196
+
test_apply_mpack_oserror_commit_not_written
method
method test_apply_mpack_oserror_commit_not_written L148–159
~
fake_id
~
muse_dir
~
_commit
~
_commit
~
tests/test_cmd_commit_graph_enhancements.py
.py
2 symbols added, 2 symbols removed, 2 symbols modified
~
tests/test_cmd_content_grep_hardening.py
.py
2 symbols added, 2 symbols removed, 1 symbol modified
~
_commit
~
blob_id
~
tests/test_cmd_for_each_ref_hardening.py
.py
2 symbols added, 2 symbols removed, 1 symbol modified
~
_commit
~
_commit
~
tests/test_cmd_merge_base_and_snapshot_diff.py
.py
2 symbols added, 2 symbols removed, 2 symbols modified
~
_commit
~
repo
~
_snap
~
_snap
~
repo
Older
fix: commit_exists checks object store path (missed in previous …
sha256:e8f3d8de6b47150d6551a61d46fecbb0c7b0777dbca6faa97cff507f6f4d23d6
All commits
Newer
test: migrate test suite to unified object store — replace compu…
sha256:64b7c97d15661242a344ee8ac332982768d3b97fb298d5f4c2d727eb1857ccbf
0 comments
To add a comment, use the Muse CLI:
muse hub commit comment sha256:b0e91fbefb1a2ce2d5cd47f2ac09380c9c25f961d8b2d280b5ccbd0d9e8bd350 --body "your comment"
No comments yet. Be the first to start the discussion.