feat
BREAKING
task/clone-partial-exit-code
#1 / 1
feat: add PARTIAL exit code (6) for clone with corrupt objects
- ExitCode.PARTIAL (6) added to muse/core/errors.py — documents the completed-with-skips contract distinct from INTERNAL_ERROR (3) - clone: count skipped objects in _on_object; raise SystemExit(PARTIAL) when any are skipped - _restore_working_tree: catch RuntimeError from apply_manifest when objects are missing (partial clone leaves some objects unwritten) - _CloneJson: add skipped_objects field to JSON envelope - tests/test_clone_partial.py: TDD — 3 tests covering exit code, object write correctness, and JSON skipped_objects count
sha256:0c3b9e5389ee64657abd3917d383b9b717ebe4bda029fa1e993a603c3f8f22c6
sha
+23
~4
symbols
sha256:91680d67d25d4e4dfffe67c25f343d50a8dbf71884adf057d0decc2bddd70542
snapshot
+23
symbols added
~4
symbols modified
0
dead code introduced
Semantic Changes
27 symbols
+
test_exit_code_is_partial_when_objects_skipped
method
method test_exit_code_is_partial_when_objects_skipped L134–146
+
test_good_object_is_written_despite_corrupt_sibling
method
method test_good_object_is_written_despite_corrupt_sibling L148–166
+
test_json_envelope_includes_skipped_objects_count
method
method test_json_envelope_includes_skipped_objects_count L168–184
~
ExitCode
← Older
Oldest on task/clone-partial-exit-code
All commits
Newer →
Latest on task/clone-partial-exit-code
0 comments
To add a comment, use the Muse CLI:
muse hub commit comment sha256:0c3b9e5389ee64657abd3917d383b9b717ebe4bda029fa1e993a603c3f8f22c6 --body "your comment"
No comments yet. Be the first to start the discussion.