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

fix: include debug info on failures #946

Merged
merged 2 commits into from
Dec 6, 2023

Conversation

henryiii
Copy link
Member

@henryiii henryiii commented Oct 11, 2023

WIP, Adding debug info on failures.

@henryiii
Copy link
Member Author

The newly detailed error:

RuntimeError: Unable to cast Python instance of type <class 'numpy.ndarray'> to C++ type 'double'

@henryiii
Copy link
Member Author

henryiii commented Oct 11, 2023

This NumPy warning apparently has been around for a while:

DeprecationWarning: Conversion of an array with ndim > 0 to a scalar is deprecated, and will error in future. Ensure you extract a single element from your array before performing this operation.

No, actually that's a separate issue / test failure. But I think NumPy 1.25-1.26 is likely causing the breakage (other than that warning as error above) by changing the C API to no longer convert implicitly, which is causing the pybind11 error.

@henryiii
Copy link
Member Author

PS: Why is this only showing up in the coverage job?

@HDembinski HDembinski marked this pull request as ready for review December 6, 2023 17:28
@HDembinski HDembinski merged commit 503ff9f into scikit-hep:develop Dec 6, 2023
4 of 5 checks passed
@HDembinski
Copy link
Member

I need to investigate this further, thanks for this patch which helps.

The coverage job runs more tests, that's why it fails while the other checks pass.

@henryiii henryiii deleted the henryiii/ci/fix branch December 6, 2023 17:29
@henryiii
Copy link
Member Author

henryiii commented Dec 6, 2023

Okay, great, let me know if I can help.

HDembinski pushed a commit that referenced this pull request Dec 7, 2023
Adding debug info on failures.

---------

Signed-off-by: Henry Schreiner <[email protected]>
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.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