mirror of
https://github.com/odoo/runbot.git
synced 2025-03-27 13:25:47 +07:00
[IMP] runbot: scan killed and warn build too
This commit is contained in:
parent
b99a1fefc0
commit
94828f300b
@ -1110,7 +1110,7 @@ class BuildResult(models.Model):
|
|||||||
""" Parse build logs to classify errors """
|
""" Parse build logs to classify errors """
|
||||||
BuildError = self.env['runbot.build.error']
|
BuildError = self.env['runbot.build.error']
|
||||||
# only parse logs from builds in error and not already scanned
|
# only parse logs from builds in error and not already scanned
|
||||||
builds_to_scan = self.search([('id', 'in', self.ids), ('local_result', '=', 'ko'), ('build_error_ids', '=', False)])
|
builds_to_scan = self.search([('id', 'in', self.ids), ('local_result', 'in', ('ko', 'killed', 'warn')), ('build_error_ids', '=', False)])
|
||||||
ir_logs = self.env['ir.logging'].search([('level', 'in', ('ERROR', 'WARNING', 'CRITICAL')), ('type', '=', 'server'), ('build_id', 'in', builds_to_scan.ids)])
|
ir_logs = self.env['ir.logging'].search([('level', 'in', ('ERROR', 'WARNING', 'CRITICAL')), ('type', '=', 'server'), ('build_id', 'in', builds_to_scan.ids)])
|
||||||
return BuildError._parse_logs(ir_logs)
|
return BuildError._parse_logs(ir_logs)
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user