-
Notifications
You must be signed in to change notification settings - Fork 401
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
Systematic testing #2658
Comments
A way to cover most of the use cases from the bindings is to test:
This should catch 99% of the issues. Other issues would be in the downstream projects themselves. |
I concur. I too have had my annoying small bugs or missing templates:
That is also why I proposed What I was planning to do is to write a Python module with most of the xtensor's functions with types |
I'm not sure that we can; but that should not be a blocker. Also I'm not sure we need to tests with pytensor and pyarray (or that means the tests should leave in another repo), as long as we tests on "containers" with similar properties (like the signed int shapes). |
@JohanMabille remember we also had that |
An initial proposition for the Python binding : xtensor-stack/xtensor-python#288 . It would be great if we can discuss this a bit. Furthermore:
|
Tests typically use the
xt::xarray
, sometimesxt::xtensor
, but it turns there are some subtle differences between all available containers/expressions/views that leads to error when switching one for another.A few issues have been caught only when reported by users, who then have to wait for another release to get the fix. For instance
Tests should be refactor and templated to systematically run with all
xt::xtensor_fixed
xt::xtensor
xt::xarray
Since this may generate a lot of tests, we would need to have strategy to not run/compile all of them at the same time (perhaps that would be only in CI, in parallel).
I am unsure if testing with project in other repositories (language bindings) should be done here or there.
Depending if the fix needs to be in xtensor or in the other repository, there will always be a case or PR deadlock.
The text was updated successfully, but these errors were encountered: