aboutsummaryrefslogtreecommitdiffhomepage
path: root/tools
diff options
context:
space:
mode:
authorGravatar Nicolas "Pixel" Noble <pixel@nobis-crew.org>2015-08-13 19:43:00 +0200
committerGravatar Nicolas "Pixel" Noble <pixel@nobis-crew.org>2015-08-13 23:49:12 +0200
commit4a5a8f311981e33abae1ec8bf75c27bf333aaad2 (patch)
treed39236c0e3c8d194b9b5cb847863793262e571a6 /tools
parent58d7310fbc291d2afa9cbb100544fc5c96cd3249 (diff)
Reducing JUnit's report size.
Diffstat (limited to 'tools')
-rwxr-xr-xtools/run_tests/jobset.py4
1 files changed, 4 insertions, 0 deletions
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