gabriel / muse public
fix BREAKING dev
AI Agent gabriel · 141 days ago · Apr 30, 2026 · Diff

fix: repo_id propagation, compression guard, streaming push, object integrity test

- Add repo_id to CommitRecord/TagRecord in all remaining test helpers (test_code_stage, test_commit_from_dict_timestamp_loss, test_commit_record_committed_at_corruption, test_core_bisect, test_core_blame, test_core_coverage_gaps, test_core_doc_extractor, test_core_doc_history, test_core_gc, test_core_graph, test_core_merge_engine, test_core_pack, test_merge_base_supercharge, test_mpack_oserror_integrity, test_cmd_release_coord, test_cmd_remaining, test_cmd_verify_tag) - Fix mangled compute_commit_id indentation in all affected helpers - Restore profitability check in compute_delta (raises ValueError when delta >= zlib(target)); fix docstring; push path already catches it - Restore client.stream()+aiter_bytes() in HttpTransport.push_stream_coro so server P frames print to stderr in real time; retire stale P3 source-inspection test that was enforcing the buffered client.post() - Add tests/test_push_object_integrity.py: push must abort with ValueError when a snapshot-referenced object is missing from storage (no promisor remote configured) - Fix typing_audit violation: return_object in test_push_object_integrity

sha256:157097c28a6eafb75a79f4a6b76bc60405a07fb9375421d26d0d83a37f857933 sha
+31 ~39 −7 symbols
sha256:68fe2f7420c63076f662eb4eb649b1845aa5a4afee7ef53013478c2d9c9d0953 snapshot
+31
symbols added
~39
symbols modified
−7
symbols removed
0
dead code introduced
Semantic Changes 77 symbols
~ tests/test_push_object_integrity.py .py 24 symbols added
+ _REMOTE_URL variable variable _REMOTE_URL L29–29
+ _REPO_ID variable variable _REPO_ID L28–28
+ _bare_repo function function _bare_repo L37–49
+ _make_commit function function _make_commit L52–85
+ _mock_transport function function _mock_transport L88–100
+ AsyncMock import import AsyncMock L17–17
+ CommitRecord import import CommitRecord L25–25
+ MagicMock import import MagicMock L17–17
+ PushResult import import PushResult L23–23
+ RemoteInfo import import RemoteInfo L23–23
+ SnapshotRecord import import SnapshotRecord L25–25
+ __version__ import import __version__ L21–21
+ annotations import import annotations L12–12
+ blob_id import import blob_id L26–26
+ compute_commit_id import import compute_commit_id L24–24
+ compute_snapshot_id import import compute_snapshot_id L24–24
+ datetime import import datetime L14–14
+ json import import json L15–15
+ pathlib import import pathlib L16–16
+ pytest import import pytest L19–19
+ write_commit import import write_commit L25–25
+ write_object import import write_object L22–22
+ write_snapshot import import write_snapshot L25–25
+ test_i2_external_ref_in_db_but_missing_from_storage_is_rejected function function test_i2_external_ref_in_db_but_missing_from_storage_is_rejected L108–139
~ muse/core/compression.py .py 1 symbol modified
~ tests/test_cmd_release_coord.py .py 7 symbols added, 7 symbols removed, 7 symbols modified
test_non_uuid_string_rejected method method test_non_uuid_string_rejected L199–202
test_invalid_uuid_exits_user_error method method test_invalid_uuid_exits_user_error L588–592
test_not_found_uuid_exits_not_found method method test_not_found_uuid_exits_not_found L594–599
test_not_found_uuid_json_status method method test_not_found_uuid_json_status L601–608
test_invalid_uuid_exits_nonzero method method test_invalid_uuid_exits_nonzero L260–264
test_not_found_uuid_exits_nonzero method method test_not_found_uuid_exits_nonzero L251–258
uuid import import uuid L57–57
+ test_non_sha256_string_rejected method method test_non_sha256_string_rejected L199–202
+ test_invalid_id_exits_user_error method method test_invalid_id_exits_user_error L588–592
+ test_not_found_id_exits_not_found method method test_not_found_id_exits_not_found L594–599
+ test_not_found_id_json_status method method test_not_found_id_json_status L601–608
+ test_invalid_id_exits_nonzero method method test_invalid_id_exits_nonzero L260–264
+ test_not_found_id_exits_nonzero method method test_not_found_id_exits_nonzero L251–258
+ fake_id import import fake_id L57–57
~ tests/test_cmd_remaining.py .py 1 symbol modified
~ tests/test_cmd_verify_tag.py .py 1 symbol modified
~ tests/test_core_bisect.py .py 1 symbol modified
~ tests/test_core_blame.py .py 1 symbol modified
~ tests/test_core_gc.py .py 1 symbol modified
~ tests/test_core_merge_engine.py .py 1 symbol modified
~ tests/test_merge_base_supercharge.py .py 1 symbol modified
← Older Oldest on dev
All commits
Newer → Latest on dev

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