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

BUG: Fix test_impossible_feature_enable failing without BASELINE_FEAT #26151

Merged
merged 1 commit into from Apr 17, 2024

Conversation

Vogtinator
Copy link
Contributor

If the build has no baseline features set, the test ended up setting e.g. NPY_ENABLE_CPU_FEATURES="ASIMDHP, None". This actually made the execution succeed, as the warning for decoding "None" overrode the error for the real feature. Fix the error handling there by removing the errorneous "return 0;", add a test for this, and avoid passing "None" by accident.

If the build has no baseline features set, the test ended up setting
e.g. NPY_ENABLE_CPU_FEATURES="ASIMDHP, None". This actually made the
execution succeed, as the warning for decoding "None" overrode the
error for the real feature. Fix the error handling there by removing
the errorneous "return 0;", add a test for this, and avoid passing
"None" by accident.
@Vogtinator
Copy link
Contributor Author

numpy/meson#12 is tangentially related. Without that PR, on arm it never built ASIMD.

@mattip mattip added triage review Issue/PR to be discussed at the next triage meeting and removed triage review Issue/PR to be discussed at the next triage meeting labels Apr 3, 2024
@mattip mattip merged commit 6ecfb44 into numpy:main Apr 17, 2024
62 checks passed
@mattip
Copy link
Member

mattip commented Apr 17, 2024

Thanks @Vogtinator

@Vogtinator Vogtinator deleted the featuretest branch April 18, 2024 06:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
Development

Successfully merging this pull request may close these issues.

None yet

2 participants