-
Notifications
You must be signed in to change notification settings - Fork 154
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 TestStandaloneUpgradeUninstallKillWatcher #4146
flaky TestStandaloneUpgradeUninstallKillWatcher #4146
Conversation
on windows the watcher needs to start before uninstall due to potential race condition.
This pull request does not have a backport label. Could you fix it @leehinman? 🙏
NOTE: |
Pinging @elastic/elastic-agent (Team:Elastic-Agent) |
|
We got #4143 and a new one in #4148 that I haven't observed before. The only code change here is isolated to a specific test so these are unrelated. @leehinman want me to force merge this? |
yeah, lets try to get at least one flaky test closed :-) |
* flaky TestStandaloneUpgradeUninstallKillWatcher on windows the watcher needs to start before uninstall due to potential race condition. * switch to all OSes (cherry picked from commit 5f578c5)
* flaky TestStandaloneUpgradeUninstallKillWatcher on windows the watcher needs to start before uninstall due to potential race condition. * switch to all OSes (cherry picked from commit 5f578c5) Co-authored-by: Lee E Hinman <57081003+leehinman@users.noreply.github.com>
What does this PR do?
In TestStandaloneUpgradeUninstallKillWatcher, we need to wait for watcher process to start before starting the uninstall. If watcher hasn't started before the uninstall begins, the uninstall won't find it's pid, so won't kill it, but the watcher can start before the directory gets deleted.
Why is it important?
Fixes flaky test.
Checklist
./changelog/fragments
using the changelog toolAuthor's Checklist
How to test this PR locally
Related issues
Use cases
Screenshots
Logs
Questions to ask yourself