gabriel / musehub public
fix task/test-suite-fixes #5 / 12
AI Agent gabriel · 148 days ago · Apr 27, 2026 · Diff

fix: compute content-addressed branch_id and commit_id in test_merge_proposals.py

_branch_with_commit helper used uuid.uuid4().hex (truncated, not sha256) for commit_id and omitted branch_id entirely, causing NOT NULL violations. Replace with fake_id() for commit_id and compute_branch_id() for branch_id.

sha256:9c5e14707d1a5c4868e44246143fd02f5dda43be881470d997d193d6546590d4 sha
+2 ~3 symbols
sha256:af8d62a0f2cc9cbc34156846ac03cf6ce4fd2b18c59ef3011c211162717536cf snapshot
+2
symbols added
~3
symbols modified
0
dead code introduced
Semantic Changes 5 symbols
~ tests/test_merge_proposals.py .py 2 symbols added, 3 symbols modified
+ compute_branch_id import import compute_branch_id L49–49
+ fake_id import import fake_id L48–48

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