-
Notifications
You must be signed in to change notification settings - Fork 308
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix for spurious rebuilds with watchdog>=2.3.0 (#1117)
* fix(watcher): ignore FileOpenedEvents Since watchdog==2.3.0, its InotifyObserver emits events whenever a file is opened. This was causing spurious Lektor rebuilds. * refactor(watcher): optimization: we only care about file events * fix(tests): increase wait for stale events on macOS Under macOS, the FSEventObserver (at least) seems to return events for filesystem changes that happened a bit for the Observer was started. We had a short wait in place to let these stale events go by. It mostly worked, but there have been sporadic spurious failures on the macOS GitHub test runner. Here we increase the wait time, but — so as not to slow tests on other platforms — only perform the wait when running on macOS.
- Loading branch information
Showing
2 changed files
with
212 additions
and
77 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters