build-boards: use Python 3.13 for zephyr-cp board jobs - #11312
Open
lynt-smitka wants to merge 1 commit into
Open
build-boards: use Python 3.13 for zephyr-cp board jobs#11312lynt-smitka wants to merge 1 commit into
lynt-smitka wants to merge 1 commit into
Conversation
`python-version: 3.x` resolves to 3.14 now. Many of the Zephyr build requirements have no 3.14 wheels yet, so `west packages pip --install` builds 16 of them from source (grpcio_tools, ruamel.yaml.clib, esptool, docopt, ...) in every zephyr-cp board job: 303 s, against 33 s for the same command in the zephyr-tests job, which already pins 3.13. Pin 3.13 for the zephyr-cp port only; the other ports install their Python dependencies from the cached venv and are left on 3.x. A wide PR runs 29 zephyr-cp board jobs, about 4.5 minutes each.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
The zephyr-cp board jobs spend about 5 minutes each in west packages pip --install. The cause is the Python version: python-version: 3.x now resolves to 3.14, and for 3.14 several of the Zephyr build requirements have not published wheels yet. A wheel is a prebuilt package that pip only has to unpack; without one, pip downloads the source and compiles it on the runner, which for C extensions such as grpcio_tools takes minutes. With 3.13 the wheels exist, so the same install is a download.