Skip to content

[SKIP SOFCI-TEST] zephyr: docker: change docker image to zephyr-lite #10082

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Jul 3, 2025

Conversation

redzynix
Copy link
Contributor

@redzynix redzynix commented Jun 30, 2025

Change docker image used in zephyr workflows to zephyr-lite built for the sof project.

zephyr-lite contains less toolchains compared to zephyr-build to fit into 14GB max storage of free tier runners.
Final size of zephyr-lite is appx 10.5GB vs 16.2GB of zephyr-build.

List of toolchains left in the docker:

aarch64-zephyr-elf
arm-zephyr-eabi
xtensa-amd_acp_6_0_adsp_zephyr-elf
xtensa-intel_ace15_mtpm_zephyr-elf
xtensa-intel_ace30_ptl_zephyr-elf
xtensa-intel_tgl_adsp_zephyr-elf
xtensa-mtk_mt8195_adsp_zephyr-elf
xtensa-nxp_imx8m_adsp_zephyr-elf
xtensa-nxp_imx8ulp_adsp_zephyr-elf
xtensa-nxp_imx_adsp_zephyr-elf
xtensa-nxp_rt500_adsp_zephyr-elf
xtensa-nxp_rt600_adsp_zephyr-elf
xtensa-nxp_rt700_hifi1_zephyr-elf
xtensa-nxp_rt700_hifi4_zephyr-elf

New docker also includes python3.12 which resolves: https://github.com/thesofproject/sof/actions/runs/16050152241/job/45290644811?pr=10091#step:8:179

Could NOT find Python3: Found unsuitable version "3.10.12", but required is
  at least "3.12.1" (found /usr/bin/python3, found components: Interpreter)

zephyr sparse probe run: https://github.com/thesofproject/sof/actions/runs/16051752607
zephyr probe run: https://github.com/thesofproject/sof/actions/runs/16051752595

docker was pushed to public thesofproject/zephyr-lite hub: https://hub.docker.com/r/thesofproject/zephyr-lite

Signed-off-by: Mateusz Redzynia [email protected]

@redzynix redzynix force-pushed the test-zephyr-lite-docker branch from 42f4438 to 03522f2 Compare July 1, 2025 09:37
Copy link
Member

@lgirdwood lgirdwood left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@redzynix good stuff - tests now passing, can you update the commit messages and clean up so we are ready for non draft status. Thanks !

@redzynix redzynix force-pushed the test-zephyr-lite-docker branch 3 times, most recently from 2a768f1 to 759d602 Compare July 3, 2025 13:16
Copy link
Member

@lgirdwood lgirdwood left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good - I would also state in the commit message the new size of the CI disk image. i.e. what this saves.

@@ -0,0 +1,77 @@
# MIT License
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can you make this BSD3c like most of teh other files for consistency.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done.

redzynix added 2 commits July 3, 2025 13:25
Change docker image used in zephyr workflows to zephyr-lite built
for the sof project.

zephyr-lite contains less toolchains compared to zephyr-build to fit
into 14GB max storage.
Final size of zephyr-lite is appx 10.5GB vs 16.2GB of zephyr-build.

Signed-off-by: Mateusz Redzynia <[email protected]>
zephyr-lite is a new docker image based on zephyr-build to fit within
storage limit of current free tier runners.

Signed-off-by: Mateusz Redzynia <[email protected]>
@redzynix redzynix force-pushed the test-zephyr-lite-docker branch from 759d602 to 8eabbd6 Compare July 3, 2025 13:27
@redzynix redzynix changed the title [SKIP SOFCI-TEST] zephyr: docker: change docker image to zephyr-lite[DNM] [SKIP SOFCI-TEST] zephyr: docker: change docker image to zephyr-lite Jul 3, 2025
@redzynix redzynix force-pushed the test-zephyr-lite-docker branch from 8eabbd6 to d282ff1 Compare July 3, 2025 13:50
@redzynix redzynix marked this pull request as ready for review July 3, 2025 13:52
Copy link
Collaborator

@kv2019i kv2019i left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Excellent, the github workflows are back to green with this one!

Copy link
Member

@lgirdwood lgirdwood left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice space savings for CI :)

@lgirdwood lgirdwood merged commit cdc0fcf into thesofproject:main Jul 3, 2025
36 of 44 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