Skip to content
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

[auditbeat][6.8][windows] TestEventReader #21958

Closed
v1v opened this issue Oct 19, 2020 · 4 comments
Closed

[auditbeat][6.8][windows] TestEventReader #21958

v1v opened this issue Oct 19, 2020 · 4 comments
Labels
Auditbeat flaky-test Unstable or unreliable test cases. Stalled

Comments

@v1v
Copy link
Member

v1v commented Oct 19, 2020

Flaky Test

Stack Trace

11:19:52 Error: go test failed: 2 test failures
11:19:52 Package: github.com/elastic/beats/auditbeat/module/file_integrity
11:19:52 Test:    TestEventReader
11:19:52 ----
11:19:52 Package: github.com/elastic/beats/auditbeat/module/file_integrity
11:19:52 Test:    TestEventReader/deleted
11:19:52 eventreader_test.go:316: {RootFields:null ModuleFields:null MetricSetFields:{"event":{"action":["updated"]},"file":{"ctime":"2020-10-14T10:19:37.3569218Z","inode":"844424930392168","mtime":"2020-10-14T10:19:37.3608281Z","owner":"BUILTIN\\Administrators","path":"C:\\Users\\jenkins\\AppData\\Local\\Temp\\audit828769329\\test2.txt","size":12,"type":"file","uid":"S-1-5-32-544"}} Index: ID: Namespace: Timestamp:2020-10-14 10:19:37.3647343 +0000 UTC Error:<nil> Host: Took:0s}
11:19:52 eventreader_test.go:174: 
11:19:52 		Error Trace:	eventreader_test.go:174
11:19:52 		Error:      	Not equal: 
11:19:52 		            	expected: int(4)
11:19:52 		            	actual  : file_integrity.Action(0x0)
11:19:52 		Test:       	TestEventReader/deleted
11:19:52 ----
11:19:52 SUMMARY:
11:19:52   Fail:     2
11:19:52   Skip:     4
11:19:52   Pass:     55
11:19:52   Packages: 3
11:19:52   Duration: 18.1328125s
11:19:52   Coverage Report: C:\Users\jenkins\workspace\elastic+beats+6.8+multijob-windows\beat\auditbeat\label\windows\src\github.com\elastic\beats\auditbeat\build\TEST-go-unit.html
11:19:52   JUnit Report:    C:\Users\jenkins\workspace\elastic+beats+6.8+multijob-windows\beat\auditbeat\label\windows\src\github.com\elastic\beats\auditbeat\build\TEST-go-unit.xml
11:19:52   Output File:     C:\Users\jenkins\workspace\elastic+beats+6.8+multijob-windows\beat\auditbeat\label\windows\src\github.com\elastic\beats\auditbeat\build\TEST-go-unit.out
11:19:52 >> go test: Unit Test Failed
11:19:52 mage goTestUnit FAILURE
11:19:52 At C:\Users\jenkins\workspace\elastic+beats+6.8+multijob-windows\beat\auditbeat
11:19:52 \label\windows\src\github.com\elastic\beats\dev-tools\jenkins_ci.ps1:13 char:13
11:19:52 +             throw $errorMessage
11:19:52 +             ~~~~~~~~~~~~~~~~~~~
11:19:52     + CategoryInfo          : OperationStopped: (mage goTestUnit FAILURE:Strin 
11:19:52    g) [], RuntimeException
11:19:52     + FullyQualifiedErrorId : mage goTestUnit FAILURE
11:19:52  
11:19:52 runbld>>> <<<<<<<<<<<< SCRIPT EXECUTION END <<<<<<<<<<<<
@v1v v1v added Auditbeat flaky-test Unstable or unreliable test cases. labels Oct 19, 2020
@botelastic botelastic bot added the needs_team Indicates that the issue/PR needs a Team:* label label Oct 19, 2020
@kvch kvch added the Team:SIEM label Oct 19, 2020
@elasticmachine
Copy link
Collaborator

Pinging @elastic/siem (Team:SIEM)

@botelastic botelastic bot removed the needs_team Indicates that the issue/PR needs a Team:* label label Oct 19, 2020
v1v added a commit to v1v/beats that referenced this issue Oct 22, 2020
@v1v
Copy link
Member Author

v1v commented Oct 29, 2020

It also fails for the 2.0 pipeline

mage fields build goTestUnit
— auditbeat-windows-windows-2008-r2 - mage fields build goTestUnit
47s
[2020-10-22T14:39:53.133Z] 

[2020-10-22T14:39:53.133Z] C:\Users\jenkins\workspace\Beats_beats_PR-21859\src\github.com\elastic\beats\auditbeat>mage fields build goTestUnit 

