-
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
Iox #454 create test file for iceoryx roudi and roudi app #587
Iox #454 create test file for iceoryx roudi and roudi app #587
Conversation
…and roudi app Signed-off-by: Jimmy Belloche <[email protected]>
Signed-off-by: Jimmy Belloche <[email protected]>
…yx#454-create-test-file-for-iceoryx-roudi-and-roudi-app
Signed-off-by: Jimmy Belloche <[email protected]>
Signed-off-by: Jimmy Belloche <[email protected]>
Signed-off-by: Jimmy Belloche <[email protected]>
Signed-off-by: Jimmy Belloche <[email protected]>
Signed-off-by: Jimmy Belloche <[email protected]>
Signed-off-by: Jimmy Belloche <[email protected]>
Signed-off-by: Jimmy Belloche <[email protected]>
Signed-off-by: Jimmy Belloche <[email protected]>
Signed-off-by: Jimmy Belloche <[email protected]>
Signed-off-by: Jimmy Belloche <[email protected]>
Signed-off-by: chiranjeevi maddi <[email protected]>
Signed-off-by: Jimmy Belloche <[email protected]>
Signed-off-by: Jimmy Belloche <[email protected]>
Signed-off-by: Jimmy Belloche <[email protected]>
|
||
auto cmdLineArgs = cmdLineParser.parse(numberOfArgs, args); | ||
|
||
IceoryxRoudiApp_Child roudi(cmdLineArgs.value(), iox::RouDiConfig_t().setDefaults()); |
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 do not want this kind of behavior or is there a use case that the RoudiApp
should be instantiated twice in the same process?! @budrus
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 guess this come from the current implementation. The RouDiLock
is located in IceOryxRouDiComponents
.
The Components are only instantiated when you call IceOryxRouDiApp::run()
. Here in this case only the class is instantiated... Maybe the lock should be relocated to fire earlier.
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.
Well, nothing bad happens until run
is called, so this is no problem. What's instantiated is just a small shell around some configuration data, the actual roudi is created in run
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.
Yeah, the lock's description is Locks the socket for preventing multiple start of RouDi
, so, is the intention just to prevent run
or to instantiate it? In case of run
-only another test for that is missing?!
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.
from my point of view it should only be run
, else you cannot execute ./iox-roudi -v
anymore when RouDi is running. All the stuff that can break if two instances are running happens in the run
method
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.
Makes sense and I'm fine with that. So, is the PR complete now or should a 2nd run be tested?
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.
As discussed in the dev meeting, a test for a 2nd run will be done in #621.
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.
Should the RoudiApp
be instantiatable twice in the same process?
Signed-off-by: Jimmy Belloche <[email protected]>
Signed-off-by: Jimmy Belloche <[email protected]>
Codecov Report
@@ Coverage Diff @@
## master #587 +/- ##
==========================================
+ Coverage 71.80% 73.16% +1.35%
==========================================
Files 306 309 +3
Lines 10453 10654 +201
Branches 1959 1945 -14
==========================================
+ Hits 7506 7795 +289
+ Misses 2157 2097 -60
+ Partials 790 762 -28
Flags with carried forward coverage won't be shown. Click here to find out more.
|
Signed-off-by: Jimmy Belloche <[email protected]>
…-create-test-file-for-iceoryx-roudi-and-roudi-app Iox eclipse-iceoryx#454 create test file for iceoryx roudi and roudi app
Pre-Review Checklist for the PR Author
iox-#123-this-is-a-branch
)iox-#123 commit text
)git commit -s
)task-list-completed
)Notes for Reviewer
Test for a 2nd run will be done in #621.
Checklist for the PR Reviewer
Post-review Checklist for the PR Author
References