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

[Flaky Test]: Integration tests on Windows – virus or potentially unwanted software #4355

Closed
rdner opened this issue Mar 5, 2024 · 6 comments · Fixed by #4357
Closed
Assignees
Labels
flaky-test Unstable or unreliable test cases. Team:Elastic-Agent Label for the Agent team

Comments

@rdner
Copy link
Member

rdner commented Mar 5, 2024

Failing test case

Integration tests on Windows

Error message

virus or potentially unwanted software

Build

https://buildkite.com/elastic/elastic-agent/builds/7542#018e0e28-972c-460b-861e-1802ff8389d6

OS

Windows

Stacktrace and notes

failed to run compiled magefile: fork/exec C:\Users\windows\magefile\5ab13b2cacf496bb9ea662d613b50ccd7a1140fa.exe: Operation did not complete successfully because the file contains a virus or potentially unwanted software.

There was already a related change for the buildkite runner #4183 but this error is coming from Windows virtual machines we run on GCP (via OGC). We need to exclude the user directory from Windows Defender in our image which we use for the integration tests.

@rdner rdner added Team:Elastic-Agent Label for the Agent team flaky-test Unstable or unreliable test cases. labels Mar 5, 2024
@elasticmachine
Copy link
Contributor

Pinging @elastic/elastic-agent (Team:Elastic-Agent)

@pazone
Copy link
Contributor

pazone commented Mar 5, 2024

First let's add Set-MpPreference -DisableRealtimeMonitoring $true to the Windows prepare function. If it help I can rebuild the image

@rdner
Copy link
Member Author

rdner commented Mar 5, 2024

@pazone I don't think we should disable it completely, I started with adding an exception in #4357

@pierrehilbert
Copy link
Contributor

We got the same issue in the past and you fixed it if I remember correctly @pazone.
How can we avoid this issue to happen?

@rdner
Copy link
Member Author

rdner commented Mar 6, 2024

Had to revert my fix #4365

@rdner rdner reopened this Mar 6, 2024
@rdner
Copy link
Member Author

rdner commented Apr 29, 2024

There was no failure for more than a month. Seems like it was a temporary issue. Closing for now.

@rdner rdner closed this as completed Apr 29, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
flaky-test Unstable or unreliable test cases. Team:Elastic-Agent Label for the Agent team
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants