From cd5aaf8e9fc7db969f12c0a778724fc3f792d4f5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Pablo=20Correa=20G=C3=B3mez?= Date: Fri, 26 Dec 2025 17:39:27 +0100 Subject: [PATCH] ci: cache get_base_commit function calls MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The commit shall not be updated during a CI run, and this calls git fetch, which is considerably slow at times. This reduces the git fetch calls down to 1 from 3 in the generate-build-jobs step. Signed-off-by: Pablo Correa Gómez Part-of: --- .ci/lib/common.py | 1 + 1 file changed, 1 insertion(+) diff --git a/.ci/lib/common.py b/.ci/lib/common.py index d1df8096b..121a94c3f 100755 --- a/.ci/lib/common.py +++ b/.ci/lib/common.py @@ -76,6 +76,7 @@ def get_upstream_branch(): return channels_cfg[channel]["branch_pmaports"] +@cache def get_base_commit() -> str: """Get the base commit that can be compared with HEAD to get all commits in the given branch/merge request."""