aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMagnus Granberg <zorry@gentoo.org>2022-07-06 20:44:08 +0200
committerMagnus Granberg <zorry@gentoo.org>2022-07-06 20:44:08 +0200
commit86dae64f04e20bf74405496289564cd993429c03 (patch)
tree41694639e1038509dfe25e4889d8ee498581aa9a
parentAdd support for search bugs on b.g.o (diff)
downloadtinderbox-cluster-86dae64f04e20bf74405496289564cd993429c03.tar.gz
tinderbox-cluster-86dae64f04e20bf74405496289564cd993429c03.tar.bz2
tinderbox-cluster-86dae64f04e20bf74405496289564cd993429c03.zip
Change title_issue and title_phase
Signed-off-by: Magnus Granberg <zorry@gentoo.org>
-rw-r--r--buildbot_gentoo_ci/steps/bugs.py2
-rw-r--r--buildbot_gentoo_ci/steps/logs.py29
2 files changed, 4 insertions, 27 deletions
diff --git a/buildbot_gentoo_ci/steps/bugs.py b/buildbot_gentoo_ci/steps/bugs.py
index e43c926..27b1388 100644
--- a/buildbot_gentoo_ci/steps/bugs.py
+++ b/buildbot_gentoo_ci/steps/bugs.py
@@ -88,7 +88,7 @@ class GetBugs(BuildStep):
match = False
for bug in buglist:
yield log.addStdout('Bug: ' + str(bug['id']) + ' Summary: ' + bug['summary'] +'\n')
- if re.search(self.getProperty('error_dict')['title_phase'][:20], bug['summary']):
+ if re.search(self.getProperty('error_dict')['title_issue'][:20], bug['summary']):
print('Bug found')
print(bug)
match = {}
diff --git a/buildbot_gentoo_ci/steps/logs.py b/buildbot_gentoo_ci/steps/logs.py
index 7a63658..e5e61a5 100644
--- a/buildbot_gentoo_ci/steps/logs.py
+++ b/buildbot_gentoo_ci/steps/logs.py
@@ -318,39 +318,16 @@ class MakeIssue(BuildStep):
text_phase_list = []
for k, v in sorted(self.summary_log_dict.items()):
# get the issue error
- if v['text'].startswith(' * ERROR:') and v['text'].endswith(' phase):'):
- issue_text = self.summary_log_dict[k + 1]['text']
- if issue_text.startswith(' * ninja -v -j'):
- issue_text = 'ninja failed'
- if issue_text.startswith(' * (no error'):
- issue_text = False
- if issue_text:
- text_issue_list.append(issue_text)
- # get the phase error
if v['type'] == self.error_dict['phase'] and v['status'] == 'error':
- text_phase_list.append(v['text'])
- # if not get the first issue
- if text_issue_list == []:
- for k, v in self.summary_log_dict.items():
- if v['type'] == 'issues':
- text_issue_list.append(v['text'])
- # if not get the first error
- if text_phase_list == []:
- for k, v in self.summary_log_dict.items():
- if v['status'] == 'error':
- text_phase_list.append(v['text'])
+ text_issue_list.append(v['text'])
# add the issue error
if text_issue_list != []:
self.error_dict['title_issue'] = text_issue_list[0].replace('*', '').strip()
else:
self.error_dict['title_issue'] = 'title_issue : None'
- # add the error line
- if text_phase_list != []:
- self.error_dict['title_phase'] = text_phase_list[0].replace('*', '').strip()
- else:
- self.error_dict['title_phase'] = 'title_phase : None'
+ self.error_dict['title_phase'] = 'failed in '+ self.error_dict['phase']
#set the error title
- self.error_dict['title'] = self.error_dict['title_issue'] + ' (' + self.error_dict['title_phase'] + ')'
+ self.error_dict['title'] = self.error_dict['title_phase'] + ' - ' + self.error_dict['title_issue']
@defer.inlineCallbacks
def run(self):