Fix a bug in the script that updates latestOpsManagerAgentMapping in release.json#668
Merged
viveksinghggits merged 4 commits intomasterfrom Jan 10, 2026
Merged
Conversation
…n `release.json`
MCK 1.6.2 Release NotesBug Fixes
|
3 tasks
m1kola
approved these changes
Jan 2, 2026
nammn
approved these changes
Jan 7, 2026
Collaborator
nammn
left a comment
There was a problem hiding this comment.
LGTM, i suggest some changes to readability and code structure
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
We maintain a field in our
release.jsoncalledlatestOpsManagerAgentMappingthat has mapping between OM and agent version of every highest major OM version. This list needs to get updated whenever a new version of OM is released and that why we had a script that would update this field whenever a new version of OM is released.But that script had a bug because it assumed that OM versions are always going to be in increasing semver order, which is not true. OM team seems to maintain 3 branches (version 6, 7 and 8) and makes releases on them, so they can release 8.0.12 and then go ahead and release 7.0.20. Because of that bug if older versions of OM were released the field
latestOpsManagerAgentMappingwas not being updated successfully.This PR fixes that by iterating over all the OM versions in release.json and then creating new
latestOpsManagerAgentMappinginstead of trying to update it based on latest release version.Proof of Work
Manual.
Checklist
skip-changeloglabel if not needed