Flaky Test
Stack Trace
winlogbeat
[2020-07-09T17:25:27.428Z] FAILURES:
[2020-07-09T17:25:27.428Z] Package: github.com/elastic/beats/v7/winlogbeat/eventlog
[2020-07-09T17:25:27.428Z] Test: TestWindowsEventLogAPIExperimental
[2020-07-09T17:25:27.428Z] ----
[2020-07-09T17:25:27.428Z] Package: github.com/elastic/beats/v7/winlogbeat/eventlog
[2020-07-09T17:25:27.428Z] Test: TestWindowsEventLogAPIExperimental/batch_read_size_config
[2020-07-09T17:25:27.428Z] panic: interface conversion: interface {} is uint16, not wineventlog.hexInt64
[2020-07-09T17:25:27.428Z] C:/Windows/system32/config/systemprofile/.gvm/versions/go1.14.4.windows.386/src/testing/testing.go:940 +0x27c
[2020-07-09T17:25:27.428Z] C:/Windows/system32/config/systemprofile/.gvm/versions/go1.14.4.windows.386/src/testing/testing.go:943 +0x349
[2020-07-09T17:25:27.428Z] C:/Windows/system32/config/systemprofile/.gvm/versions/go1.14.4.windows.386/src/runtime/panic.go:969 +0x119
[2020-07-09T17:25:27.428Z] C:/Users/jenkins/workspace/Beats_beats-windows-mbp_PR-19797/src/github.com/elastic/beats/winlogbeat/sys/wineventlog/renderer.go:211 +0x7d0
[2020-07-09T17:25:27.428Z] C:/Users/jenkins/workspace/Beats_beats-windows-mbp_PR-19797/src/github.com/elastic/beats/winlogbeat/sys/wineventlog/renderer.go:99 +0x47
[2020-07-09T17:25:27.429Z] C:/Users/jenkins/workspace/Beats_beats-windows-mbp_PR-19797/src/github.com/elastic/beats/winlogbeat/eventlog/wineventlog_expirimental.go:191 +0x9e
[2020-07-09T17:25:27.429Z] C:/Users/jenkins/workspace/Beats_beats-windows-mbp_PR-19797/src/github.com/elastic/beats/winlogbeat/eventlog/wineventlog_expirimental.go:160 +0xda
[2020-07-09T17:25:27.429Z] C:/Users/jenkins/workspace/Beats_beats-windows-mbp_PR-19797/src/github.com/elastic/beats/winlogbeat/eventlog/wineventlog_test.go:71 +0x113
[2020-07-09T17:25:27.429Z] C:/Windows/system32/config/systemprofile/.gvm/versions/go1.14.4.windows.386/src/testing/testing.go:991 +0xb4
[2020-07-09T17:25:27.429Z] C:/Windows/system32/config/systemprofile/.gvm/versions/go1.14.4.windows.386/src/testing/testing.go:1042 +0x2ad
[2020-07-09T17:25:27.429Z] ----
[2020-07-09T17:25:27.429Z] Package: github.com/elastic/beats/v7/winlogbeat/sys/wineventlog
[2020-07-09T17:25:27.429Z] Test: TestFormatMessage
[2020-07-09T17:25:27.429Z] ----
[2020-07-09T17:25:27.429Z] Package: github.com/elastic/beats/v7/winlogbeat/sys/wineventlog
[2020-07-09T17:25:27.429Z] Test: TestFormatMessage/getMessageStringFromHandle
[2020-07-09T17:25:27.429Z] ----
[2020-07-09T17:25:27.429Z] Package: github.com/elastic/beats/v7/winlogbeat/sys/wineventlog
[2020-07-09T17:25:27.429Z] Test: TestFormatMessage/getMessageStringFromHandle/custom_values
[2020-07-09T17:25:27.429Z] TestFormatMessage/getMessageStringFromHandle/custom_values: format_message_test.go:63: failed in EvtFormatMessage: Not enough storage is available to complete this operation.
[2020-07-09T17:25:27.429Z] ----
[2020-07-09T17:25:27.429Z] Package: github.com/elastic/beats/v7/winlogbeat/sys/wineventlog
[2020-07-09T17:25:27.429Z] Test: TestFormatMessage/getMessageStringFromMessageID
[2020-07-09T17:25:27.429Z] panic: interface conversion: interface {} is nil, not uint32
[2020-07-09T17:25:27.429Z] C:/Windows/system32/config/systemprofile/.gvm/versions/go1.14.4.windows.386/src/testing/testing.go:940 +0x27c
[2020-07-09T17:25:27.429Z] C:/Windows/system32/config/systemprofile/.gvm/versions/go1.14.4.windows.386/src/testing/testing.go:943 +0x349
[2020-07-09T17:25:27.429Z] C:/Windows/system32/config/systemprofile/.gvm/versions/go1.14.4.windows.386/src/runtime/panic.go:969 +0x119
[2020-07-09T17:25:27.429Z] C:/Users/jenkins/workspace/Beats_beats-windows-mbp_PR-19797/src/github.com/elastic/beats/winlogbeat/sys/wineventlog/publisher_metadata.go:595 +0xf4
[2020-07-09T17:25:27.429Z] C:/Users/jenkins/workspace/Beats_beats-windows-mbp_PR-19797/src/github.com/elastic/beats/winlogbeat/sys/wineventlog/publisher_metadata.go:615 +0x3f
[2020-07-09T17:25:27.429Z] C:/Users/jenkins/workspace/Beats_beats-windows-mbp_PR-19797/src/github.com/elastic/beats/winlogbeat/sys/wineventlog/format_message_test.go:92 +0xd7
[2020-07-09T17:25:27.429Z] C:/Windows/system32/config/systemprofile/.gvm/versions/go1.14.4.windows.386/src/testing/testing.go:991 +0xb4
[2020-07-09T17:25:27.429Z] C:/Windows/system32/config/systemprofile/.gvm/versions/go1.14.4.windows.386/src/testing/testing.go:1042 +0x2ad
[2020-07-09T17:25:27.429Z] ----
[2020-07-09T17:25:27.429Z] SUMMARY:
[2020-07-09T17:25:27.429Z] Fail: 6
[2020-07-09T17:25:27.429Z] Skip: 1
[2020-07-09T17:25:27.429Z] Pass: 42
[2020-07-09T17:25:27.429Z] Packages: 9
[2020-07-09T17:25:27.429Z] Duration: 1m23.3935547s
[2020-07-09T17:25:27.429Z] Coverage Report: C:\Users\jenkins\workspace\Beats_beats-windows-mbp_PR-19797\src\github.com\elastic\beats\winlogbeat\build\TEST-go-unit.html
[2020-07-09T17:25:27.429Z] JUnit Report: C:\Users\jenkins\workspace\Beats_beats-windows-mbp_PR-19797\src\github.com\elastic\beats\winlogbeat\build\TEST-go-unit.xml
[2020-07-09T17:25:27.429Z] Output File: C:\Users\jenkins\workspace\Beats_beats-windows-mbp_PR-19797\src\github.com\elastic\beats\winlogbeat\build\TEST-go-unit.out
[2020-07-09T17:25:27.429Z] >> go test: Unit Test Failed
x-pack\winlogbeat
[2020-07-09T17:20:44.510Z] C:\Users\jenkins\workspace\Beats_beats-windows-mbp_PR-19797\src\github.com\elastic\beats\x-pack\winlogbeat>mage build unitTest
[2020-07-09T17:22:06.745Z] >> build: Building winlogbeat
[2020-07-09T17:23:43.312Z] Generated fields.yml for winlogbeat to C:\Users\jenkins\workspace\Beats_beats-windows-mbp_PR-19797\src\github.com\elastic\beats\x-pack\winlogbeat\build\fields\fields.yml
[2020-07-09T17:23:43.312Z] Generated fields.yml for winlogbeat to C:\Users\jenkins\workspace\Beats_beats-windows-mbp_PR-19797\src\github.com\elastic\beats\x-pack\winlogbeat\build\fields\fields.all.yml
[2020-07-09T17:23:43.312Z] >> go test: Unit Testing
[2020-07-09T17:24:51.156Z] FAILURES:
[2020-07-09T17:24:51.156Z] Package: github.com/elastic/beats/v7/x-pack/winlogbeat/module/sysmon/test
[2020-07-09T17:24:51.156Z] Test: TestSysmon
[2020-07-09T17:24:51.156Z] ----
[2020-07-09T17:24:51.156Z] Package: github.com/elastic/beats/v7/x-pack/winlogbeat/module/sysmon/test
[2020-07-09T17:24:51.156Z] Test: TestSysmon/sysmon-10.2-dns.evtx
[2020-07-09T17:24:51.156Z] TestSysmon/sysmon-10.2-dns.evtx: testing_windows.go:70: Expected and actual are different:
[2020-07-09T17:24:51.156Z] --- Expected
[2020-07-09T17:24:51.156Z] +++ Actual
[2020-07-09T17:24:51.156Z] @@ -74,6 +74,3 @@
[2020-07-09T17:24:51.156Z] "user": {
[2020-07-09T17:24:51.156Z] - "domain": "NT AUTHORITY",
[2020-07-09T17:24:51.156Z] - "identifier": "S-1-5-18",
[2020-07-09T17:24:51.156Z] - "name": "SYSTEM",
[2020-07-09T17:24:51.156Z] - "type": "Well Known Group"
[2020-07-09T17:24:51.156Z] + "identifier": "S-1-5-18"
[2020-07-09T17:24:51.156Z] },
...
[2020-07-09T17:24:51.180Z] ----
[2020-07-09T17:24:51.180Z] SUMMARY:
[2020-07-09T17:24:51.180Z] Fail: 5
[2020-07-09T17:24:51.180Z] Skip: 0
[2020-07-09T17:24:51.180Z] Pass: 85
[2020-07-09T17:24:51.180Z] Packages: 2
[2020-07-09T17:24:51.180Z] Duration: 1m6.4873047s
[2020-07-09T17:24:51.180Z] Coverage Report: C:\Users\jenkins\workspace\Beats_beats-windows-mbp_PR-19797\src\github.com\elastic\beats\x-pack\winlogbeat\build\TEST-go-unit.html
[2020-07-09T17:24:51.180Z] JUnit Report: C:\Users\jenkins\workspace\Beats_beats-windows-mbp_PR-19797\src\github.com\elastic\beats\x-pack\winlogbeat\build\TEST-go-unit.xml
[2020-07-09T17:24:51.180Z] Output File: C:\Users\jenkins\workspace\Beats_beats-windows-mbp_PR-19797\src\github.com\elastic\beats\x-pack\winlogbeat\build\TEST-go-unit.out
[2020-07-09T17:24:51.180Z] >> go test: Unit Test Failed
[2020-07-09T17:24:51.180Z] Error: go test failed: 5 test failures
Issues
Some of the test failures were already reported in #19798, so it seems there are a few more for Windows7.
Flaky Test
beats/x-pack/winlogbeat/module/sysmon/test/sysmon_windows_test.go
Line 25 in 57c4280
beats/winlogbeat/sys/wineventlog/format_message_test.go
Line 29 in 57c4280
beats/winlogbeat/eventlog/wineventlog_test.go
Line 42 in f91c96f
Stack Trace
winlogbeat
x-pack\winlogbeat
Issues
Some of the test failures were already reported in #19798, so it seems there are a few more for Windows7.