Skip to content

musllinux: exclude RunCMake.InstallPrep from test suite - #748

Merged
henryiii merged 1 commit into
scikit-build:update-cmake-prfrom
smanders:musllinux-exclude-installprep
Nov 25, 2026
Merged

henryiii merged 1 commit into
scikit-build:update-cmake-prfrom
smanders:musllinux-exclude-installprep

Conversation

@smanders

Copy link
Copy Markdown
Contributor

Summary

Unblocks the musllinux wheel builds on #746 (CMake 4.5.0 update).

All 7 musllinux jobs fail on a single test:

The following tests FAILED:
	354 - RunCMake.InstallPrep (Failed)

with the underlying error:

CMake Error at cmake_install.cmake:87 (file):
  file Failed to run ldconfig

Root cause

CMake 4.5.0 adds a new Tests/RunCMake/InstallPrep directory (absent in 4.4.5). Its RuntimeDependencySet-install / RuntimeDependencies-install subtests exercise the install-time file(GET_RUNTIME_DEPENDENCIES) machinery, which resolves dependencies by running ldconfig. musl has no ldconfig, so the test fails — the same class of failure already excluded here for RunCMake.install and RunCMake.file-GET_RUNTIME_DEPENDENCIES (c.f. the linked discourse thread).

Auditing the 4.5.0 test tree, InstallPrep is the only directory touching that machinery not already in the musllinux exclusion list; 4.4.5 musllinux builds pass with the existing list.

Change

Append RunCMake.InstallPrep to RUN_CMAKE_TEST_EXCLUDE in both *-musllinux_* cibuildwheel overrides (the ppc64le/s390x stanza restates the full list).

Caveat

The suite runs ctest --stop-on-failure, so tests after #354 were never reached. This exclusion is required regardless; if a different new 4.5.0 test has an unrelated musl-specific failure, it will surface on the next run and can be handled additively.

CMake 4.5.0 adds a new RunCMake.InstallPrep test directory whose
RuntimeDependencySet/RuntimeDependencies install subtests resolve
runtime dependencies via ldconfig. musl has no ldconfig, so the
subtests fail with "file Failed to run ldconfig" -- the same class of
failure already excluded for ExportImport, RunCMake.install, and
RunCMake.file-GET_RUNTIME_DEPENDENCIES on musllinux.

All 7 musllinux wheel jobs on the CMake 4.5.0 update PR fail on this
single test (ctest --stop-on-failure). Audit of the 4.5.0 test tree
confirms InstallPrep is the only directory exercising the
GET_RUNTIME_DEPENDENCIES machinery not already in the exclusion list;
it does not exist in 4.4.5, whose musllinux builds pass.
@smanders
smanders force-pushed the musllinux-exclude-installprep branch from 356480a to 8a96aee Compare November 25, 2026 17:44
@smanders

Copy link
Copy Markdown
Contributor Author

Rebased onto the new update-cmake-pr head (CMake 4.5.1). The same RunCMake.InstallPrep exclusion applies — the test still calls ldconfig, which doesn't exist on musl.

@henryiii
henryiii merged commit af80d24 into scikit-build:update-cmake-pr Nov 25, 2026
27 of 28 checks passed
@smanders
smanders deleted the musllinux-exclude-installprep branch November 25, 2026 20:33
henryiii pushed a commit that referenced this pull request Nov 25, 2026
* [Bot] Update to CMake 4.5.1

* musllinux: exclude RunCMake.InstallPrep from test suite (#748)

CMake 4.5.0 adds a new RunCMake.InstallPrep test directory whose
RuntimeDependencySet/RuntimeDependencies install subtests resolve
runtime dependencies via ldconfig. musl has no ldconfig, so the
subtests fail with "file Failed to run ldconfig" -- the same class of
failure already excluded for ExportImport, RunCMake.install, and
RunCMake.file-GET_RUNTIME_DEPENDENCIES on musllinux.

All 7 musllinux wheel jobs on the CMake 4.5.0 update PR fail on this
single test (ctest --stop-on-failure). Audit of the 4.5.0 test tree
confirms InstallPrep is the only directory exercising the
GET_RUNTIME_DEPENDENCIES machinery not already in the exclusion list;
it does not exist in 4.4.5, whose musllinux builds pass.

---------

Co-authored-by: scikit-build-app-bot[bot] <173546081+scikit-build-app-bot[bot]@users.noreply.github.com>
Co-authored-by: smanders <anderson.scott.m@icloud.com>
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