Repository navigation
Skip codegen locks in workspace checks - #1263
Conversation
The workspace protocol walk can see the vocabulary codegen lock just before codegen removes it, causing intermittent NotFound failures in mise check. Exclude this temporary directory from the walk. Extract the manifest walk for deterministic regression tests covering existing and disappearing locks while preserving real manifest discovery and the checker's command-line behavior. Changelog: none Assisted-by: Codex:gpt-6.1-sol
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configuration
📒 Files selected for processing (2)
Included review availability: This review used your included allowance. Your plan provides up to 4 included reviews per hour; 3 remain after this review. 📝 WalkthroughWalkthroughThe workspace protocol check now exposes a package manifest traversal helper, skips codegen lock paths, and runs validation only when invoked as the main module. Tests cover lock-directory exclusion and removal during traversal. ChangesWorkspace protocol check
Priority: ⬇️ Low Estimated code review effort: 2 (Simple) | ~10 minutes Change: Bug fix Merge Risk: ⚪ Minimal · up to This change stops the workspace protocol check from failing intermittently when codegen removes a temporary lock during traversal. Real package manifests are still found, and no merge-blocking risk was identified. 🚥 Pre-merge checks | ✅ 4 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (4 passed)
✨ 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 |
Codecov Report❌ Patch coverage is
... and 2 files with indirect coverage changes 🚀 New features to boost your workflow:
|
mise checkcan fail intermittently when vocab codegen removes .vocab-codegen.lock after the workspace checker discovers it but before it reads the directory. Exclude this temporary lock from traversal so the checker never tries to read it after codegen removes it.Regression tests force the lock to disappear before the checker enters the directory and verify that real package.json files are still found. Both new tests fail without the exclusion. Validated with seven focused Deno tests and
mise run check.