[2020-10-22T14:39:59.791Z] Generated fields.yml for auditbeat to C:\Users\jenkins\workspace\Beats_beats_PR-21859\src\github.com\elastic\beats\auditbeat\fields.yml

[2020-10-22T14:40:00.048Z] >> build: Building auditbeat

[2020-10-22T14:40:21.976Z] >> go test: Unit Testing

[2020-10-22T14:40:40.300Z] FAILURES:

[2020-10-22T14:40:40.300Z] Package: github.com/elastic/beats/auditbeat/module/file_integrity

[2020-10-22T14:40:40.300Z] Test:    TestEventReader

[2020-10-22T14:40:40.300Z] ----

[2020-10-22T14:40:40.300Z] Package: github.com/elastic/beats/auditbeat/module/file_integrity

[2020-10-22T14:40:40.300Z] Test:    TestEventReader/non-recursive

[2020-10-22T14:40:40.300Z] eventreader_test.go:358: received unexpected event {2020-10-22 14:40:23.4398046 +0000 UTC C:\Users\jenkins\AppData\Local\Temp\audit361368285\test3.txt  <nil> fsnotify updated map[] 0 []}

[2020-10-22T14:40:40.300Z] ----

[2020-10-22T14:40:40.300Z] SUMMARY:

[2020-10-22T14:40:40.300Z]   Fail:     2

[2020-10-22T14:40:40.300Z]   Skip:     11

[2020-10-22T14:40:40.300Z]   Pass:     52

[2020-10-22T14:40:40.300Z]   Packages: 3

[2020-10-22T14:40:40.301Z]   Duration: 18.4658203s

[2020-10-22T14:40:40.301Z]   Coverage Report: C:\Users\jenkins\workspace\Beats_beats_PR-21859\src\github.com\elastic\beats\auditbeat\build\TEST-go-unit.html

[2020-10-22T14:40:40.301Z]   JUnit Report:    C:\Users\jenkins\workspace\Beats_beats_PR-21859\src\github.com\elastic\beats\auditbeat\build\TEST-go-unit.xml

[2020-10-22T14:40:40.301Z]   Output File:     C:\Users\jenkins\workspace\Beats_beats_PR-21859\src\github.com\elastic\beats\auditbeat\build\TEST-go-unit.out

[2020-10-22T14:40:40.301Z] >> go test: Unit Test Failed

[2020-10-22T14:40:40.301Z] Error: go test failed: 2 test failures

script returned exit code 1

image

build

v1v added a commit to v1v/beats that referenced this issue Oct 29, 2020
v1v added a commit that referenced this issue Oct 30, 2020
* cherry-pick aad07ad
* Add stages to Jenkins pipeline (#14484)
* ci: avoid to modify go.mod file (#16842)
* Ensure install scripts only install if needed (#20349)
* ci: fix warnings with wildcards and archive system-tests (#18695)
* ci: run test on Windows (#15570)
* [CI] fail if not possible to install python3 (#19164)
* [CI] lint stage doesn't produce test reports (#21888)
* [CI] Add stage name in the step (#21887)
* [CI] kind setup fails sometimes (#21857)
* [CI] refactor runbld post build action (#21256)
* [CI] Archive build reasons (#21347)
* [CI] Fix runbld when workspace does not exist (#21350)
* [CI] Send slack message with build status (#21428)
* [CI] Setup git config globally (#21562)
* [CI] fix 'no matches found within 10000' (#21466)
* [CI] Change notification channel (#21559)
* [CI] Support skip-ci label (#21377)
* [BUILD][CI] fetch dependencies with retry (#21614)
* Disable x-pack/metricbeat in linux since build is broken #21962
* Disable tests for windows in auditbeat. See #21958
* Disable integration testing for libbeat. See #21959
* Disable integration testing for metricbeat. See #21961
* Disable windows build for auditbeat. See #21958
* Disable build for libbeat. See #21959
* Disable build for metricbeat. See #21961
* Disable windows build for metricbeat. See #22257
* Disable build for x-pack/metricbeat. See #21962
* Disable windows build for x-pack/winlogbeat. See #22263
* Disable windows build for x-pack/filebeat. See #21963
* integration-tests-environment is not available for winlogbeat. see #22265
* integration-tests-environment is not available for packetbeat. see #22266
* Build not available for x-pack/metricbeats in 6.8. See #22269
* Cherry-pick 96c60d0
@andrewkroh
Copy link
Member

There might be some fixes that we need to backport. This test has always been troublesome since each OS responds a little different to file changes.

@botelastic
Copy link

botelastic bot commented Sep 30, 2021

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

@botelastic botelastic bot added the Stalled label Sep 30, 2021
@botelastic botelastic bot closed this as completed Oct 30, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Auditbeat flaky-test Unstable or unreliable test cases. Stalled
Projects
None yet
Development

No branches or pull requests

4 participants