Skip to content

build-boards: use Python 3.13 for zephyr-cp board jobs - #11312

Open
lynt-smitka wants to merge 1 commit into
adafruit:mainfrom
MakerClassCZ:ci-zephyr-python-313
Open

build-boards: use Python 3.13 for zephyr-cp board jobs#11312
lynt-smitka wants to merge 1 commit into
adafruit:mainfrom
MakerClassCZ:ci-zephyr-python-313

Conversation

@lynt-smitka

Copy link
Copy Markdown

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.

`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.
@dhalbert
dhalbert requested a review from tannewt September 4, 2026 20:58
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.

1 participant