-
Notifications
You must be signed in to change notification settings - Fork 4.9k
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
TestFileWatcher/does_not_emit_events_for_empty_files/emits_a_create_event_once_something_is_written_to_the_empty_file #41209
Comments
Pinging @elastic/elastic-agent-data-plane (Team:Elastic-Agent-Data-Plane) |
I ran the same tests on main today, 1000 times and it fails, but on a different subtest
|
Could this be a timming issue? These tests have a check interval of 10 ms, which seems quite suspicious. |
It could be, I didn't look at the test code, I just reported it as I'm trying to get my PR green on CI and understand what is related and what is unrelated to mu changes. If the test just waits 10ms and checks for the condition, that should be replaces by a |
Got it, thanks. I will see if I can reproduce on my windows machine. |
I managed to reproduce it, using stress makes it a bit easier to reproduce but it still takes a couple thousand runs to manifest:
|
That's a nice tool! |
I'm gonna create a PR to skip those flaky tests and unblock my PR (#41061) and others that might also be affected by them. |
Flaky Test
-count=10
Stack Trace
The text was updated successfully, but these errors were encountered: