-
Notifications
You must be signed in to change notification settings - Fork 10
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
Efficiency get entity search [12001] #110
base: main
Are you sure you want to change the base?
Conversation
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.
Small things mostly.
I do not know why the coverage job has not been run. It would be interesting to analyze its results.
d435910
to
6843bf5
Compare
.github/workflows/test_colcon.meta
Outdated
@@ -15,7 +15,7 @@ | |||
"-DBUILD_DOCUMENTATION=ON", | |||
"-DBUILD_TESTS=ON", | |||
"-DCMAKE_BUILD_TYPE=Debug", | |||
"-DCMAKE_EXPORT_COMPILE_COMMANDS=ON", |
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 that removing this line is preventing the coverage job to 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.
Not sure about it.
Added in commit 302cb09 to check.
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.
Let us see if it works now
302cb09
to
ef43f17
Compare
Codecov Report
@@ Coverage Diff @@
## main #110 +/- ##
==========================================
+ Coverage 58.89% 59.55% +0.65%
==========================================
Files 31 31
Lines 4107 4117 +10
Branches 2169 2160 -9
==========================================
+ Hits 2419 2452 +33
- Misses 54 55 +1
+ Partials 1634 1610 -24
Continue to review full report at Codecov.
|
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.
Reverting the changes to the CI have correctly generated the coverage report again. Looking into it I want to bring attention into these lines:
- https://app.codecov.io/gh/eProsima/Fast-DDS-statistics-backend/compare/110/diff#D1L1164: this line is partially covered (it also occurs with some other entities
PROCESS
,USER
,DOMAIN
, andTOPIC
) whereas in this other case is completely covered. Consider adding some new testcases to the select test to fully cover these lines if possible. - https://app.codecov.io/gh/eProsima/Fast-DDS-statistics-backend/compare/110/diff#D1L1507: with current values returned by
get_data_supported_entity_kinds
this line and two other below are not covered. Maybe a test where the function is mocked to return values that force this logic would be interesting to have.
It would be interesting to analyze why the partial coverage lines are fully covered for the The second point is more clear to me. If the current logic does not allow the condition, then we can remove it altogether or convert it to an assert. Otherwise, we need a test (probably with a mock, as suggested) in order to check the correct behavior. |
Signed-off-by: jparisu <[email protected]>
Signed-off-by: jparisu <[email protected]>
…nd Debug mode Signed-off-by: jparisu <[email protected]>
Signed-off-by: jparisu <[email protected]>
Signed-off-by: jparisu <[email protected]>
Signed-off-by: jparisu <[email protected]>
Signed-off-by: jparisu <[email protected]>
Signed-off-by: jparisu <[email protected]>
Signed-off-by: jparisu <[email protected]>
dec3d65
to
36c5f3e
Compare
There have been several changes. Regarding coverage fails:
|
Signed-off-by: jparisu <[email protected]>
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.
LGTM though it needs to be rebased
Features:
EntityKind
to search inget_entity
call more efficiently in the case the kind of the entity is known.colcon.meta
in CI so it is compiled in Release and Debug (should speed up clang)ToDo:
Must discuss if the public API could be extended using the
EntityKind
in several methods to speed up the search in entity database.