diff --git a/ci/ci.py b/ci/ci.py index d430d94..2a47d5a 100755 --- a/ci/ci.py +++ b/ci/ci.py @@ -288,14 +288,13 @@ class CI(SetEnvs): sbom: str = self.generate_sbom(tag) - logsfound: bool = self.watch_container_logs(container, tag) # Watch the logs for no more than 5 minutes + logsfound: bool = self.watch_container_logs(container, tag) if not logsfound: self.logger.error("Test of %s FAILED after %.2f seconds", tag, time.time() - start_time) build_info = {"version": "-", "created": "-", "size": "-", "maintainer": "-"} self._endtest(container, tag, build_info, sbom, False, start_time) return - # build_version: str = self.get_build_version(container,tag) # Get the image build version build_info: dict = self.get_build_info(container,tag) # Get the image build info if build_info["version"] == "ERROR": self.logger.error("Test of %s FAILED after %.2f seconds", tag, time.time() - start_time) @@ -329,7 +328,7 @@ class CI(SetEnvs): runtime = "-" if isinstance(start_time,(float, int)): runtime = f"{time.time() - start_time:.2f}s" - logblob: Any = container.logs().decode("utf-8") + logblob: str = container.logs(timestamps=True).decode("utf-8") self.create_html_ansi_file(logblob, tag, "log") # Generate an html container log file based on the latest logs try: container.remove(force="true")