diff options
author | Vishnu Kaushik <vishnu.kaushik@mongodb.com> | 2021-09-02 14:27:56 +0000 |
---|---|---|
committer | Evergreen Agent <no-reply@evergreen.mongodb.com> | 2021-09-02 15:37:25 +0000 |
commit | 878c77744acf37d618a83cdebcd80e136254abf1 (patch) | |
tree | 3201d9b71a89fc787f6bfcfc5aa706760ede2106 /buildscripts | |
parent | bdda2b184a3b11fec0d600e7675c24dd8cfcb742 (diff) | |
download | mongo-878c77744acf37d618a83cdebcd80e136254abf1.tar.gz |
SERVER-59709 fix incorrect calculation of last continuous when MONGO_VERSION contains a patch version > 0
Diffstat (limited to 'buildscripts')
-rw-r--r-- | buildscripts/resmokelib/multiversionconstants.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/buildscripts/resmokelib/multiversionconstants.py b/buildscripts/resmokelib/multiversionconstants.py index 139c824e41e..456eae65036 100644 --- a/buildscripts/resmokelib/multiversionconstants.py +++ b/buildscripts/resmokelib/multiversionconstants.py @@ -83,7 +83,7 @@ def calculate_fcv_constants(): mongo_version_yml_file = open(MONGO_VERSION_YAML, 'r') mongo_version_yml = yaml.safe_load(mongo_version_yml_file) mongo_version = mongo_version_yml['mongo_version'] - latest = Version(re.sub(r'-.*', '', mongo_version)) + latest = Version(re.match(r'^[0-9]+\.[0-9]+', mongo_version).group(0)) releases_yml_file = open(RELEASES_YAML, 'r') releases_yml = yaml.safe_load(releases_yml_file) @@ -93,7 +93,7 @@ def calculate_fcv_constants(): fcvs = releases_yml['featureCompatibilityVersions'] fcvs = list(map(Version, fcvs)) - lts = releases_yml['majorReleases'] + lts = releases_yml['longTermSupportReleases'] lts = list(map(Version, lts)) # Highest release less than latest. |