Skip to content

Commit 65a2835

Browse files
committed
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 e7efe74)
1 parent 6158200 commit 65a2835

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

ci/version_fetch.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -161,6 +161,7 @@ def fetch_all_scylla_enterprise_rc_versions():
161161
stable_tags_data = map(lambda e: SCYLLA_ENTERPRISE_RELEASED_VERSION_REGEX.match(
162162
e).groups(), stable_tags_data)
163163
stable_tags_data = map(lambda e: tuple(map(int, e[0:2])), stable_tags_data)
164+
stable_tags_data = set(stable_tags_data)
164165

165166
# Group by (major, minor) and select latest RC version
166167
rc_tags_data = sorted(rc_tags_data)

0 commit comments

Comments
 (0)