Skip to content

Conversation

kjohn-msft
Copy link
Collaborator

Merge into hotfix/version_comparator.. as a reflection of comments I have.

Use hotfix/version_comparator after that as final review with 2 reviewers, etc.

@kjohn-msft kjohn-msft requested a review from feng-j678 March 14, 2025 16:52
@kjohn-msft kjohn-msft changed the title Version Comparator Comments as Code on PR Branch [OE PR Comments] Version Comparator Comments as Code on PR Branch Mar 14, 2025
"32.101.15~18",
"32.101~18.01",
"32.1~18.04.01",
"32~18.04.01"]
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

since we are not using this logic for os version comparison in handler, then we need to remove the os version comment

Input: "/var/lib/waagent/Microsoft.CPlat.Core.LinuxPatchExtension-1.6.100"
Return: (1.6.100)
os version input: "34~18.04"
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

since we are not using this logic for os version comparison in handler, then we need to remove the os version comment

@feng-j678 feng-j678 merged commit 3b411bf into hotfix/version_comparator_ubuntupro_version Mar 14, 2025
1 check passed
@feng-j678 feng-j678 deleted the kjohn-b2 branch March 14, 2025 17:56
@feng-j678 feng-j678 mentioned this pull request Mar 14, 2025
kjohn-msft added a commit that referenced this pull request Mar 14, 2025
…on (#294)

* fix the version comparator for ubuntu pro client version extraction

* fix the version comparator logic

* update extraction method for ubuntuproclient

* add unit test for mock pro client version

* use basepath() to extract last part of lpe path with version

* use constant for linuxpatchextenstion

* change MAX_OS_MAJOR_VERSION_SUPPORTED to 20

* Version Comparator Comments as Code on PR Branch (#296)

* remove linuxpatchextension constants and os version comments in handler

---------

Co-authored-by: Koshy John <kjohn@microsoft.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants