From 1788b41690af61c3260b26494a133add35a44d75 Mon Sep 17 00:00:00 2001 From: magic_rb Date: Wed, 12 Jun 2024 18:51:53 +0200 Subject: [PATCH] Parse evaluation warnings and display in separate section. Signed-off-by: magic_rb --- buildbot_nix/__init__.py | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/buildbot_nix/__init__.py b/buildbot_nix/__init__.py index 2b1379f5a..e75fbc9d8 100644 --- a/buildbot_nix/__init__.py +++ b/buildbot_nix/__init__.py @@ -159,7 +159,7 @@ def __init__( kwargs = self.setupShellMixin(kwargs) super().__init__(**kwargs) self.project = project - self.observer = logobserver.BufferLogObserver() + self.observer = logobserver.BufferLogObserver(wantStderr=True) self.addLogObserver("stdio", self.observer) self.supported_systems = supported_systems @@ -172,6 +172,11 @@ def run(self) -> Generator[Any, object, Any]: # if the command passes extract the list of stages result = cmd.results() if result == util.SUCCESS: + log.info(self.observer.getStderr()) + self.addHTMLLog( + "Evaluation Warnings", f"
{self.observer.getStderr()}
" + ) + # create a ShellCommand for each stage and add them to the build jobs = []