[SERVER-65776] Improve version comparison in linter runner Created: 19/Apr/22  Updated: 17/Nov/23

Status: Open
Project: Core Server
Component/s: None
Affects Version/s: None
Fix Version/s: None

Type: Improvement Priority: Major - P3
Reporter: Mikhail Shchatko Assignee: [DO NOT ASSIGN] Backlog - DevProd Correctness
Resolution: Unresolved Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Related
related to SERVER-65718 Fix mypy error Closed
Assigned Teams:
Correctness
Sprint: OnDeck
Participants:

 Description   

Currently we check that given linter version is not lower than the required version. We are doing that with pkg_resources.parse_version():
https://github.com/mongodb/mongo/blob/8ad97ab6e15eb185438f37b2e9a2e3d9724f9493/buildscripts/linter/runner.py#L44
The pkg_resources.parse_version() returns either Version or LegacyVersion object, which could be incomparable with each other. We should make sure that it works correctly.


Generated at Thu Feb 08 06:03:35 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.