gabriel / musehub public
test task/clone-integrity-tdd #1 / 1
gabriel · 163 days ago · Apr 14, 2026 · Diff

test: clone integrity TDD — push→fetch/objects→sha256 round-trip

Adds test_clone_integrity.py covering the full muse clone flow from first principles using real sha256 object IDs:

- test_clone_integrity_fresh_repo: fresh push → clone → verify - test_clone_integrity_legacy_compressed_objects: same with legacy- compressed backend state (the 127-failure regression) - test_clone_integrity_multiple_commits: multi-commit tip-snapshot check

All three pass locally, confirming the wire protocol is correct after the decompress_if_needed fix. Staging failures are environment-specific.

sha256:7180baefd59438921a889763ed9277301f75f05249e9ea49963f3919fff5a1fe sha
+24 symbols
sha256:a2b7301c11df60d2f26d7edb9937b8fcfa5836ab684cfe8b16a33653400fdde4 snapshot
+24
symbols added
0
dead code introduced
Semantic Changes 24 symbols
~ tests/test_clone_integrity.py .py 24 symbols added
+ _clone_and_verify function async_function _clone_and_verify L154–205
+ _corrupt_with_compressed function function _corrupt_with_compressed L78–85
+ _get_backend function function _get_backend L73–75
+ _mp function function _mp L65–66
+ _push_full_bundle function async_function _push_full_bundle L88–151
+ _sha256_oid function function _sha256_oid L48–49
+ _utc_now function function _utc_now L69–70
+ _verify_integrity function function _verify_integrity L52–62
+ AsyncClient import import AsyncClient L36–36
+ AsyncSession import import AsyncSession L37–37
+ StrDict import import StrDict L40–40
+ annotations import import annotations L26–26
+ datetime import import datetime L32–32
+ factory_create_repo import import factory_create_repo L39–39
+ hashlib import import hashlib L28–28
+ msgpack import import msgpack L34–34
+ pytest import import pytest L35–35
+ stat import import stat L29–29
+ timezone import import timezone L32–32
+ uuid import import uuid L30–30
+ zlib import import zlib L31–31
+ test_clone_integrity_fresh_repo function async_function test_clone_integrity_fresh_repo L214–246
+ test_clone_integrity_legacy_compressed_objects function async_function test_clone_integrity_legacy_compressed_objects L250–285
+ test_clone_integrity_multiple_commits function async_function test_clone_integrity_multiple_commits L289–324
← Older Oldest on task/clone-integrity-tdd
All commits
Newer → Latest on task/clone-integrity-tdd

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