Repository navigation
Conversation
…safe) On NFS4 filesystems, FileUtils.rm_r(dir) can fail with Errno::ENOTEMPTY because file deletions haven't been flushed from the NFS client cache before the final rmdir. Delete directory *contents* via Dir.glob instead—matching the pattern already used by video.rb and presentation.rb. Co-Authored-By: Claude Opus 4.6 (1M context) <[email protected]>
WalkthroughTwo publish scripts were modified to alter their cleanup operations. The Estimated code review effort🎯 1 (Trivial) | ⏱️ ~3 minutes 🚥 Pre-merge checks | ✅ 3✅ Passed checks (3 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches🧪 Generate unit tests (beta)
📝 Coding Plan
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 Tip CodeRabbit can generate a title for your PR based on the changes with custom instructions.Set the |
|
✅ Automated tests have passed! |
|
The cleanup needs to delete the directories themselves. "rm -r" should work on an NFS directory tree, the "client cache" explanation makes no sense. The usual reason for a directory deletion failing is that there is an open file within the directory which has resulted in the NFS server creating a special hidden file to keep the directory open. Perhaps somewhere earlier in the recording scripts a file is opened but never closed? |
|
From a quick inspection, I think there is a leaked open file in the target directory on which might be the cause of the issues on NFS. There are likely similar problems with the other scripts. |
b6c0c5c to
d321785
Compare
|
This pull request has conflicts ☹ |
|
Related: #25106 forcing the removal. |
|
Closed via #25952 in BBB 4.0. Thank you! |



Summary
FileUtils.rm_r(dir)withFileUtils.rm_r(Dir.glob("#{dir}/*"))in notes.rb and podcast.rb publish scriptsrmdircan fail withErrno::ENOTEMPTYwhen file deletions haven't been flushed from the NFS client cache; deleting contents instead of the directory itself avoids thispresentation.rbTest plan
random-8987579published successfully with noErrno::ENOTEMPTY🤖 Generated with Claude Code