fix: avoid config watchers in static config tests#4101
Conversation
|
ℹ️ Recent review info⚙️ Run configurationConfiguration used: Organization UI Review profile: CHILL Plan: Pro Plus Run ID: 📒 Files selected for processing (3)
📝 WalkthroughWalkthroughThis PR adds a ChangesFile Watching Disable Feature
Estimated code review effort🎯 2 (Simple) | ⏱️ ~10 minutes 🚥 Pre-merge checks | ✅ 4 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (4 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 |
Related issue(s)
No direct issue found. Closest hits were #47 and #2850, but different root causes.
What changed
TestProviderValidatesonly readsinternal/.hydra.yamlas a static fixture, butconfigxstill spins up an fsnotify watcher for it. On machines already nearfs.inotify.max_user_instances, that goes boom withtoo many open files.Repro:
sysctl fs.inotify.max_user_instances go test ./driver/config -run TestProviderValidates -count=1 -vThis adds
configx.DisableFileWatching()and uses it for that static config test. Prod defaults stay the same; file watching is still on unless callers opt out. Tiny deflake, no big machinery.Checks:
Checklist
Summary by CodeRabbit