From 65a283563b99d7d6cb3fcc3fbf1454be4e1b144e Mon Sep 17 00:00:00 2001 From: Piotr Grabowski Date: Wed, 9 Nov 2022 23:29:04 +0100 Subject: [PATCH] Fix detection of non-obsolete RC Enterprise tags Before the change, stable_tags_data was an iterator, but it could be read multiple times. In such a case, the second time it would return an empty result. Fix the problem by constructing a set. This was a copy-paste error from fetch_all_scylla_oss_rc_versions(). Ported from Java Driver 3.x. (commit e7efe742cff5afa0c3d0757e4b97794f75788023) --- ci/version_fetch.py | 1 + 1 file changed, 1 insertion(+) diff --git a/ci/version_fetch.py b/ci/version_fetch.py index a44f4cf14b8..a5054d06260 100644 --- a/ci/version_fetch.py +++ b/ci/version_fetch.py @@ -161,6 +161,7 @@ def fetch_all_scylla_enterprise_rc_versions(): stable_tags_data = map(lambda e: SCYLLA_ENTERPRISE_RELEASED_VERSION_REGEX.match( e).groups(), stable_tags_data) stable_tags_data = map(lambda e: tuple(map(int, e[0:2])), stable_tags_data) + stable_tags_data = set(stable_tags_data) # Group by (major, minor) and select latest RC version rc_tags_data = sorted(rc_tags_data)