-
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
Remove the OVERRIDE_AGENT_PACKAGE_VERSION value as 8.13 is now built #3901
Conversation
Pinging @elastic/elastic-agent (Team:Elastic-Agent) |
Failing with:
|
The tests failures here are definitely suspicious:
|
The test failure here reproduces when I run this test locally, so there is something legitimately wrong here. @ycombinator anything come to mind? This feels like something we already fixed. I'm also not sure why renaming the agent from 8.12.0-SNAPSHOT to 8.13.0-SNAPSHOT would change anything (since that is the only real change here from the agent perspective):
Unless |
I think this can be explained by the fact that the version being upgraded to ( elastic-agent/testing/upgradetest/upgrader.go Lines 178 to 188 in 602a2b4
And that, in turn, would cause a couple of assertions further in the test to (rightfully) be in play: elastic-agent/testing/upgradetest/upgrader.go Lines 282 to 290 in 602a2b4
elastic-agent/testing/upgradetest/upgrader.go Lines 323 to 331 in 602a2b4
I can see from the test's log output that the test is failing as part of the first assertion mentioned above. But I don't understand why, as a local build of As this failure can be reproduced locally, what is the output of |
There are no upgrade details here because 7.17 is too old to write them. Then again so is the 8.11.4 version used in the minor version - 2 test. The biggest difference between 7.17 and 8.11.4 is 7.17 is using the "old" version of the watcher. This logic came in as part of #3827 which is in 8.12. Edit: the change is in 8.12 |
The 8.12 backport of #3927 did not update the version gating the logic in the test so this problem has been there but hiding from us in all of our test runs. |
This might just be because of the 7.17 watcher running, it is too old to write the watching state out so the test is expecting upgrade details but they don’t exist. 8.11.4 runs the 8.13 watcher which knows to write the upgrade details file. So this is looking like a test bug and not an agent bug. I ran the 7.17.x to 8.13.x upgrade myself manually and it works fine. |
Yup, miss on my part. At this point, we should just update the minimum version in the guard to |
But looking at the test failure, the error is:
That seems like If the upgrade from |
How were you able to run this? I tried this with standalone Agent (with |
I also had this problem, it was because I'm on an M1 Mac but we don't publish ARM packages for 7.17. Once I built the X86 darwin package locally the error went away. Likely the upgrade should have failed with a better error message. |
#4038 has the fix needed to get this merged. |
buildkite test it |
Quality Gate passedKudos, no new issues were introduced! 0 New issues |
Test failure is unrelated, force merging. |
We keep hitting DNS errors across a few different dependencies. |
What does this PR do?
Why is it important?
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