-
-
Notifications
You must be signed in to change notification settings - Fork 704
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
Seems broken on PyPy + Windows #792
Comments
Well, PyPy is incredibly slow on Windows 😮 PyPy is known to be slow with To be complete, the old CI was testing PyPy on GNU/Linux only, it was never tested on Windows. |
I don't think it's right to assume that the tests fail because they are slow. I would assume the opposite - that they are slow only because they fail (with the symptom being a timeout). Some tests succeed only occasionally, and when they do, they're very fast then. |
So I added a sleep here diff --git a/tests/test_emitter.py b/tests/test_emitter.py
index 708a0378b..f44aff602 100644
--- a/tests/test_emitter.py
+++ b/tests/test_emitter.py
@@ -88,6 +88,7 @@ def start_watching(path=None, use_full_emitter=False, recursive=True):
emitter.suppress_history = True
emitter.start()
+ time.sleep(0.01)
def rerun_filter(exc, *args): And it makes the tests pass just fine and quickly. What this shows us is that
|
Forgot CI link with passing tests: https://github.com/oprypin/watchdog/runs/2549604801?check_suite_focus=true |
I stand corrected, thanks for the investigation. |
Uh sorry, what I have there is not a fix. The library really has a flaw, and adding a sleep into tests would only conceal it. |
The test fix may still be revelant for later though. |
Done with 50af6eb. |
I found that this delay is a general issue on Windows. There is always a chance that events right after I am presenting 2 runs of unittests (not of watchdog but of some other project using watchdog) The only difference between the two runs is the added sleeps: Without sleeps, on Windows it fails 13 out of 200 times (total over all versions): https://github.com/oprypin/mkdocs/actions/runs/857713565 |
I tried to apply "watchdog" to a project here: mkdocs/mkdocs#2385
It works fine for everything, but on Windows PyPy3.6 the watches seem to silently produce no events.
Then I saw that dbc5689 kinda just removed PyPy from CI.
I launched a CI run with PyPy added back: https://github.com/oprypin/watchdog/actions/runs/825872726
And indeed, watchdog's own tests are failing just a well.
So, is PyPy supposed to be supported still?
The text was updated successfully, but these errors were encountered: