From 4a5a8f311981e33abae1ec8bf75c27bf333aaad2 Mon Sep 17 00:00:00 2001 From: "Nicolas \"Pixel\" Noble" Date: Thu, 13 Aug 2015 19:43:00 +0200 Subject: Reducing JUnit's report size. --- tools/run_tests/jobset.py | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'tools/run_tests/jobset.py') diff --git a/tools/run_tests/jobset.py b/tools/run_tests/jobset.py index b7e0089269..aa3f4bfb41 100755 --- a/tools/run_tests/jobset.py +++ b/tools/run_tests/jobset.py @@ -194,6 +194,10 @@ class Job(object): self._tempfile.seek(0) stdout = self._tempfile.read() filtered_stdout = filter(lambda x: x in string.printable, stdout.decode(errors='ignore')) + # TODO: looks like jenkins master is slow because parsing the junit results XMLs is not + # implemented efficiently. This is an experiment to workaround the issue by making sure + # results.xml file is small enough. + filtered_stdout = filtered_stdout[-128:] if self._xml_test is not None: self._xml_test.set('time', str(elapsed)) ET.SubElement(self._xml_test, 'system-out').text = filtered_stdout -- cgit v1.2.3