-
Notifications
You must be signed in to change notification settings - Fork 155
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
TestStandaloneDowngradeToSpecificSnapshotBuild in daily builds can fail with busy file elastic-agent
error due to upgrade hash collision
#4089
Comments
Pinging @elastic/elastic-agent (Team:Elastic-Agent) |
according to this line the test is mistakenly trying to upgrade to the same version. This message is coming from this code
|
The main theory for now is that multiple builds from the artefact API have the same commit hash for the elastic-agent binary which leads to re-using the same path. To verify this I extended logging here #4090 Once it's verified, we will need to fix the test by implementing the following:
|
The build this happened for is the daily build which is not triggered based on a new commit. If there were no commits to main between the time when the stack 8.13.0 snapshot build last completed (which builds from main) and when this job triggered then this is exactly the result we would get. |
The last successful snapshot for main was with build ID
Looking at the stack agent package Buildkite job for that snapshot (or inspecting the agent artifacts directly) we see it is from commit 17f0480
Looking at the Buidkite job it is also from 17f0480 So without looking at the log at all we can confirm this is in fact a hash collision. |
elastic-agent
elastic-agent
error due to upgrade hash collision
elastic-agent
error due to upgrade hash collisionelastic-agent
error due to upgrade hash collision
Edited the title to be a bit more general since there is at least one duplicate of this problem in #4091 |
Flaky Test
elastic-agent/testing/integration/upgrade_downgrade_test.go
Line 26 in 17f0480
elastic-agent
binary itself. Looks like something is modifying this binary while the test is running.It started failing quite consistently on 12th of January 2024. The commit has no code changes 158fd47
Stack
Linux
Windows
The text was updated successfully, but these errors were encountered: