From e7efe742cff5afa0c3d0757e4b97794f75788023 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(). --- ci/version_fetch.py | 1 + 1 file changed, 1 insertion(+) diff --git a/ci/version_fetch.py b/ci/version_fetch.py index 7d624e9d40d..c9a5d4c5bff 100644 --- a/ci/version_fetch.py +++ b/ci/version_fetch.py @@ -162,6 +162,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)