-
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
Add agent hash to check for detecting upgrade rollbacks #3842
Conversation
Pinging @elastic/elastic-agent (Team:Elastic-Agent) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Change looks good.
watcherAgentVersion string | ||
watcherAgentHash string |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
These are not actually the watcher agent version and hash (as we discussed off-PR yesterday). Could you change these to agentVersion
/agentHash
or currentAgentVersion
/currentAgentHash
or something along those lines please?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fixed in 78cf065
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM — thanks for fixing this!
SonarQube Quality Gate |
What does this PR do?
Change rollback detection based on version check to include commit hash.
For improving related integration tests changes from #3827 and #3837 are needed
Why is it important?
This allows correct version detection in case of upgrade between different builds of the same SNAPSHOT version
Checklist
[ ] I have made corresponding changes to the documentation[ ] I have made corresponding change to the default configuration files[ ] I have added an entry in./changelog/fragments
using the changelog tool[ ] I have added an integration test or an E2E testAuthor's Checklist
How to test this PR locally
Related issues
UPG_WATCHING
for the entire time that the upgrade is being watched #3827Use cases
Screenshots
Logs
Questions to ask yourself