Skip to content

Commit

Permalink
Fix detection of non-obsolete RC Enterprise tags
Browse files Browse the repository at this point in the history
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)
  • Loading branch information
avelanarius committed Dec 8, 2022
1 parent 6158200 commit 65a2835
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions ci/version_fetch.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 65a2835

Please sign in to comment.