Skip to content

Update watchdog dependency #454

Open
danielhollas wants to merge 3 commits intoaiidalab:mainfrom
danielhollas:update-watchdog
Open

Update watchdog dependency #454
danielhollas wants to merge 3 commits intoaiidalab:mainfrom
danielhollas:update-watchdog

Conversation

@danielhollas
Copy link
Contributor

@danielhollas danielhollas commented Aug 28, 2024

Version 5.0 was released recently, see changelog. We want to move to this since the library is now fully typed, which will help us towards #363.

There is one change in the code to ignore the newly added EVENT_TYPE_CLOSED_NO_WRITE which we do not care about, as written in the commit message:

EVENT_TYPE_CLOSED_NO_WRITE was added in watchdog=5.0
Citing from the inotify(7) manpage,
IN_CLOSE_NOWRITE is fired when a file
that was opened in read-only mode was closed.
Since we only watch for events that modify files
inside the app git repo, we can ignore this event.

@codecov
Copy link

codecov bot commented Aug 28, 2024

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 72.15%. Comparing base (beff2f1) to head (29cfaf8).

Additional details and impacted files
@@           Coverage Diff           @@
##             main     #454   +/-   ##
=======================================
  Coverage   72.15%   72.15%           
=======================================
  Files          18       18           
  Lines        1616     1616           
=======================================
  Hits         1166     1166           
  Misses        450      450           
Flag Coverage Δ
py-3.11 72.15% <100.00%> (ø)
py-3.12 72.15% <100.00%> (ø)
py-3.9 72.15% <100.00%> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@danielhollas
Copy link
Contributor Author

I want to give it a manual test before merging, but otherwise should be ready.
I'll merge after release of the new version.

EVENT_TYPE_CLOSED_NO_WRITE was added in watchdog=5.0
Citing from the inotify(7) manpage:
  IN_CLOSE_NOWRITE is fired when a file
  that was opened in read-only mode was closed.
Since we only watch for events that modify files
inside the app git repo, we can ignore this event.
@danielhollas danielhollas changed the title Update watchdog Update watchdog dependency Mar 26, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants