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().
  • Loading branch information
avelanarius committed Nov 23, 2022
1 parent fcb5e33 commit e7efe74
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 @@ -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)
Expand Down

0 comments on commit e7efe74

Please sign in to comment.