chore: Docs and tests#97
Conversation
- Add missing route= parameter in deserialize() so route survives serialization roundtrips - Remove test_intercom_utils.py (imports non-existent module) - Fix docs/index.md to link all new doc files - Fix docs/binary_handlers.md to list only existing callback methods - Fix docs/message_types.md to reference actual module functions instead of non-existent classes Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Coverage improvements: - decorators.py: 0% → 100% - identity.py: 81% → 100% - util.py: 62% → 91% (payload2dict, deprecated wrappers) - message.py: 91% → 95% (payload setter, target_peers, hop data) - client.py: 40% → 56% (callbacks, waiters, event routing, binary) - serialization.py: 64% → 70% (mycroft2bitstring, version handling) Bug fix: add missing Message import in serialization.py (mycroft2bitstring) New test files: - test_decorators.py — full coverage of listener classes and decorators - test_client.py — BinaryDataCallbacks, waiters, client properties Docs: - docs/serialization.md — bitstring wire format reference for cross-language implementors Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
|
Warning Rate limit exceeded
⌛ How to resolve this issue?After the wait time has elapsed, a review can be triggered using the We recommend that you space out your commits to avoid hitting the rate limit. 🚦 How do rate limits work?CodeRabbit enforces hourly rate limits for each developer per organization. Our paid plans have higher rate limits than the trial, open-source and free plans. In all cases, we re-allow further reviews after a brief timeout. Please see our FAQ for further information. ℹ️ Review info⚙️ Run configurationConfiguration used: defaults Review profile: CHILL Plan: Pro Run ID: 📒 Files selected for processing (3)
📝 WalkthroughWalkthroughThis PR adds comprehensive documentation for the hivemind-websocket-client library including client API usage, message types, binary serialization protocol, CLI tool usage, and binary payload handlers. It also introduces extensive unit test coverage for client functionality, message handling, serialization roundtrips, decorators, and utilities. Two minor code changes propagate route data during message deserialization and add a module-level import for Message class. Changes
Estimated code review effort🎯 3 (Moderate) | ⏱️ ~25 minutes Possibly related PRs
Suggested labels
Poem
🚥 Pre-merge checks | ✅ 1 | ❌ 2❌ Failed checks (1 warning, 1 inconclusive)
✅ Passed checks (1 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
Stand by... check results incoming! 📡I've aggregated the results of the automated checks for this PR below. 🔍 LintThe automated report has been generated. 🖨️ ❌ ruff: issues found — see job log 🔒 Security (pip-audit)Looking for any weak links in the supply chain. ⛓️ ✅ No known vulnerabilities found (61 packages scanned). 📊 CoverageIs the code wearing its test-suit? Let's see. 👔 ❌ 49.6% total coverage Files below 80% coverage (12 files)
Full report: download the 📋 Repo HealthScanning for any signs of 'dependency' parasites. 🐛 Latest Version: ✅ 🏷️ Release PreviewThe release preview report is now officially ready. 📁 Current:
✅ PR title follows conventional commit format. 🚀 Release Channel Compatibility Predicted next version:
⚖️ License CheckChecking the pedigree of your dependencies. 🐕 ✅ No license violations found (43 packages). License distribution: 12× MIT License, 6× Apache Software License, 6× MIT, 4× Apache-2.0, 3× BSD-3-Clause, 2× BSD License, 2× ISC License (ISCL), 2× PSF-2.0, +6 more Full breakdown — 43 packages
Copyright (c) 2022 Phil Ewels Permission is hereby granted, free of charge, to any person obtaining a copy The above copyright notice and this permission notice shall be included in all THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR Policy: Apache 2.0 (universal donor). StrongCopyleft / NetworkCopyleft / WeakCopyleft / Other / Error categories fail. MPL allowed. 🔨 Build TestsChecking the calibration of the build environment. ⚖️ ✅ All versions pass
Always here to help you keep things stable. ⚓ |
Summary by CodeRabbit
Documentation
Bug Fixes