Merge pull request #883 from jberry-suse/devel-super-not-ready-merge
request_splitter: should merge: allow devel and super if not ready.
This commit is contained in:
commit
a2842357cf
@ -177,6 +177,12 @@ class RequestSplitter(object):
|
|||||||
return len(pseudometa['requests']) > 0 and 'splitter_info' in pseudometa
|
return len(pseudometa['requests']) > 0 and 'splitter_info' in pseudometa
|
||||||
|
|
||||||
def should_staging_merge(self, status, pseudometa):
|
def should_staging_merge(self, status, pseudometa):
|
||||||
|
if (pseudometa['splitter_info']['strategy']['name'] in ('devel', 'super') and
|
||||||
|
status['overall_state'] not in ('acceptable', 'review')):
|
||||||
|
# Simplistic attempt to allow for followup requests to be staged
|
||||||
|
# after age max has been passed while still stopping when ready.
|
||||||
|
return True
|
||||||
|
|
||||||
if 'activated' not in pseudometa['splitter_info']:
|
if 'activated' not in pseudometa['splitter_info']:
|
||||||
# No information on the age of the staging.
|
# No information on the age of the staging.
|
||||||
return False
|
return False
|
||||||
|
Loading…
x
Reference in New Issue
Block a user