mirror of
https://github.com/odoo/runbot.git
synced 2025-03-15 23:45:44 +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 """
|
||||
BuildError = self.env['runbot.build.error']
|
||||
# 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)])
|
||||
return BuildError._parse_logs(ir_logs)
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user