From 416f6cc09755151c3d906a6111ae22ffc16ee94f Mon Sep 17 00:00:00 2001 From: Barosl Lee Date: Mon, 15 Dec 2014 08:21:22 +0900 Subject: [PATCH] Test a rollup again if one of the PRs advances, without the advanced PR --- bors.py | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/bors.py b/bors.py index 60df739..9412da3 100755 --- a/bors.py +++ b/bors.py @@ -566,17 +566,19 @@ def advance_master_ref_to_test(self, pulls): if self.batched(): num2sha = {x.num: x.sha for x in pulls} - error_occurred = False - + advanced = False for num, sha in self.metadata['rollup_pulls']: if num2sha[num] != sha: - error_occurred = True + advanced = True - msg = '#{} advanced, cannot continue'.format(num) + msg = '#{} advanced, testing again without the PR'.format(num) + self.log.info(msg) self.add_comment(self.sha, msg) - self.set_error(msg) - if error_occurred: return + if advanced: + self.statuses = [x for x in self.statuses if x not in ['success', 'pending']] # Mark this PR as unsuccessful + self.merge_or_batch(pulls) + return s = ("fast-forwarding %s to %s = %.8s" % (self.master_ref, self.test_ref, self.metadata['merge_sha']))