-
Notifications
You must be signed in to change notification settings - Fork 136
Allow users to select a subset of harness to run #2202
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
Conversation
|
Awesome change! this will come in really handy for the kani extension. Could you add an example invocation of the change to the description as well? |
|
I have a couple of non-blocking questions -
|
We previosly matched fully qualified and partially qualified names. It is also no longer an error if the harness filter matches more than one harness.
Great questions! I need to check how this argument configuration will work for configuration via
|
Substrings work great as well. Would it be possible to change the invokation to use the form |
I'd recommend against this. Allowing multiple |
|
@jaisnan I totally understand your point, and I totally agree that it is painful to pass multiple
|
|
I see, makes sense to me. Yeah, the second idea would be ergonomic as well, but honestly what we have works too. |
adpaco-aws
left a comment
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.
How does this impact the features that are supposed to only work for a single harness (e.g., stubbing)? I couldn't find the code that deals with that case, apologies if I missed it.
It's there, but it's not pretty. I'm currently working on removing that restriction, so I didn't want to spend too much time with this. Let me improve this to at least throw an error if more than one filter is given and if more than one harness matches the filter. Is that OK? Also, is there any other feature besides stubbing that relies on a single harness? I remember that we used to have that restriction for concrete playback, but that's no longer the case. |
Sounds good. I don't think you need to check both conditions though, just the latter.
I wasn't sure about concrete playback, but that's the only two that I had mind. Sorry about that. |
zhassan-aws
left a comment
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.
Thanks for implementing this @celinval! A couple of minor comments.
Description of changes:
Users can now select a subset of harnesses to run using
--harnessmultiple times. Previously users could either run a single harness or they had to run them all.For the example provided in #1778:
Users can select harnesses
aandbby running:In case of multiple matches, Kani will run all harnesses that matches at least one of the
--harnessargument.Resolved issues:
Resolves #1778
Related RFC:
Optional #ISSUE-NUMBER.
Call-outs:
Testing:
How is this change tested? New tests
Is this a refactor change? No
Checklist
By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 and MIT licenses.