Merge "Clarify missing merge requirement message"
This commit is contained in:
commit
a7bb00602d
|
@ -1202,7 +1202,7 @@ class TestGithubDriver(ZuulTestCase):
|
|||
self.assertEqual(1, len(A.comments))
|
||||
self.assertFalse(A.is_merged)
|
||||
self.assertIn('This change is unable to merge '
|
||||
'due to a missing requirement.',
|
||||
'due to a missing merge requirement.',
|
||||
A.comments[0])
|
||||
|
||||
# This test case verifies that no reconfiguration happens if a branch was
|
||||
|
|
|
@ -1921,7 +1921,7 @@ class TestScheduler(ZuulTestCase):
|
|||
self.assertEqual(2, len(A.messages))
|
||||
self.assertEqual(A.data['status'], 'NEW')
|
||||
self.assertIn('This change is unable to merge '
|
||||
'due to a missing requirement.',
|
||||
'due to a missing merge requirement.',
|
||||
A.messages[1])
|
||||
|
||||
@simple_layout('layouts/nonvoting-job-approval.yaml')
|
||||
|
|
|
@ -2012,7 +2012,7 @@ class PipelineManager(metaclass=ABCMeta):
|
|||
actions = self.pipeline.failure_actions
|
||||
item.setReportedResult('FAILURE')
|
||||
elif item.wasDequeuedMissingRequirements():
|
||||
log.debug("Dequeued missing requirements")
|
||||
log.debug("Dequeued missing merge requirements")
|
||||
action = 'failure'
|
||||
actions = self.pipeline.failure_actions
|
||||
item.setReportedResult('FAILURE')
|
||||
|
|
|
@ -193,7 +193,7 @@ class BaseReporter(object, metaclass=abc.ABCMeta):
|
|||
msg = 'This change depends on a change that failed to merge.\n'
|
||||
elif item.dequeued_missing_requirements:
|
||||
msg = ('This change is unable to merge '
|
||||
'due to a missing requirement.\n')
|
||||
'due to a missing merge requirement.\n')
|
||||
elif item.isBundleFailing():
|
||||
msg = 'This change is part of a bundle that failed.\n'
|
||||
if with_jobs:
|
||||
|
|
Loading…
Reference in New Issue