Skip to content

use --install in installation tests on Windows #1310

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

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

bratpiorka
Copy link
Contributor

@bratpiorka bratpiorka commented May 12, 2025

This is a fix for the failing test_installation.py on Windows, introduced by #1285. The failures are related to the --target install command, which is not properly recognized on Windows. This pull request reverts the installation command to the previous version, which uses --install for Windows.

example of passed Windows Ninja job:
https://github.com/oneapi-src/unified-memory-framework/actions/runs/14972212328/job/42055589833?pr=1310

and Windows NMake job:
https://github.com/oneapi-src/unified-memory-framework/actions/runs/14972212328/job/42055589878?pr=1310

@bratpiorka bratpiorka force-pushed the rrudnick_fix_ninja branch from a3dfd44 to 71bfce1 Compare May 12, 2025 09:08
@bratpiorka bratpiorka force-pushed the rrudnick_fix_ninja branch 2 times, most recently from 07b22ab to 5f8174a Compare May 12, 2025 12:27
@bratpiorka bratpiorka changed the title todo use --install in installation tests on Windows May 12, 2025
@bratpiorka bratpiorka force-pushed the rrudnick_fix_ninja branch from 5f8174a to 429e79e Compare May 12, 2025 13:13
@bratpiorka bratpiorka marked this pull request as ready for review May 12, 2025 13:14
@bratpiorka bratpiorka requested a review from a team as a code owner May 12, 2025 13:14
@@ -181,7 +181,10 @@ def install_umf(self) -> None:
f"Error: Installation directory '{self.install_dir}' is not empty"
)

install_cmd = f"cmake --build {self.build_dir} --config {self.build_type.title()} --target install"
if platform.system() == "Windows":
install_cmd = f"cmake --install {self.build_dir} --config {self.build_type.title()} --prefix {self.install_dir}"
Copy link
Contributor

Choose a reason for hiding this comment

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

hmm didn't we just circle back to the original issue: #971 ?

Perhaps we should have various CMakes tested also on Windows...?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

no, the #971 issue is related to Ubuntu. I added several tests in previous PRs to reproduce this case in our CI. But I'll add testing of various CMake on Windows

@bratpiorka bratpiorka force-pushed the rrudnick_fix_ninja branch 20 times, most recently from a979ab0 to c8bb496 Compare May 14, 2025 08:17
@bratpiorka bratpiorka force-pushed the rrudnick_fix_ninja branch 26 times, most recently from 8341fc4 to befc4e7 Compare May 16, 2025 13:51
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.

3 participants