Skip to content

[Backport wrynose] ci/ci: enable ccache - #3144

Merged
Dmitry Baryshkov (lumag) merged 5 commits into
qualcomm-linux:wrynosefrom
quaresmajose:ccache
Sep 13, 2026
Merged

Dmitry Baryshkov (lumag) merged 5 commits into
qualcomm-linux:wrynosefrom
quaresmajose:ccache

Conversation

@quaresmajose

Copy link
Copy Markdown
Member

Description
Backport of #2936 to wrynose.

It avoids reproducibility problems and is recommended by good security
practices.

Signed-off-by: Jose Quaresma <jose.quaresma@oss.qualcomm.com>
(cherry picked from commit 37fa5f8)
Signed-off-by: Jose Quaresma <jose.quaresma@oss.qualcomm.com>
Proposed ccache to be installed on kas-container and it is accepted
and available in the image. The change landed in master 5.5-9-g0555188

Signed-off-by: Jose Quaresma <jose.quaresma@oss.qualcomm.com>
(cherry picked from commit 588e03d)
Signed-off-by: Jose Quaresma <jose.quaresma@oss.qualcomm.com>
Store the CCACHE_TOP_DIR inside the state-cache so we can access it
from within the kas-container.

Signed-off-by: Jose Quaresma <jose.quaresma@oss.qualcomm.com>
(cherry picked from commit 5451b3d)
Signed-off-by: Jose Quaresma <jose.quaresma@oss.qualcomm.com>
The ccache can improve significantly our builds speeds when we can't take
advantage of the bitbake sstate cache, in such scenario we need to compile
the code. The cache storage needs to be available from the previous builds
so we need to store these ccache artifacts temporay on our permanent storage.

Fixes qualcomm-linux#1051

Signed-off-by: Jose Quaresma <jose.quaresma@oss.qualcomm.com>
(cherry picked from commit 35458a2)
Signed-off-by: Jose Quaresma <jose.quaresma@oss.qualcomm.com>
We'll have to divide the available space among all existing components.
Focusing a large portion of the allocated space on components that are
fast enough even without ccache. We then conclude that it would be more
efficient if we allocated space only to the components that take the
most advantage of using ccache.

Let's start with a short list of the heavier recipes; we'll adjust them
as needed.

A quick analysis of the buildstats of shows that the compilation time
is high for this list of recipes.

Signed-off-by: Jose Quaresma <jose.quaresma@oss.qualcomm.com>
(cherry picked from commit 3656304)
Signed-off-by: Jose Quaresma <jose.quaresma@oss.qualcomm.com>
@github-actions

Copy link
Copy Markdown

Test run workflow

Test jobs for commit 97389cb

qcom-distro
Pass: 226 | Fail: 13 | Total: 258
qcom-distro_linux-qcom-next
Pass: 308 | Fail: 16 | Total: 356
nodistro
Pass: 10 | Fail: 0 | Total: 10

@test-reporting-app

Copy link
Copy Markdown

Test Results

  119 files  +   39    713 suites  +290   10h 18m 53s ⏱️ + 3h 38m 8s
  175 tests  -     1    145 ✅  -     4   1 💤  -  2  29 ❌ + 5 
4 589 runs  +1 836  4 488 ✅ +1 801  51 💤 +23  50 ❌ +12 

For more details on these failures, see this check.

Results for commit 97389cb. ± Comparison against base commit 04cb529.

@lumag
Dmitry Baryshkov (lumag) merged commit 5ac671e into qualcomm-linux:wrynose Sep 13, 2026
475 of 477 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants