gabriel / muse public
refactor tests task/blob-id-audit #1 / 1
AI Agent gabriel · 133 days ago · May 5, 2026 · Diff

refactor(tests): eliminate _sha/_sha256_oid/_blob_id wrappers; inline blob_id at all call sites

- Remove all def _sha(data) -> blob_id(data), def _sha256_oid(raw) -> blob_id(raw), and 'from muse.core.types import blob_id as _blob_id' alias patterns from ~40 test files - Replace long_id(hashlib.sha256(X).hexdigest()) with blob_id(X) throughout - Remove now-unused 'import hashlib' statements - No bare hex anywhere: all content-addressed IDs carry sha256: prefix

sha256:eb54833b6bea236ce48748dd9a20f42e17bca34a1c0f344201efce167a8cfab8 sha
+1 ~220 −45 symbols
sha256:f5a5a4b3503d464f04790c8e2132563c1ad6f63d88443a4b5eebba8a896460cd snapshot
+1
symbol added
~220
symbols modified
−45
symbols removed
0
dead code introduced
Semantic Changes 266 symbols
~ tests/test_cmd_bundle.py .py 1 symbol removed, 1 symbol modified
_sha function function _sha L34–35
~ tests/test_cmd_bundle_hardening.py .py 1 symbol removed, 1 symbol modified
_sha function function _sha L72–73
~ tests/test_cmd_clean.py .py 1 symbol removed, 1 symbol modified
_sha function function _sha L31–33
~ tests/test_cmd_clean_hardening.py .py 1 symbol removed, 1 symbol modified
_sha function function _sha L58–60
~ tests/test_cmd_content_grep.py .py 1 symbol removed, 1 symbol modified
_sha function function _sha L35–36
~ tests/test_cmd_core_cat.py .py 1 symbol removed, 1 symbol modified
_sha function function _sha L49–50
~ tests/test_cmd_describe.py .py 1 symbol removed, 2 symbols modified
_sha function function _sha L35–36
~ tests/test_cmd_ls_tree.py .py 1 symbol removed, 1 symbol modified
_sha function function _sha L42–43
~ tests/test_cmd_maintenance.py .py 1 symbol removed, 1 symbol modified
_sha function function _sha L41–42
~ tests/test_cmd_merge_tree.py .py 1 symbol removed, 1 symbol modified
_sha function function _sha L47–48
~ tests/test_cmd_shortlog.py .py 1 symbol removed, 1 symbol modified
_sha function function _sha L33–34
~ tests/test_cmd_shortlog_hardening.py .py 1 symbol removed, 1 symbol modified
_sha function function _sha L50–51
~ tests/test_cmd_verify_hardening.py .py 1 symbol removed, 3 symbols modified
~ tests/test_cmd_verify_shallow.py .py 1 symbol removed, 1 symbol modified
_sha function function _sha L62–63
~ tests/test_code_migrate.py .py 1 symbol modified
~ _v0_id
~ tests/test_directories_feature.py .py 1 symbol removed, 4 symbols modified
~ tests/test_ls_tree_supercharge.py .py 1 symbol removed, 1 symbol modified
_sha function function _sha L41–42
~ tests/test_maintenance_supercharge.py .py 1 symbol removed, 1 symbol modified
_sha function function _sha L36–37
~ tests/test_merge_supercharge.py .py 1 symbol removed, 1 symbol modified
_sha function function _sha L33–34
~ tests/test_merge_tree_supercharge.py .py 1 symbol removed, 1 symbol modified
_sha function function _sha L40–41
~ tests/test_mpack_bundle.py .py 1 symbol removed, 1 symbol modified
_sha function function _sha L36–37
~ tests/test_mpack_snapshot_integrity.py .py 1 symbol removed, 1 symbol modified
_sha function function _sha L52–53
~ tests/test_mv_supercharge.py .py 1 symbol removed, 3 symbols modified
_sha function function _sha L40–41
~ tests/test_pack_missing_snapshot_integrity.py .py 1 symbol removed, 1 symbol modified
_sha function function _sha L53–54
~ tests/test_push_force_delta.py .py 1 symbol removed, 1 symbol modified
_sha function function _sha L81–82
~ tests/test_social_plugin.py .py 1 symbol added, 2 symbols removed, 4 symbols modified
_blob_id function function _blob_id L44–45
long_id import import long_id L37–37
+ blob_id import import blob_id L37–37
~ _snap
~ tests/test_verify_supercharge.py .py 1 symbol removed, 1 symbol modified
_sha function function _sha L53–54
~ tests/test_wire_oc_n_objects.py .py 1 symbol removed, 4 symbols modified
_sha256_oid function function _sha256_oid L41–42
← Older Oldest on task/blob-id-audit
All commits
Newer → Latest on task/blob-id-audit

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