Skip to content
Snippets Groups Projects

ci-package-builder: Hardcode the releases to freeze MRs for

Merged Emanuele Aina requested to merge wip/em/hardcode-release-to-freeze into master
All threads resolved!
Files
2
@@ -43,10 +43,13 @@ def _retrying_on_exception(exception_type):
def _find_stable_release_branch(project, prefix):
branches = (b.name for b in project.branches.list(all=True))
releases = (b for b in branches if b.startswith(prefix))
releases = [b for b in branches if b.startswith(prefix)]
stable = (b for b in releases if b[-4:-1] != "dev" and b[-3:] != "pre")
latest = sorted(stable, reverse=True)[0]
return latest
# do not pick the latest stable as it may not be actually released yet
# for instance, in 2021Q1 we have the apertis/v2021 branch but it
# should not be considered frozen yet since it has not been released
second_latest = sorted(stable, reverse=True)[1]
return second_latest
def _monitor_pipeline_for_completion(pipeline):
Loading