Skip to content
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

Resolve some todos #103

Merged
merged 4 commits into from
Aug 8, 2017
Merged

Resolve some todos #103

merged 4 commits into from
Aug 8, 2017

Conversation

dirk-thomas
Copy link
Contributor

@dirk-thomas dirk-thomas commented Aug 7, 2017

  • Remove obsolete TODOs
  • Move TODOs to a line with a comment (rather than an empty line)
  • use CMake 3.5 feature (file(GLOB LIST_DIRECTORIES ...)
  • compile installed Python modules and packages, add option to skip compilation

@dirk-thomas dirk-thomas added the in review Waiting for review (Kanban column) label Aug 7, 2017
@dirk-thomas dirk-thomas self-assigned this Aug 7, 2017
@@ -134,8 +134,7 @@ if(NOT _exported_library_names STREQUAL "")
endwhile()
endif()

# deduplicate @PROJECT_NAME@_LIBRARIES
# TODO deduplicate @PROJECT_NAME@_LIBRARIES
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

should we associate names to each TODO like we do in c++ ?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done.

Copy link
Contributor

@mikaelarguedas mikaelarguedas left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm except 2 questions

@@ -133,5 +133,3 @@ function(_ament_add_nose_test testname path)
LABELS "nose"
)
endfunction()

# TODO provide function to register all found tests separately
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm not sure what this TODO means exactly, and where has the function it refers to been implemented. Can you provide a pointer to that function ?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The idea was to introspect nosetest and register each individual test function as a separate CTest. I don't think we will purpose the idea though since that make reporting the results in separate JUnit files much more difficult and the runtime would be worse since each test would use a separate Python interpreter.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Could such a function provide the ability to flag / label test functions independently (in the vein of what is suggested in ros2/build_farmer#41 (comment)) ?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Tests can already be labels within Python. No need for CTest to get involved for that.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍 cool
@nuclearsandwich FYI

install(CODE
"execute_process(
COMMAND
\"${PYTHON_EXECUTABLE}\" \"-m\" \"compileall\"
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Question: should this accept a custom executable like add_nose_test ? (same below)

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It could, but until there is a use case when this is needed I wouldn't implement it.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

fair enough, windows will tell us soon enough if we need to pass a debug interpreter here

@mikaelarguedas
Copy link
Contributor

Looks good to me then, thanks @dirk-thomas for the explanations

@dirk-thomas dirk-thomas merged commit ce013d2 into master Aug 8, 2017
@dirk-thomas dirk-thomas deleted the resolve_some_todos branch August 8, 2017 17:38
@dirk-thomas dirk-thomas removed the in review Waiting for review (Kanban column) label Aug 8, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants