gabriel / musehub public
feat/fix-object-refs-on-repush #1 / 4
gabriel · 2 days ago · Jun 8, 2026 · Diff

add tests for fixing object refs on repush

sha256:0d5e0b2da626326b94809c9538e015ad168ec3f7b9333b7f25d5d5eaf411729f sha
+42 symbols
sha256:fea7bcd9b8748d8322bb3c88d2dfb31a91cedde1ecf44fe366b586a29fe2def0 snapshot
+42
symbols added
0
dead code introduced
Semantic Changes 42 symbols
~ tests/test_object_refs_on_repush.py .py 42 symbols added
+ _BLOB_A_CONTENT variable variable _BLOB_A_CONTENT L46–46
+ _BLOB_A_OID variable variable _BLOB_A_OID L53–53
+ _BLOB_B_CONTENT variable variable _BLOB_B_CONTENT L47–47
+ _BLOB_B_OID variable variable _BLOB_B_OID L54–54
+ _BLOB_C_CONTENT variable variable _BLOB_C_CONTENT L48–48
+ _BLOB_C_OID variable variable _BLOB_C_OID L55–55
+ _BLOB_OIDS variable variable _BLOB_OIDS L57–57
+ _IDENTITY_ID variable variable _IDENTITY_ID L43–43
+ _OWNER variable variable _OWNER L42–42
+ _SHARED_MPACK_BYTES variable variable _SHARED_MPACK_BYTES L60–69
+ _SHARED_MPACK_KEY variable variable _SHARED_MPACK_KEY L70–70
+ _make_repo function async_function _make_repo L73–83
+ _mock_backend function function _mock_backend L86–89
+ _mpack_index_with_byte_range_count function async_function _mpack_index_with_byte_range_count L122–130
+ _object_ref_count function async_function _object_ref_count L115–119
+ _push function async_function _push L92–112
+ _sha256_id function function _sha256_id L50–51
+ AsyncMock import import AsyncMock L25–25
+ AsyncSession import import AsyncSession L30–30
+ MagicMock import import MagicMock L25–25
+ MusehubMPackIndex import import MusehubMPackIndex L35–35
+ MusehubObjectRef import import MusehubObjectRef L35–35
+ MusehubRepo import import MusehubRepo L35–35
+ annotations import import annotations L21–21
+ blob_id import import blob_id L33–33
+ build_wire_mpack import import build_wire_mpack L32–32
+ compute_identity_id import import compute_identity_id L34–34
+ compute_repo_id import import compute_repo_id L34–34
+ create_repo import import create_repo L36–36
+ fake_id import import fake_id L33–33
+ func function import func L29–29
+ hashlib import import hashlib L23–23
+ os import import os L24–24
+ patch import import patch L25–25
+ pytest import import pytest L27–27
+ pytest_asyncio import import pytest_asyncio L28–28
+ select import import select L29–29
+ test_ORP1_first_push_writes_object_refs_for_repo_a function async_function test_ORP1_first_push_writes_object_refs_for_repo_a L138–149
+ test_ORP2_repush_same_mpack_writes_object_refs_for_repo_b function async_function test_ORP2_repush_same_mpack_writes_object_refs_for_repo_b L158–180
+ test_ORP3_first_push_writes_mpack_index_byte_ranges function async_function test_ORP3_first_push_writes_mpack_index_byte_ranges L188–199
+ test_ORP4_repush_same_mpack_writes_mpack_index_byte_ranges function async_function test_ORP4_repush_same_mpack_writes_mpack_index_byte_ranges L208–237
+ test_ORP5_object_refs_are_scoped_per_repo function async_function test_ORP5_object_refs_are_scoped_per_repo L245–262

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