Skip to content

ci: run the Zephyr tests only when a change can reach them - #11327

Merged
tannewt merged 1 commit into
adafruit:mainfrom
MakerClassCZ:ci-zephyr-tests-gate
Sep 9, 2026
Merged

tannewt merged 1 commit into
adafruit:mainfrom
MakerClassCZ:ci-zephyr-tests-gate

Conversation

@lynt-smitka

Copy link
Copy Markdown

A first attempt at not running the Zephyr tests on pull requests that don't need them.

zephyr-tests has no condition, so it runs on every pull request, and takes about 30 minutes. Of the last 60 merged pull requests 23 changed nothing it builds - another port, a translation, a frozen library, a board definition.

The rule is written as what cannot reach the tests: docs/, frozen/, locale/, tests/ and ports other than zephyr-cp. Everything else runs them, so an unknown path never turns them off. A zephyr-tests failure on an earlier commit of the PR also runs them.

frozen/ is the one I'm least sure about - the port has no frozen modules today, but that could change.

zephyr-tests has no condition, so it runs on every pull request and takes
about 30 minutes, on the critical path. Of the last 60 merged pull requests
23 changed nothing it builds: another port, a translation, a frozen library
or a board definition.

Gate it the way mpy-cross is gated on the board matrix. The tests build
native_sim and the two bsim boards out of the shared sources, so a change
confined to docs, locale, frozen, the unix test suite or another port cannot
reach them; anything else, including an unknown path, runs them as before.
A previously failed zephyr-tests run also forces it, as with docs.
@dhalbert
dhalbert requested a review from tannewt September 8, 2026 02:38

@tannewt tannewt left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Frozen is fine for now. Thanks!

@tannewt
tannewt merged commit 56e13d3 into adafruit:main Sep 9, 2026
684 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.

2 participants