test(persistence): cfg(unix)-gate the dir-lost latch unit test — Windows Check red on main#370
Conversation
…ows Check red on main Windows Check (main-push-only, PR-invisible) failed 3/3 tries on test_dir_lost_latches_pauses_and_self_heals after #369 merged: the non-unix query_free_bytes stub always returns Ok, so the dir-lost latch never engages on Windows BY DESIGN — the test's dir_lost() assertion can't hold there. Gate the latch-behavior test with cfg(unix); the disarmed-guard sibling stays cross-platform (its expectations hold under the stub). Same Windows-gate treatment the integration suite already had (#![cfg(unix)]). author: Tin Dang <tindang.ht97@gmail.com>
Qodo reviews are paused for this user.Troubleshooting steps vary by plan Learn more → On a Teams plan? Using GitHub Enterprise Server, GitLab Self-Managed, or Bitbucket Data Center? |
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: defaults Review profile: CHILL Plan: Pro Run ID: 📒 Files selected for processing (2)
📝 WalkthroughWalkthroughThe directory-lost latch unit test is now gated to Unix platforms, with comments explaining the non-Unix stub behavior. The changelog documents the Unix-only latch behavior and test configuration. ChangesDirectory-lost latch platform gating
Estimated code review effort: 1 (Trivial) | ~2 minutes Suggested reviewers: 🚥 Pre-merge checks | ✅ 4 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (4 passed)
✨ Finishing Touches📝 Generate docstrings
🧪 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 |
Windows Check (main-push-only, so invisible on PR #369) failed deterministically (3/3 tries) on
test_dir_lost_latches_pauses_and_self_heals: the non-unixquery_free_bytesstub always returnsOk, so the dir-lost latch never engages on Windows by design — the test'sdir_lost()assertion cannot hold there. This gates the latch-behavior unit test withcfg(unix), matching the integration suite's existing#![cfg(unix)]. The disarmed-guard sibling test stays cross-platform (its expectations hold under the stub). Run: https://github.com/pilotspace/moon/actions/runs/29560815512Summary by CodeRabbit
Bug Fixes
Documentation