Repository navigation
test(l1): pin verified-msgpack refusals and fix stale comments (LAB-11867) - #665
Conversation
…mment - wrapper.py: the L1 hit site's plaintext branch comment now says an encrypted handler refuses a swapped entry as SuspiciousCacheEntryError - cache_handler.py: drop two noqa SLF001 markers; SLF is not selected - tests: pin every refusal message per handler row, assert the frame name list matches _frames(), drop reset_settings calls the root conftest already makes, and re-wrap a broken comment block
Code Review Completed! 🔥The code review was successfully completed based on your current configurations. Kody Guide: Usage and ConfigurationInteracting with Kody
Providing Context (Files & MCPs)Add these hints in your PR description (or a comment) to unlock deeper checks:
Current Kody ConfigurationReview OptionsThe following review options are enabled or disabled:
|
Summary by CodeRabbit
WalkthroughThis change removes two lint suppressions from verified MessagePack calls, clarifies the L1 swapped-entry comment, and updates tests for handler refusal errors, frame-name coverage, and fixture setup. ChangesVerified MessagePack L1 checks
Priority: Estimated code review effort: 2 (Simple) | ~10 minutes Change: Other Possibly related PRs
Suggested reviewers: Merge Risk:
|
Codecov Report✅ All modified and coverable lines are covered by tests. 📢 Thoughts on this report? Let us know! |
Instruction budget: PASSHead
A path fails at +1% or more against the base (+2% for |
Test-and-comment follow-up to the L1 verified-MessagePack change. No executable
src/line changes.decorators/wrapper.py: the comment on the L1 hit site's plaintext branch said every swapped-in entry fails as a corrupt frame. An encrypted handler refuses it asSuspiciousCacheEntryError; the comment now says so.cache_handler.py: drop two# noqa: SLF001markers.SLFis not in the ruffselectlist, so they suppressed nothing. The# type: ignore[union-attr]markers stay.tests/unit/test_l1_verified_msgpack.py:pytest.raises(..., match=...), the encryptedSuspiciousCacheEntryErrorrow included;set(_frames()) == set(_FRAME_NAMES), so a frame added to_frames()alone fails instead of silently skipping the parity matrix (checked by adding a key to_frames()only: the assert fails);reset_settings(); the root conftest already brackets every test with it;Verification:
ruff check,ruff format --check, andpytest tests/unit/test_l1_verified_msgpack.py(36 passed) both with and withoutCACHEKIT_MASTER_KEYexported.Closes LAB-11867