elastic / beats

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

[flaky-test] Auditbeat file_integrity TestConfig failing on Windows 2022 with Go 1.22 #40087

Open andrewkroh opened 2 months ago

andrewkroh commented 2 months ago

Flaky Test

Stack Trace

=== Failed
=== FAIL: auditbeat/module/file_integrity TestConfig (0.00s)
    config_test.go:57:
            Error Trace:    C:/buildkite-agent/builds/bk-agent-prod-gcp-1720016509040597440/elastic/auditbeat/auditbeat/module/file_integrity/config_test.go:57
            Error:          Not equal:
                            expected: "\\.DS_Store(?-m:$)"
                            actual  : "(?-m:\\.DS_Store$)"
                            Diff:
                            --- Expected
                            +++ Actual
                            @@ -1 +1 @@
                            -\.DS_Store(?-m:$)
                            +(?-m:\.DS_Store$)
            Test:           TestConfig
    config_test.go:58:
            Error Trace:    C:/buildkite-agent/builds/bk-agent-prod-gcp-1720016509040597440/elastic/auditbeat/auditbeat/module/file_integrity/config_test.go:58
            Error:          Not equal:
                            expected: "\\.swp(?-m:$)"
                            actual  : "(?-m:\\.swp$)"
                            Diff:
                            --- Expected
                            +++ Actual
                            @@ -1 +1 @@
                            -\.swp(?-m:$)
                            +(?-m:\.swp$)
            Test:           TestConfig
    config_test.go:60:
            Error Trace:    C:/buildkite-agent/builds/bk-agent-prod-gcp-1720016509040597440/elastic/auditbeat/auditbeat/module/file_integrity/config_test.go:60
            Error:          Not equal:
                            expected: "\\.ssh/(?-m:$)"
                            actual  : "(?-m:\\.ssh/$)"
                            Diff:
                            --- Expected
                            +++ Actual
                            @@ -1 +1 @@
                            -\.ssh/(?-m:$)
                            +(?-m:\.ssh/$)
            Test:           TestConfig
elasticmachine commented 2 months ago

Pinging @elastic/sec-linux-platform (Team:Security-Linux Platform)

andrewkroh commented 2 months ago

Blake has addressed these on his pr branch with

https://github.com/elastic/beats/pull/40082/commits/88964ad9dbf905f055cf31cdf5485746367824ce

https://github.com/elastic/beats/pull/40082/commits/9187a1c7c41f43468566ed486597f02358f47758