From e77e100bb9a145cfa8978da4aee6e7cb51b6c151 Mon Sep 17 00:00:00 2001 From: Jose Quaresma Date: Mon, 20 Apr 2026 15:16:06 +0100 Subject: [PATCH] workflows/compile: start with a build using setscene only Since the sstate-cache used in CI is hosted on a NFS server, this change will allow measuring its latency. Performing an initial build at each subbuild step using only the bitbake setscene tasks, will allow us to measure the time of that task. Which basically consists of executing all the task that can be accelerated using the stored sstate-cache. These tasks make exhaustive use of the NFS filesystem to acquire the sstate-cache artifacts. With this change, it will be easy to distinguish between the time required to acquire and unpack the sstate-cache artifacts and the time spent on the build itself. Signed-off-by: Jose Quaresma --- .github/workflows/compile.yml | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) diff --git a/.github/workflows/compile.yml b/.github/workflows/compile.yml index b25df9303..cec8c29a6 100644 --- a/.github/workflows/compile.yml +++ b/.github/workflows/compile.yml @@ -108,6 +108,13 @@ jobs: mkdir $KAS_WORK_DIR $KAS_CONTAINER dump --resolve-env --resolve-local --resolve-refs ${KAS_YAMLS} > kas-build.yml + - name: Kas build world (setscene) + if: inputs.world + shell: bash + run: | + $KAS_CONTAINER build ${KAS_YAMLS}:ci/world.yml -- --setscene-only + $KAS_CONTAINER shell ${KAS_YAMLS} --command "buildstats-summary --sort duration --highlight 0" + - name: Kas build world if: inputs.world shell: bash @@ -122,6 +129,13 @@ jobs: rename.ul -va buildstats buildstats-world $KAS_WORK_DIR/build/buildstats* mv $KAS_WORK_DIR/build/buildstats* . + - name: Kas build images (setscene) + if: inputs.target + shell: bash + run: | + $KAS_CONTAINER build ${KAS_YAMLS} -- --setscene-only + $KAS_CONTAINER shell ${KAS_YAMLS} --command "buildstats-summary --sort duration --highlight 0" + - name: Kas build images if: inputs.target shell: bash @@ -135,6 +149,16 @@ jobs: ci/kas-container-shell-helper.sh ci/yocto-buildstats.sh mv $KAS_WORK_DIR/build/buildstats* . + - name: Kas build SDK (setscene) + if: inputs.sdk + shell: bash + run: | + $KAS_CONTAINER build ${KAS_YAMLS} --task populate_sdk \ + --target qcom-multimedia-image \ + --target qcom-multimedia-proprietary-image \ + -- --setscene-only + $KAS_CONTAINER shell ${KAS_YAMLS} --command "buildstats-summary --sort duration --highlight 0" + - name: Kas build SDK if: inputs.sdk shell: bash