diff mbox series

[yocto-autobuilder-helper] scripts/collect-results: add cve-update logs for metrics

Message ID 20250826190600.20606-1-peter.marko@siemens.com
State New
Headers show
Series [yocto-autobuilder-helper] scripts/collect-results: add cve-update logs for metrics | expand

Commit Message

Peter Marko Aug. 26, 2025, 7:06 p.m. UTC
From: Peter Marko <peter.marko@siemens.com>

CVE update is currently not working properly on autobuilder.
Add db update logs to build results for problem analysis.

The globs are necessary as:
* there can be different host archs
* there are different db sources (nvd/fkie and nvd2)
* db update version is irrelevant and glob is future proof
* ther are multiple bitbake runs (metrics for core and oe)

Signed-off-by: Peter Marko <peter.marko@siemens.com>
---
 scripts/collect-results | 8 ++++++++
 1 file changed, 8 insertions(+)
diff mbox series

Patch

diff --git a/scripts/collect-results b/scripts/collect-results
index d29916b..b6cfe87 100755
--- a/scripts/collect-results
+++ b/scripts/collect-results
@@ -28,6 +28,14 @@  if [ -e $WORKDIR/buildhistory ]; then
     fi
 fi
 
+case "$target" in
+    "metrics")
+        mkdir -p $DEST/$target/db-update
+        # there are multiple logs (for core and oe bitbake runs)
+        cp -f $WORKDIR/tmp/work/*/cve-update-*-native/*/temp/log.do_fetch.* $DEST/$target/db-update/ || true
+        ;;
+esac
+
 HSFILE=$WORKDIR/tmp/buildstats/*/host_stats*
 d="intermittent_failure_host_data"