diff options
author | Magnus Granberg <zorry@gentoo.org> | 2024-02-23 00:58:06 +0100 |
---|---|---|
committer | Magnus Granberg <zorry@gentoo.org> | 2024-02-23 00:58:06 +0100 |
commit | 92b796f7c2580f9bd93a225072d56cbf8f13deaa (patch) | |
tree | 052dc644a174824e3cd483563891ecfceba0efbc /buildbot_gentoo_ci | |
parent | Move search pattern db to settings repository (diff) | |
download | tinderbox-cluster-92b796f7c2580f9bd93a225072d56cbf8f13deaa.tar.gz tinderbox-cluster-92b796f7c2580f9bd93a225072d56cbf8f13deaa.tar.bz2 tinderbox-cluster-92b796f7c2580f9bd93a225072d56cbf8f13deaa.zip |
Fix phase_error and pattern_infos
Signed-off-by: Magnus Granberg <zorry@gentoo.org>
Diffstat (limited to 'buildbot_gentoo_ci')
-rw-r--r-- | buildbot_gentoo_ci/steps/logs.py | 14 |
1 files changed, 10 insertions, 4 deletions
diff --git a/buildbot_gentoo_ci/steps/logs.py b/buildbot_gentoo_ci/steps/logs.py index 50e3f3f..aacb8a5 100644 --- a/buildbot_gentoo_ci/steps/logs.py +++ b/buildbot_gentoo_ci/steps/logs.py @@ -46,9 +46,10 @@ def PersOutputOfLogParser(rc, stdout, stderr): 'status' : s['status'], 'line' : s['line'], 'search_pattern' : s['search_pattern'], - 'phase' : s['phase'], + 'phase' : s['phase'].lower(), 'uuid' : s['uuid'], 'description' : s['description'], + 'url' : s['url'], }) build_summery_output['summary_log_dict'] = summary_log_dict #FIXME: Handling of stderr output @@ -221,7 +222,7 @@ class MakeIssue(BuildStep): for k, v in sorted(self.summary_log_dict.items()): # get the issue error for s in v['pattern_infos']: - if s['search_type'] == self.error_dict['phase'] and s['status'] == 'error': + if s['phase'] == self.error_dict['phase'] and s['status'] == 'error': text_issue_list.append(v['text']) # add the issue error self.error_dict['cpv'] = self.getProperty('log_cpv') @@ -259,9 +260,14 @@ class MakeIssue(BuildStep): # check if the build did fail if v['text'].startswith(' * ERROR:') and v['text'].endswith(' phase):'): # get phase error - phase_error = v['text'].split(' (')[1].split(' phase')[0] - self.error_dict['phase'] = phase_error + self.error_dict['phase'] = v['text'].split(' (')[1].split(' phase')[0] error = True + if v['text'].startswith(' * Maintainer:'): + Maintainers = [] + for email in v['text'].split(':')[1].split(' '): + if email != '': + Maintainers.append(email) + self.setProperty("Maintainers", Maintainers, 'Maintainers') #FIXME: write summary_log_list to a file # add issue/bug/pr report if error: |