Skip to content

test: fix test collection failure when clang is not installed#245

Merged
bhcopeland merged 2 commits intokernelci:masterfrom
roxell:fix-test-collection-failure
Feb 10, 2026
Merged

test: fix test collection failure when clang is not installed#245
bhcopeland merged 2 commits intokernelci:masterfrom
roxell:fix-test-collection-failure

Conversation

@roxell
Copy link
Copy Markdown
Collaborator

@roxell roxell commented Feb 10, 2026

The clang_version variable was evaluated at module level during test collection which causes a FileNotFoundError when clang is not available. This broke the deb and rpm package builds in CI since those containers dont have clang installed.

Replace the subprocess call with a simple shutil.which check, same pattern as the existing lld check on the same test. The clang 10 version check is not needed anymore since clang 10 is from 2020.

The clang_version variable was evaluated at module level during test
collection which causes a FileNotFoundError when clang is not available.
This broke the deb and rpm package builds in CI since those containers
dont have clang installed.

Replace the subprocess call with a simple shutil.which check, same
pattern as the existing lld check on the same test. The clang 10 version
check is not needed anymore since clang 10 is from 2020.

Signed-off-by: Anders Roxell <anders.roxell@linaro.org>
@roxell roxell force-pushed the fix-test-collection-failure branch from d26b3a9 to 86605b6 Compare February 10, 2026 09:23
Drop the custom release script and the duplicated packaging targets
from the Makefile. Use tuxpkg instead which handles all of this already.

The old release script had flit publish between tag and push --tags
which caused a half done state when flit failed. tuxpkg does the
release in a safer order (commit, tag, push, push --tags) and lets
CI handle the pypi upload.

Signed-off-by: Anders Roxell <anders.roxell@linaro.org>
@roxell roxell force-pushed the fix-test-collection-failure branch from 1f4175c to 542b617 Compare February 10, 2026 11:12
@bhcopeland bhcopeland merged commit 8e8beca into kernelci:master Feb 10, 2026
20 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