Skip to contentSkip to conversation

Configuring gitlab runner for Yocto

DISCUSSION Kjeld Flarup 3 participants 3 messages Jul 5, 2024 – Jul 8, 2024

lore
Share & tools
lore
#0 lore raw

I run  Yocto builds in a gitlab runner, but it always does rebuilds of some packages. Not all packages fortunately, but it always does a rootfs build.

When I do a fresh start with a git clone of my yocto manifest, and a bitbake on my own PC. Everything is fetched from my sstate mirror. By fresh, I mean that no tmp folder exists and has to be rebuild.

Thus I have some environment difference in the gitlab which causes Yocto to do some rebuilds.

* I use the same docker container
* I tried to do the clone and build on the build server, but outside the gitlab-runner. No rebuilds.
* I mapped a local disk into the containers /builds
* I removed git commands from recipes

Does anyone have some recommendations for configuring a gitlab runner for Yocto?

--
--
Regards
Kjeld Flarup
DEIF A/S

#1 lore raw

Hi Kjeld,
I don't know what the issue is, but have you checked this link? ->
https://wiki.yoctoproject.org/wiki/TipsAndTricks/Understanding_what_changed_(diffsigs_etc)

I think it would help you debug the issue.

Étienne

Quoted 40 lines · Kjeld Flarup via lists.yoctoproject.org

I run Yocto builds in a gitlab runner, but it always does rebuilds of some packages. Not all packages fortunately, but it always does a rootfs build.

When I do a fresh start with a git clone of my yocto manifest, and a bitbake on my own PC. Everything is fetched from my sstate mirror. By fresh, I mean that no tmp folder exists and has to be rebuild.

Thus I have some environment difference in the gitlab which causes Yocto to do some rebuilds.

- I use the same docker container
- I tried to do the clone and build on the build server, but outside the gitlab-runner. No rebuilds.
- I mapped a local disk into the containers /builds
- I removed git commands from recipes

Does anyone have some recommendations for configuring a gitlab runner for Yocto?

--
--
Regards
Kjeld Flarup
DEIF A/S
-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group. View/Reply Online (#63439):
https://urldefense.proofpoint.com/v2/url?u=https-3A__lists.yoctoproject.org_g_yocto_message_63439&d=DwIFaQ&c=ncDTmphkJTvjIDPh0hpF_4vCHvabgGkICC2epckfdiw&r=AhkbNonVuMIGRfPx_Qj9TsRih1DULJTKUkSGa66m67E&m=v4T0_TNpuPEsZLHUtFf_QkwbBG_ooUbRNeK_rVP01-kVBwDhdRhEcCYHHr8J0ZXg&s=ObrlwM_oU3JU4QU-5Goae113of82ZZ6QjrqwTYLAKYw&e=
Mute This Topic:
https://urldefense.proofpoint.com/v2/url?u=https-3A__lists.yoctoproject.org_mt_107054918_7048771&d=DwIFaQ&c=ncDTmphkJTvjIDPh0hpF_4vCHvabgGkICC2epckfdiw&r=AhkbNonVuMIGRfPx_Qj9TsRih1DULJTKUkSGa66m67E&m=v4T0_TNpuPEsZLHUtFf_QkwbBG_ooUbRNeK_rVP01-kVBwDhdRhEcCYHHr8J0ZXg&s=K_a3rvbl354t_dtGmDtNre7IIvu1Ev6pqJLwYmpc9ic&e=
Group Owner: [email protected] Unsubscribe:
https://urldefense.proofpoint.com/v2/url?u=https-3A__lists.yoctoproject.org_g_yocto_unsub&d=DwIFaQ&c=ncDTmphkJTvjIDPh0hpF_4vCHvabgGkICC2epckfdiw&r=AhkbNonVuMIGRfPx_Qj9TsRih1DULJTKUkSGa66m67E&m=v4T0_TNpuPEsZLHUtFf_QkwbBG_ooUbRNeK_rVP01-kVBwDhdRhEcCYHHr8J0ZXg&s=CAEhVfGR8AtqDETjIHkN27SmLLis8soUa08ZNhcyih4&e=
[[email protected]]
-=-=-=-=-=-=-=-=-=-=-=-

#2 lore raw
In reply to Kjeld Flarup
Quoted 6 lines · Kjeld Flarup via lists.yoctoproject.org

I run Yocto builds in a gitlab runner, but it always does rebuilds of some packages. Not all packages fortunately, but it always does a rootfs build.

When I do a fresh start with a git clone of my yocto manifest, and a bitbake on my own PC. Everything is fetched from my sstate mirror. By fresh, I mean that no tmp folder exists and has to be rebuild.

Quoted 7 lines

Thus I have some environment difference in the gitlab which causes Yocto to do some rebuilds.

• I use the same docker container
• I tried to do the clone and build on the build server, but outside the gitlab-runner. No rebuilds.
• I mapped a local disk into the containers /builds
• I removed git commands from recipes
Does anyone have some recommendations for configuring a gitlab runner for Yocto?

Obviously a rootfs build is expected as they can’t come from sstate. Can you replicate with eg poky and core-image-minimal, and if so can you list what tasks are executed?

Ross