elastic / beats

:tropical_fish: Beats - Lightweight shippers for Elasticsearch & Logstash
https://www.elastic.co/products/beats
Other
12.15k stars 4.91k forks source link

[Flaky Test] filebeat/input/filestream TestFileWatcher on Windows #37998

Open andrewkroh opened 7 months ago

andrewkroh commented 7 months ago

Flaky Test

Stack Trace

=== Failed
=== FAIL: filebeat/input/filestream TestFileWatcher/does_not_emit_events_for_empty_files/issues_a_warning_in_logs (0.10s)
    fswatch_test.go:282:
            Error Trace:    C:/buildkite-agent/builds/bk-agent-prod-gcp-1707824088986301277/elastic/filebeat/filebeat/input/filestream/fswatch_test.go:282
            Error:          Condition never satisfied
            Test:           TestFileWatcher/does_not_emit_events_for_empty_files/issues_a_warning_in_logs
            Messages:       required a warning message "file \"C:\\\\Users\\\\buildkite\\\\AppData\\\\Local\\\\Temp\\\\TestFileWatcherdoes_not_emit_events_for_empty_files3183456359\\\\001\\\\created.log\" has no content yet, skipping" but got ""
=== FAIL: filebeat/input/filestream TestFileWatcher/does_not_emit_events_for_empty_files/emits_a_create_event_once_something_is_written_to_the_empty_file (0.00s)
    fswatch_test.go:305:
            Error Trace:    C:/buildkite-agent/builds/bk-agent-prod-gcp-1707824088986301277/elastic/filebeat/filebeat/input/filestream/fswatch_test.go:919
                                        C:/buildkite-agent/builds/bk-agent-prod-gcp-1707824088986301277/elastic/filebeat/filebeat/input/filestream/fswatch_test.go:305
            Error:          Not equal:
                            expected: "C:\\Users\\buildkite\\AppData\\Local\\Temp\\TestFileWatcherdoes_not_emit_events_for_empty_files3183456359\\001\\created.log"
                            actual  : ""
                            Diff:
                            --- Expected
                            +++ Actual
                            @@ -1 +1 @@
                            -C:\Users\buildkite\AppData\Local\Temp\TestFileWatcherdoes_not_emit_events_for_empty_files3183456359\001\created.log
                            +
            Test:           TestFileWatcher/does_not_emit_events_for_empty_files/emits_a_create_event_once_something_is_written_to_the_empty_file
            Messages:       NewPath
=== FAIL: filebeat/input/filestream TestFileWatcher/does_not_emit_events_for_empty_files (0.25s)
=== FAIL: filebeat/input/filestream TestFileWatcher (2.05s)
elasticmachine commented 7 months ago

Pinging @elastic/elastic-agent-data-plane (Team:Elastic-Agent-Data-Plane)