Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

ci: fix space issues in docker #138

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
DhruvaG2000 merged 1 commit into zephyrproject-rtos:next from DhruvaG2000:ci-fix-space
Oct 14, 2025

Conversation

@DhruvaG2000
Copy link
Member

@DhruvaG2000 DhruvaG2000 commented Oct 7, 2025

github actions keep failing due to errors like these:

failed to register layer: write /opt/toolchains/zephyr-sdk-0.17.4/xtensa-nxp_rt700_hifi4_zephyr-elf/libexec/gcc/xtensa-nxp_rt700_hifi4_zephyr-elf/12.2.0/cc1: no space left on device
Error: Docker pull failed with exit code 1

Fix this by freeing up disk space on the runner before the job runs.

@DhruvaG2000 DhruvaG2000 force-pushed the ci-fix-space branch 3 times, most recently from e642844 to ecd0772 Compare October 12, 2025 18:09
@DhruvaG2000 DhruvaG2000 force-pushed the ci-fix-space branch 4 times, most recently from 5e11d41 to 7360534 Compare October 12, 2025 18:41
Copy link
Member Author

@pillo79 will clean up the commits later, but I have borrowed a few stuff from the arduino fork here, while also makig sure it still works with the way this repo is... hope to get your reviews!

pillo79 reacted with thumbs up emoji

Copy link
Contributor

@pillo79 pillo79 left a comment

Choose a reason for hiding this comment

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

LGTM, minor remarks!

Comment on lines 34 to 39
NEEDED_HALS=$(grep 'build.zephyr_hals=' $MODULE_PATH/boards.txt | cut -d '=' -f 2 | xargs -n 1 echo | sort -u)
HAL_FILTER="-hal_.*"
for hal in $NEEDED_HALS; do
HAL_FILTER="$HAL_FILTER,+$hal"
done
echo "HAL_FILTER=$HAL_FILTER" | tee -a $GITHUB_ENV
Copy link
Contributor

@pillo79 pillo79 Oct 13, 2025
edited
Loading

Choose a reason for hiding this comment

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

Note that this depends on boards.txt, which is Arduino packaging stuff. For the module test I think it would be better to hardcode the minimal list of HALs you need for the tests below (or just download everything, this is just a CI time saver 🙂).

Copy link
Member Author

@DhruvaG2000 DhruvaG2000 Oct 13, 2025

Choose a reason for hiding this comment

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

@pillo79 thanks for the review. Yes I will remove this chunk for now, I don't think minimal HAL is required since I mostly commented out the filter part and it is working fine without it too.
Let's add it back later if we feel like we're running out of space again. How does that sound?

Take inspiration from the Arduino's fork [1] to improve the
CI for building and testing samples in the project by using
the ci-base zephyr image to save on size.
Use the new $MODULE_PATH to specify paths in the
setup stages.
[1] https://github.com/arduino/ArduinoCore-zephyr/blob/main/.github/workflows/build.yml
Signed-off-by: Dhruva Gole <d-gole@ti.com>
@DhruvaG2000 DhruvaG2000 merged commit d9e27d8 into zephyrproject-rtos:next Oct 14, 2025
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

@soburi soburi Awaiting requested review from soburi

1 more reviewer

@pillo79 pillo79 pillo79 approved these changes

Reviewers whose approvals may not affect merge requirements

Assignees

No one assigned

Labels

None yet

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

AltStyle によって変換されたページ (->オリジナル) /