Skip to content
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

Skip running the tests on Windows Debug. #292

Merged
merged 2 commits into from
Jun 24, 2024

Conversation

clalancette
Copy link
Contributor

When we run CI on Windows Debug, Python expects to be able to find compiled libraries with an extra _d in their filename that contains the debugging ABI.

However, we don't currently have a debug library available for PyQt5, and thus when running under Windows Debug, the tests cannot succeed. While we could build a debug library for PyQt5, that is actually a massive undertaking. Instead, just skip these tests when we are on Windows Debug. While that loses us a bit of coverage, it won't matter much; we are still testing this on Windows (Release) and on Linux.

The way in which this patch determines that this is a Windows Debug interpreter is a little chintzy. It just uses the fact that the binary is named python_d.exe to discover that. I couldn't find another way to tell if this was a debug interpreter, but I am open to other ideas.

When we run CI on Windows Debug, Python expects to be able
to find compiled libraries with an extra _d in their filename
that contains the debugging ABI.

However, we don't currently have a debug library available for PyQt5,
and thus when running under Windows Debug, the tests cannot succeed.
While we could build a debug library for PyQt5, that is actually a
massive undertaking. Instead, just skip these tests when we are on
Windows Debug. While that loses us a bit of coverage, it won't matter
much; we are still testing this on Windows (Release) and on Linux.

The way in which this patch determines that this is a Windows Debug
interpreter is a little chintzy. It just uses the fact that the binary
is named python_d.exe to discover that. I couldn't find another way
to tell if this was a debug interpreter, but I am open to other ideas.

Signed-off-by: Chris Lalancette <[email protected]>
Thanks to Shane for figuring out this way to tell
if we are in a debug interpreter.

Signed-off-by: Chris Lalancette <[email protected]>
@clalancette
Copy link
Contributor Author

CI for this is in ros-visualization/python_qt_binding#142 (comment)

@clalancette clalancette merged commit 9a3e552 into rolling Jun 24, 2024
2 checks passed
@clalancette clalancette deleted the clalancette/skip-tests-windows-debug branch June 24, 2024 11:35
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.

None yet

2 participants