lucene-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Steven A Rowe <sar...@syr.edu>
Subject RE: large messages from Jenkins failures
Date Tue, 28 Aug 2012 19:56:12 GMT
Actually, after discussing with Uwe on #lucene-dev IRC, I'm looking into another mechanism
to reduce the size of email messages: the Jenkins Email-Ext plugin has a per-build-job configuration
item named "Pre-send script" that allows you to modify the MimeMessage object representing
an email via a Groovy script.  Here's what I've got so far - I'm going to enable this now
on all the jobs on Uwe's Jenkins (the "msg" variable, of type MimeMessage, is made available
by the plugin to the script):

	maxLength = 200000;
	trailingLength = 10000;
	content = msg.getContent(); // assumption: mime type is "text/plain"
	contentLength = content.length();
	if (content.length() > maxLength) {
	  text = content.substring(0, maxLength - trailingLength) 
	       + "\n\n[... truncated too long message ...]\n\n"
	       + content.substring(contentLength - trailingLength);
	  msg.setText(text, "UTF-8");
	}

Steve

-----Original Message-----
From: yseeley@gmail.com [mailto:yseeley@gmail.com] On Behalf Of Yonik Seeley
Sent: Tuesday, August 28, 2012 3:11 PM
To: dev@lucene.apache.org
Subject: Re: large messages from Jenkins failures

On Mon, Aug 20, 2012 at 2:22 PM, Dawid Weiss
<dawid.weiss@cs.put.poznan.pl> wrote:
> Oh, one more thing -- if we suppress the console output we would
> absolutely have to keep (at jenkins) multiple tests-report.txt files
> because these always contain full output dumps (regardless of console
> settings). Otherwise we'd suppress potentially important info.

+1 to not forward truckloads of info to the mailing lists, as long as
we can easily get at it via jenkins or some other mechanism.

-Yonik
http://lucidworks.com

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@lucene.apache.org
For additional commands, e-mail: dev-help@lucene.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@lucene.apache.org
For additional commands, e-mail: dev-help@lucene.apache.org


Mime
View raw message