From: Ian Jackson Subject: [OSSTEST PATCH 1/2] bisection: Do not get bisection start points from broken flights Date: Mon, 6 Oct 2014 17:07:37 +0100 Message-ID: <1412611658-26094-1-git-send-email-ian.jackson@eu.citrix.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Received: from mail6.bemta5.messagelabs.com ([195.245.231.135]) by lists.xen.org with esmtp (Exim 4.72) (envelope-from ) id 1XbApr-0000fz-AV for xen-devel@lists.xenproject.org; Mon, 06 Oct 2014 16:08:31 +0000 List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xen.org Errors-To: xen-devel-bounces@lists.xen.org To: xen-devel@lists.xenproject.org Cc: Ian Jackson , Ian Campbell List-Id: xen-devel@lists.xenproject.org cs-bisection-step ignores any flight with broken steps, on the grounds that the results in such a flight maybe unreliable. Therefore, if a main flight has both broken steps and regressions, it is wrong to take its mro as the new basis mro for bisections. In the worst case a newly failing job will be determined to be unbisectable (since the only relevant failure is in a broken flight), have the stamp file created, and then never be properly bisected. So: in sg-report-flight, report `broken-step' for each broken step (in the top-level flight we are reporting - broken jobs in flights we are referring to to justify heisenbugs are OK); and, in cr-daily-branch, do not install the new mro if such indications are present. Signed-off-by: Ian Jackson --- cr-daily-branch | 2 +- sg-report-flight | 5 +++++ 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/cr-daily-branch b/cr-daily-branch index 90eb499..d00ecbb 100755 --- a/cr-daily-branch +++ b/cr-daily-branch @@ -312,7 +312,7 @@ if test -f $branch.force; then push=$OSSTEST_PUSH; fi if grep -xF $NEW_REVISION $branch.force-rev; then push=$OSSTEST_PUSH; fi if test -f $branch.block; then push=false; fi -if test -e $mrof && test -e $tree_bisect; then +if test -e $mrof && test -e $tree_bisect && ! grep '^broken' $mrof; then with-lock-ex -w $tree_bisect/$mrof.lock bash -xec " rm -f $tree_bisect/$mrof.in.new cp $mrof $tree_bisect/$mrof.in.new diff --git a/sg-report-flight b/sg-report-flight index c8d88e8..062107a 100755 --- a/sg-report-flight +++ b/sg-report-flight @@ -647,6 +647,11 @@ END $failv->{Blocker}= ''; next; } + + if ($st eq 'broken' && !$heisen_why) { + print MRO "broken-step $s->{job} $s->{testid}\n"; + } + if (!($st eq 'fail' or $st eq 'broken')) { print MRO "broken $j->{job} $s->{testid} $st\n"; print DEBUG " not a fail, unjustifiable\n"; -- 1.7.10.4