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] Flaky TestRecursive on Windows #8208

Closed
andrewkroh opened this issue Sep 4, 2018 · 1 comment
Closed

[Auditbeat] Flaky TestRecursive on Windows #8208

andrewkroh opened this issue Sep 4, 2018 · 1 comment
Labels
Auditbeat flaky-test Unstable or unreliable test cases. :Windows

Comments

@andrewkroh
Copy link
Member

TestRecursive is failing on Windows often.

Unit testing auditbeat
>> go test: Unit Testing
FAILURES:
Package: github.com/elastic/beats/auditbeat/module/file_integrity/monitor
Test:    TestRecursive
monitor_test.go:317: 
		Error Trace:	monitor_test.go:317
		            				monitor_test.go:112
		Error:      	Not equal: 
		            	expected: "C:\\Users\\JENKIN~1.BEA\\AppData\\Local\\Temp\\monitor219775002\\subdir\\file2.txt"
		            	actual  : "C:\\Users\\JENKIN~1.BEA\\AppData\\Local\\Temp\\monitor219775002\\subdir"
		            	Diff:
		            	--- Expected
		            	+++ Actual
		            	@@ -1 +1 @@
		            	-C:\Users\JENKIN~1.BEA\AppData\Local\Temp\monitor219775002\subdir\file2.txt
		            	+C:\Users\JENKIN~1.BEA\AppData\Local\Temp\monitor219775002\subdir
		Test:       	TestRecursive
monitor_test.go:318: 
		Error Trace:	monitor_test.go:318
		            				monitor_test.go:112
		Error:      	Not equal: 
		            	expected: 0x1
		            	actual  : 0x2
		Test:       	TestRecursive
Error: go test failed: 1 test failures
monitor_test.go:333: 
		Error Trace:	monitor_test.go:333
		            				monitor_test.go:112
		Error:      	Not equal: 
		            	expected: 0x4
		            	actual  : 0x1
		Test:       	TestRecursive
----
SUMMARY:
  Fail:     1
  Skip:     4
  Pass:     61
  Packages: 3
  Duration: 8.8701905s

Logs: https://beats-ci.elastic.co/job/elastic+beats+master+multijob-windows/12/beat=auditbeat,label=windows/console

@andrewvc
Copy link
Contributor

Well, I did take the time to test out one theory in #8317 that turns out to be incorrect.

I assumed the root cause was that on win there were two change events, one for the directory, and another for the file.

That appears to not be the case. I won't be able to look at this for at least a few more days, so it'd be good if someone else could tackle this issue since it is so common.

adriansr added a commit that referenced this issue Sep 20, 2018
This is to prevent flaky test failures that have been occurring
under Windows recently.

Closes #8208
adriansr added a commit to adriansr/beats that referenced this issue Sep 20, 2018
This is to prevent flaky test failures that have been occurring
under Windows recently.

Closes elastic#8208

(cherry picked from commit 5c28a77)
adriansr added a commit to adriansr/beats that referenced this issue Sep 20, 2018
This is to prevent flaky test failures that have been occurring
under Windows recently.

Closes elastic#8208

(cherry picked from commit 5c28a77)
adriansr added a commit that referenced this issue Sep 20, 2018
This is to prevent flaky test failures that have been occurring
under Windows recently.

Closes #8208

(cherry picked from commit 5c28a77)
adriansr added a commit that referenced this issue Sep 20, 2018
This is to prevent flaky test failures that have been occurring
under Windows recently.

Closes #8208

(cherry picked from commit 5c28a77)
leweafan pushed a commit to leweafan/beats that referenced this issue Apr 28, 2023
This is to prevent flaky test failures that have been occurring
under Windows recently.

Closes elastic#8208

(cherry picked from commit 6f3b81f)
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. :Windows
Projects
None yet
Development

No branches or pull requests

2 participants