Skip to content

Test workspace CI on macos #7576

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 3 commits into from
Mar 28, 2025
Merged

Test workspace CI on macos #7576

merged 3 commits into from
Mar 28, 2025

Conversation

drinkcat
Copy link
Contributor

@drinkcat drinkcat commented Mar 25, 2025

ci: Enable workspace tests on MacOS

chcon/runcon: Only build on Linux

chcon/runcon rely on the selinux crate, that is empty on
non-Linux platforms.

This doesn't matter for normal builds that use the default features
for the platform (explicitly trying to build them will fail though).

This is a problem when using cargo test --workspace though,
as that tries to build all packages, including uu_chcon/uu_runcon.

Just prevent compilation of these source files when target_os != linux.

Cargo.toml: We moved to edition 2024, drop = from fts-sys

Copy link

GNU testsuite comparison:

Skip an intermittent issue tests/timeout/timeout (fails in this run but passes in the 'main' branch)
Skipping an intermittent issue tests/misc/stdbuf (passes in this run but fails in the 'main' branch)

@drinkcat drinkcat force-pushed the ci-macos branch 2 times, most recently from 8bdcc78 to 42d6682 Compare March 26, 2025 13:14
Copy link

GNU testsuite comparison:

Skip an intermittent issue tests/timeout/timeout (fails in this run but passes in the 'main' branch)

chcon/runcon rely on the selinux crate, that is empty on
non-Linux platforms.

This doesn't matter for normal builds that use the default features
for the platform (explicitly trying to build them will fail though).

This is a problem when using `cargo test --workspace` though,
as that tries to build all packages, including uu_chcon/uu_runcon.

Just prevent compilation of these source files when target_os != linux.
Copy link

GNU testsuite comparison:

Skip an intermittent issue tests/timeout/timeout (fails in this run but passes in the 'main' branch)

@drinkcat drinkcat marked this pull request as ready for review March 27, 2025 16:44
@drinkcat
Copy link
Contributor Author

Unlike Windows, this is fairly manageable and issues are contained to 2 tools only.

@sylvestre sylvestre merged commit 1c75854 into uutils:main Mar 28, 2025
68 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