Skip to contentSkip to conversation

cs-bisection-step: Limit size of revision log included in reports

PATCH In review Ian Jackson 2 participants 3 messages Nov 30, 2015 1 message not in the archive

lore
Share & tools
lore

A message that is not in the archive (sent off-list or not yet received): [email protected]

#1 lore raw

PATCH 1/1 cs-bisection-step: Limit size of revision log included in reports

There is a limit in cr-daily-branch, but none in cs-bisection-step.

adhoc-revtuple-generator could usefully have this built in but that's not so simple, so do it again here. We already slurp the whole thing into core so from a resource usage point of view we might as well do the length check here too.

---
 cs-bisection-step |    5 +++++
 1 file changed, 5 insertions(+)
cs-bisection-step +5 -0
index e51babd..928a147 100755
@@ -898,6 +898,11 @@ END
 		    "./adhoc-revtuple-generator -S @revtuplegenargs $rts";
                 my $revinfo= `$revrune`;
                 if (!$?) {
+		    if (length($revinfo) > 24000) {
+			$revinfo = <<END;
+(Revision log too long, ommitted.)
+END
+		    }
                     summary_report("",$revinfo,-1);
                 }
             }
Signature · 1 line
1.7.10.4
Acked-by on v1 1/1
#2 lore raw
Quoted 9 lines · Ian Jackson

There is a limit in cr-daily-branch, but none in cs-bisection-step.

adhoc-revtuple-generator could usefully have this built in but that's not so simple, so do it again here.  We already slurp the whole thing into core so from a resource usage point of view we might as well do the length check here too.

Quoted 1 line

+(Revision log too long, ommitted.)

My MUA's spell checker thinks it is "omitted".

Ian.

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

#3 lore raw

Ian Campbell writes ("Re: [OSSTEST PATCH] cs-bisection-step: Limit size of revision log included in reports"):

Quoted 5 lines
Quoted 1 line

+(Revision log too long, ommitted.)

My MUA's spell checker thinks it is "omitted".

Thanks. I have ommittedd the spurrious lettter.

Ian.