Skip to contentSkip to conversation

bisection: Really avoid flail

PATCH New Ian Jackson 1 participant 1 message Jan 26, 2017

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 bisection: Really avoid flail

The flail detector needs to search for flights which will look like the one it is creating, when this one is done. The intended blessing always lacks `-bisect' so is no use.

We can use the last blessing for this: both cr-try-bisect and cr-try-bisect-adhoc pass the same value for the last blessing and for the 2nd parameter to perhaps_bisect_step_core (which is passed to sg-execute flight to properly bless the flight when it's done).

---
 cs-bisection-step | 17 +++++++++++++----
 1 file changed, 13 insertions(+), 4 deletions(-)
cs-bisection-step +13 -4
index 819e519..a0ceaa7 100755
@@ -8,6 +8,16 @@
 #   ./cs-bisection-setup [<options>] <branch> <job> <testid>
 # options, usually:
 #      --blessings=real,real-bisect
+#
+# First entry in --blessings list is the blessing of the basis
+# (non-bisection) flights.  This should not be the same as the
+# blessing which will be applied to the bisection flights when they
+# are complete, as otherwise the "basis repro" will retrigger when
+# this is not desirable.
+#
+# Last entry in --blessings should be blessing which will be
+# applied to this flight when it is finished.  This is used for flail
+# detection.
 
 # This is part of "osstest", an automated testing framework for Xen.
 # Copyright (C) 2009-2013 Citrix Inc.
@@ -1335,9 +1345,7 @@ END
         SELECT flight, blessing, started FROM flights
 	    WHERE branch=?
               AND $restrictflight_cond
-              AND blessing = (
-		SELECT intended FROM flights WHERE flight = ?
-                )
+              AND blessing = ?
 	      AND NOT EXISTS (
 		SELECT 1
 		  FROM $runvarsqt1 r1 FULL OUTER JOIN
@@ -1368,7 +1376,8 @@ END
         $minflight //= 0;
 	print DEBUG "minflight=$minflight\n";
 
-	$equalflightsq->execute($branch, $popflight, $popflight, $minflight);
+	$equalflightsq->execute($branch, $blessings[$#blessings],
+                                $popflight, $minflight);
 	my $nequalflights = 0;
 	my $explanation = '';
 	while (my $identical = $equalflightsq->fetchrow_hashref()) {
Signature · 7 lines
2.1.4


_______________________________________________
Xen-devel mailing list
[email protected]
https://lists.xen.org/xen-devel