CI: add "report-image-diff" job
Compare changes
+ 4
− 2
@@ -37,8 +37,10 @@ class BuildPipelines:
@@ -57,7 +59,7 @@ class BuildPipelines:
This is a solution for [YT-55] CI: Add a 'test' job to grab information on the build result: Changed packages, change in image size.
Added a python script with corresponding GitLab CI job to launch this script.
The script retrieves build artifacts for two branches:
kirkstone
) in the manifest repo;After that, the script compares those two sets of artifacts and creates a summary about following differences between these two sets:
artifacts.zip
);Herewith this comparison is done only for the machines and distributions hard coded in the script:
machines = (
"seco-genio510",
"seco-genio700",
"seco-mx6",
"seco-mx6ull",
"seco-mx8mm",
"seco-mx8mp",
)
pipelines_and_distros = {
"fngsystem-pipeline": "seconorth-fngsystem",
"yocto-pipeline": "seconorth-wayland",
}
The produced summary is reported both to stdout and as a comment to the merge request.
Notes:
304b502415
to 0691f0a31a
commit. 1586 lines were removed from diff.So the report for non kernel diff looks like as follows:
⮘ seconorth-wayland | seco-mx6 ⮚
├── artifacts.zip size: [ 342.08 MiB → 388.44 MiB ] | +46.36 MiB
├── image size: [ 332 MiB → 378 MiB ]
└── manifest diff:
--- seconorth-image-seco-mx6-20240405130924.rootfs.manifest
+++ seconorth-image-seco-mx6-20240410145347.rootfs.manifest
+autoconf cortexa9t2hf_neon 2.71
+automake cortexa9t2hf_neon 1.16.5
+binutils cortexa9t2hf_neon 2.38
+cpp cortexa9t2hf_neon 11.3.0
+cpp-symlinks cortexa9t2hf_neon 11.3.0
+g++ cortexa9t2hf_neon 11.3.0
+g++-symlinks cortexa9t2hf_neon 11.3.0
+gcc cortexa9t2hf_neon 11.3.0
+gcc-symlinks cortexa9t2hf_neon 11.3.0
+gettext cortexa9t2hf_neon 0.21
+gnu-config cortexa9t2hf_neon 20211108+git0+191bcb948f
+libatomic-dev cortexa9t2hf_neon 11.3.0
+libc-malloc-debug0 cortexa9t2hf_neon 2.35
+libc6-dev cortexa9t2hf_neon 2.35
+libc6-extra-nss cortexa9t2hf_neon 2.35
+libcroco cortexa9t2hf_neon 0.6.13
+libgcc-s-dev cortexa9t2hf_neon 11.3.0
+libgettextlib cortexa9t2hf_neon 0.21
+libgettextsrc cortexa9t2hf_neon 0.21
+libmpc3 cortexa9t2hf_neon 1.2.1
+libmpfr6 cortexa9t2hf_neon 4.1.0
+libnss-db2 cortexa9t2hf_neon 2.35
+libstdc++-dev cortexa9t2hf_neon 11.3.0
+libtool cortexa9t2hf_neon 2.4.7
+linux-libc-headers-dev cortexa9t2hf_neon 5.16
+m4 cortexa9t2hf_neon 1.4.19
+make cortexa9t2hf_neon 4.3
+packagegroup-core-buildessential cortexa9t2hf_neon 1.0
+pkgconfig cortexa9t2hf_neon 0.29.2+git0+d97db4fae4
The CI job is triggered when the build is complete.
Each run of the pipeline causes:
Demo MR: seco-ne/yocto/layers/meta-seconorth-distro!750 (closed)