fix(uti): News: build number processing 73/36973/1
authorTibor Frank <tifrank@cisco.com>
Tue, 23 Aug 2022 07:01:16 +0000 (09:01 +0200)
committerTibor Frank <tifrank@cisco.com>
Tue, 23 Aug 2022 07:01:16 +0000 (09:01 +0200)
- The build number is a string, but it was processed as an integer.

Change-Id: Ia85018acc8da87fe8c72f0ecf80063911d022ba4
Signed-off-by: Tibor Frank <tifrank@cisco.com>
resources/tools/dash/app/pal/news/layout.py

index 6e59831..b9d5c41 100644 (file)
@@ -118,12 +118,10 @@ class Layout:
             "regressions": list(),
             "progressions": list()
         }
-        logging.debug("Processing jobs ...")
         for job in self._jobs:
-            logging.debug(f"+ {job}")
             # Create lists of failed tests:
             df_job = df_tst_info.loc[(df_tst_info["job"] == job)]
-            last_build = max(df_job["build"].unique())
+            last_build = str(max(pd.to_numeric(df_job["build"].unique())))
             df_build = df_job.loc[(df_job["build"] == last_build)]
             tst_info["job"].append(job)
             tst_info["build"].append(last_build)