gabriel / musehub public
test mpack-index-job feat/fix-object-refs-on-repush #3 / 4
AI Agent gabriel · 98 days ago · Jun 8, 2026 · Diff

test(mpack-index-job): Phase 3 failing test for Bug D — job never writes object_refs

MPIJ-1 (baseline): process_mpack_index_job writes mpack_index byte ranges — PASS MPIJ-2 (Bug D): process_mpack_index_job writes object_refs for repo — FAIL

The job currently reports index_rows=3 but leaves object_refs=0 for the repo because it never calls _upsert_object_refs. Fix lands in Phase 4.

sha256:d8a98ffcade6226a977047fb68396a940db91fa1a2f6590b0e55bb1a0f0d2735 sha
+36 symbols
sha256:0b2673a0e5a776608d301362a72aa99900d5bc33a9f16d01a2915a3b32d4b28d snapshot
+36
symbols added
0
dead code introduced
Semantic Changes 36 symbols
+ _BLOB_A_CONTENT variable variable _BLOB_A_CONTENT L40–40
+ _BLOB_A_OID variable variable _BLOB_A_OID L49–49
+ _BLOB_B_CONTENT variable variable _BLOB_B_CONTENT L41–41
+ _BLOB_B_OID variable variable _BLOB_B_OID L50–50
+ _BLOB_C_CONTENT variable variable _BLOB_C_CONTENT L42–42
+ _BLOB_C_OID variable variable _BLOB_C_OID L51–51
+ _IDENTITY_ID variable variable _IDENTITY_ID L38–38
+ _MPACK_BYTES variable variable _MPACK_BYTES L53–62
+ _MPACK_KEY variable variable _MPACK_KEY L63–63
+ _OWNER variable variable _OWNER L37–37
+ _make_mpack_index_job function async_function _make_mpack_index_job L79–91
+ _make_repo function async_function _make_repo L66–76
+ _mpack_index_byte_range_count function async_function _mpack_index_byte_range_count L109–116
+ _object_ref_count function async_function _object_ref_count L103–106
+ _run_mpack_index_job function async_function _run_mpack_index_job L94–100
+ _sha256_id function function _sha256_id L45–46
+ AsyncMock import import AsyncMock L19–19
+ AsyncSession import import AsyncSession L23–23
+ MagicMock import import MagicMock L19–19
+ MusehubBackgroundJob import import MusehubBackgroundJob L28–28
+ MusehubMPackIndex import import MusehubMPackIndex L29–29
+ MusehubObjectRef import import MusehubObjectRef L29–29
+ annotations import import annotations L16–16
+ blob_id import import blob_id L26–26
+ build_wire_mpack import import build_wire_mpack L25–25
+ compute_identity_id import import compute_identity_id L27–27
+ create_repo import import create_repo L30–30
+ fake_id import import fake_id L26–26
+ func function import func L22–22
+ hashlib import import hashlib L18–18
+ patch import import patch L19–19
+ process_mpack_index_job import import process_mpack_index_job L31–31
+ pytest import import pytest L21–21
+ select import import select L22–22
+ test_MPIJ1_job_writes_mpack_index_byte_ranges function async_function test_MPIJ1_job_writes_mpack_index_byte_ranges L124–132
+ test_MPIJ2_job_writes_object_refs_for_repo function async_function test_MPIJ2_job_writes_object_refs_for_repo L140–159

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