From f947b1ed005d1a2cbf195a90532b3f872a9e92be Mon Sep 17 00:00:00 2001 From: Christophe Monniez Date: Mon, 3 Apr 2023 15:24:18 +0200 Subject: [PATCH] [IMP] runbot: add a frontend btn to parse a single log --- runbot/controllers/frontend.py | 5 +++++ runbot/templates/build.xml | 11 ++++++++++- 2 files changed, 15 insertions(+), 1 deletion(-) diff --git a/runbot/controllers/frontend.py b/runbot/controllers/frontend.py index f8fa6567..34d07177 100644 --- a/runbot/controllers/frontend.py +++ b/runbot/controllers/frontend.py @@ -615,3 +615,8 @@ class Runbot(Controller): run_url = build._get_run_url(db_suffix) _logger.info('Redirecting to %s', run_url) return werkzeug.utils.redirect(run_url) + + @route(['/runbot/parse_log/'], type='http', auth='user', website=True, sitemap=False) + def parse_log(self, ir_log, **kwargs): + request.env['runbot.build.error']._parse_logs(ir_log) + return werkzeug.utils.redirect('/runbot/build/%s' % ir_log.build_id.id) diff --git a/runbot/templates/build.xml b/runbot/templates/build.xml index ebea394f..2e621894 100644 --- a/runbot/templates/build.xml +++ b/runbot/templates/build.xml @@ -313,6 +313,15 @@ + + + + + + + + + @@ -325,7 +334,7 @@ - + This error is already .