-
Notifications
You must be signed in to change notification settings - Fork 194
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
Yarpmanager to ensure stop wait #1051
Comments
Also, if/when this feature will be provided, it might have a terrific impact on how gracefully we'll be able to shut WYSIWYD main demo app 😃 |
That would be great indeed. It feels like this would be a great add-on for any project with a large amount of modules running. It would be great if @apaikan gets around in doing this - please let me know if I can help :). Best, |
@apaikan I didn't realize there was robotology/robot-testing-framework#54 to deal with multiple fixtures 👍 Do you think it'd be possible to implement the |
What about this? <ensure>
<wait> 5 </wait> <!-- by default when='start' -->
<wait when='start'> 5 </wait>
<wait when='stop'> 3 </wait>
</ensure> |
Hi @apaikan, did you start working on this? Would be a great feature to have :) |
@Tobias-Fischer just started 🙈 |
Great to hear, thanks a lot :). I'm happy to help implementing / try / test if you want, just let me know. |
@pattacini and @Tobias-Fischer I have just commited. Please let me know who do u feel about that before closing the issue. For the following application the behavior of the manager would be :
While this behavior seems logical for me, as we have for now, our starting process does not seems to be very useful especially in the following scenario:
Actually, as it is for now, the start wait does not imply any order in the execution of modules. It is only useful in automatic module execution (as it has been used in RTF fixture manager) to delay running test cases!!! <application>
<name>test</name>
<module>
<name>test_grabber</name>
<node>localhost</node>
<deployer>yarpdev</deployer>
<ensure>
<wait when="start"> 10 </wait>
<wait when='stop'> 15 </wait>
</ensure>
</module>
<module>
<name>yarpview</name>
<node>localhost</node>
<ensure>
<wait> 5 </wait>
<wait when='stop'> 10 </wait>
</ensure>
</module>
</application>
|
Thanks a lot @apaikan :). This will come in very, very handy. Best and thanks a lot, Tobi |
@Tobias-Fischer as @apaikan was saying the There aren't many applications where it is useful indeed. |
Hi @apaikan,
It would be really great if
yarpmanager
could handle also wait states upon shutting down the modules of an application. Something like this:Being the following snippet interpreted as a
start wait
by default to keep back-compatibility:This behavior would come in handy to address those RTF tests whose fixture contains e.g. the simulator and lots of components altogether, that is where closing them all at once would produce weird results.
I believe we can get away simply with
stop wait
to deal with such an unusual case, instead of coming up with very-principled-yet-difficult-maybe-not-working approach 😜The text was updated successfully, but these errors were encountered: