gabriel / musehub public
fix tests task/mwp-cleanup #4 / 5
AI Agent gabriel · 55 days ago · Apr 24, 2026 · Diff

fix(tests): remove broken grpc_frame/GRPC_CONTENT_TYPE imports; fix frame counts

test_background_jobs.py and test_wire_oc_server.py imported grpc_frame and GRPC_CONTENT_TYPE from muse.core.mpack which no longer exist — both files crashed at import time (ImportError), silently hiding the test failures.

Changes: - Remove grpc_frame from imports; _wrap now calls _fw.wrap() directly - Remove GRPC_CONTENT_TYPE import; use wire_headers Content-Type as-is - _collect_frames: switch from gRPC 5-byte prefix parsing to msgpack.Unpacker - _e_frame: add n_objects/n_commits params so E frame echoes H frame counts - test_background_jobs: empty snapshot manifest (test is about job enqueueing, not manifest content; non-empty manifest triggered object-existence rejection)

Zero live gRPC references remain across musehub and muse.

sha256:cf3b5706850023a676751e8f3bd723a0c64a3f3228ac7921e5be5a3760237eec sha
sha256:9cefcb9d08e67ca819c6b42ff9da59d17ca98cd1b82f6de34af76a27f46fd22d snapshot

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