-
-
Notifications
You must be signed in to change notification settings - Fork 2.7k
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
Resolve param indices using param values, not parameterset index #11257
base: main
Are you sure you want to change the base?
Conversation
@sadra-barikbin Can you please rebase this on latest main? |
…rmining-param-indices-in-metafunc-parametrize
…rmining-param-indices-in-metafunc-parametrize
to use 'pytester.runpytest' instead of using testing/python/metafunc.py::TestMetafunc::Metafunc to see if coverage get fixed
…rmining-param-indices-in-metafunc-parametrize
…rmining-param-indices-in-metafunc-parametrize
…rmining-param-indices-in-metafunc-parametrize
054a0ae
to
18b7147
Compare
…rmining-param-indices-in-metafunc-parametrize
…-duplicate-values-when-determining-param-indices-in-metafunc-parametrize' into Improvement-catch-duplicate-values-when-determining-param-indices-in-metafunc-parametrize
Apologies but I'll be delayed in reviewing this, I'm still down with a cold It would have been nice to land this in 8.x |
It's alright. I hope you recover soon. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
i think we have to document this better
from my pov we assign parameters that are used multiple times in a expanded/multiplied parameter set the index of the firs occurrence
this can be seen as approximation of a "multi dimensional" index from filtered cross-product
…rmining-param-indices-in-metafunc-parametrize
…rmining-param-indices-in-metafunc-parametrize
@bluetech , could you please review the PR too? |
Hi @sadra-barikbin, do we have any plan to merge this PR, please? cc. @RonnyPfannschmidt |
…rmining-param-indices-in-metafunc-parametrize
for more information, see https://pre-commit.ci
Just resolved a minor conflict. Let's see if we can get this merged as it is already approved. |
Our shiny new bot also enforces changelog entries now, so this needs to be added before it can be merged - could you please add that @sadra-barikbin? |
@sadra-barikbin there's another merge conflict to be resolved in addition to the need of having a changelog fragment. |
I resolved the conflict but this PR introduces is a breaking change with regard to how indices are assigned to the direct params of the test functions (hence one of the tests fail). Currently, when whole parametrizations of a function take place ,the indices of a direct param is assigned to its occurrences sequentially all at once: Lines 1452 to 1456 in f373974
To be able to merge this PR, I should bring the |
To compute param indices smarter when user passes multiple parameter sets with duplicate values to
parametrize
in order to have a better reordering experience. Currently we have :resulting in inefficient ordering i.e.
It's a follow-up to #11220 .