Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Pin watchdog at a version before 0.10.4. #344

Merged
merged 1 commit into from
May 21, 2021
Merged

Pin watchdog at a version before 0.10.4. #344

merged 1 commit into from
May 21, 2021

Conversation

tomprince
Copy link
Contributor

It looks like watchdog made a change to the exact events emitted on macOS,
in a way that cause our mapping to inotify-like flags + our tests to start failing.
I'm guessing this wasn't noticed, since we weren't running macOS tests on PRs.

This is probably due to gorakhargosh/watchdog#680, but
I suspect the issue is that we are getting more events than we expect, and the
first one doesn't match the one we test for.

Since we aren't currently using this code, I'm going to pin to a version that
passes the tests, until we get around to using this code.

It looks like watchdog made a change to the exact events emitted on macOS,
in a way that cause our mapping to inotify-like flags + our tests to start failing.
I'm guessing this wasn't noticed, since we weren't running macOS tests on PRs.

This is probably due to gorakhargosh/watchdog#680, but
I suspect the issue is that we are getting more events than we expect, and the
first one doesn't match the one we test for.

Since we aren't currently using this code, I'm going to pin to a version that
passes the tests, until we get around to using this code.
@codecov
Copy link

codecov bot commented May 21, 2021

Codecov Report

Merging #344 (c297944) into master (8df06d1) will increase coverage by 4.51%.
The diff coverage is n/a.

Impacted file tree graph

@@            Coverage Diff             @@
##           master     #344      +/-   ##
==========================================
+ Coverage   84.09%   88.60%   +4.51%     
==========================================
  Files          31       31              
  Lines        2326     2326              
  Branches      276      276              
==========================================
+ Hits         1956     2061     +105     
+ Misses        295      182     -113     
- Partials       75       83       +8     
Flag Coverage Δ
integration 49.22% <ø> (ø)

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

Impacted Files Coverage Δ
src/magic_folder/uploader.py 97.58% <0.00%> (-1.62%) ⬇️
src/magic_folder/util/eliotutil.py 88.39% <0.00%> (ø)
src/magic_folder/magic_folder.py 81.81% <0.00%> (+1.81%) ⬆️
src/magic_folder/util/fake_inotify.py 81.63% <0.00%> (+10.20%) ⬆️
src/magic_folder/watchdog/inotify.py 84.68% <0.00%> (+84.68%) ⬆️
src/magic_folder/watchdog/_watchdog_541.py 85.71% <0.00%> (+85.71%) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 8df06d1...c297944. Read the comment docs.

@tomprince tomprince merged commit 73e050a into tahoe-lafs:master May 21, 2021
@tomprince tomprince deleted the macos-test-fix branch May 21, 2021 03:28
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.

None yet

1 participant