Skip to contentSkip to conversation

bisection: Do not get bisection start points from broken flights

PATCH New Ian Jackson 1 participant 2 messages Oct 6, 2014

lore
Share & tools
lore
#0 lore raw

PATCH 1/2 bisection: Do not get bisection start points from broken flights

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.

---
 cr-daily-branch  |    2 +-
 sg-report-flight |    5 +++++
 2 files changed, 6 insertions(+), 1 deletion(-)
cr-daily-branch +1 -1
index 90eb499..d00ecbb 100755
@@ -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
sg-report-flight +5 -0
index c8d88e8..062107a 100755
@@ -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";
Signature · 1 line
1.7.10.4
#1 lore raw

PATCH 2/2 cr-for-branches: Keep many more logs

Keep 300 cycles of cr-for-branches.log.

Also, remove the spurious 500' from the command line, which looks like it was there because I thought that -n' took a number argument (but in fact that's -c), whereas it was actually interpreted as a filename (which never exists so savelog silently ignores it).

---
 cr-for-branches |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
cr-for-branches +1 -1
index 9e3fcff..2270b42 100755
@@ -73,7 +73,7 @@ for branch in $BRANCHES; do
 
 		mkdir -p tmp
 
-		savelog -c 28 -n 500 $LOGFILE >/dev/null
+		savelog -c 300 -n $LOGFILE >/dev/null
 		exec >>$LOGFILE
 
 		log () {
Signature · 1 line
1.7.10.4