On ATF side it is named "is.exclusive".
MFC after: 1 month
Differential D47671
kyua: Support is_exclusive metadata coming from an ATF test case igoro on Nov 19 2024, 1:14 PM. Authored by Tags None Referenced Files
Subscribers
Details
On ATF side it is named "is.exclusive". MFC after: 1 month
Diff Detail
Event TimelineComment Actions I would like to share my thoughts regarding this. To be honest, it does not feel like an easy change from a high-level perspective. ATF itself does not support the exclusiveness concept, and at the same time, at least atf-sh is okay with having unknown metadata, so that only Kyua will read it and deal with that. But this is what we have, our toolset is a mix of ATF and Kyua, and both of them could be treated as a single tool many existing tests are based on. I had an idea to add this like a year ago, but I had no real use cases. And now I have an example of a single shell test program with multiple test cases, where most of the cases can be run in parallel (and even with execenv=jail), but some tests need to be exclusive, while there is no way to mark only specific test cases as exclusive. It's about jailmeta:maxbufsize test case here: https://reviews.freebsd.org/D47668. I might need to split max buf size cases onto separate test cases but I have to keep them together as a single test case for now with custom jail name to avoid clashing. And adding a separate shell script just for that looks like a redundancy, especially when some subroutines need to be shared. Comment Actions Thanks for raising this. To be honest I was thinking about it and decided to postpone such things due to the dilemma -- Kyua and ATF are separate projects and also very close to each other in our case. As long as Kyua has tight integration with ATF then, probably, we could augment its man page(s) to explicitly refer to the corresponding ATF naming. For example, kyuafile(5) could have ATF name reference per each metadata property, whether it is something ATF supports but names differently or ATF-based test cases can pass Kyua specific properties like "is exclusive". It seems to be useful to have a single place for Kyua metadata description with translation to ATF language, instead of a separate man page. If there is support for such approach then I could propose to do that as a separate patch. What do you think? Comment Actions Please open a PR against Comment Actions Thanks for reminding about testing. Please, find the PR here: https://github.com/freebsd/kyua/pull/245. Comment Actions Thanks! Please update the differential revision with the tests. Memory serves me correctly, CI on main might start failing if the tests aren't introduced.
Comment Actions Thank you for support. Kyua's tests are not configured yet on the FreeBSD side (in my todo with low priority). I would propose to keep this commit simple as it is right now to have less conflicts when it's time to merge from the vendor branch. I'm totally fine to add the test code change, but it can diverge more before the eventual merging. I guess we already have a lot of merge fun piled up there, I'm just worried about the person who is going to do the merge :). Do you accept this approach? Comment Actions If you could commit it directly to the freebsd/src:main, that would be helpful :) (I think it's better to get it in sooner so it gets some bake time on FreeBSD). |