Improve version comparison in linter runner

XMLWordPrintableJSON

    • Type: Improvement
    • Resolution: Unresolved
    • Priority: Minor - P4
    • None
    • Affects Version/s: None
    • Component/s: None
    • None
    • DevProd Correctness
    • None
    • 3
    • None
    • None
    • None
    • None
    • None
    • None

      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.

            Assignee:
            Unassigned
            Reporter:
            Mikhail Shchatko
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated: