Skip to content

Increase test coverage of rcl_action#663

Merged
brawner merged 5 commits intomasterfrom
brawner/rcl_action-tests
May 28, 2020
Merged

Increase test coverage of rcl_action#663
brawner merged 5 commits intomasterfrom
brawner/rcl_action-tests

Conversation

@brawner
Copy link
Copy Markdown
Contributor

@brawner brawner commented May 27, 2020

This boosts the coverage of rcl_action tests.

  • Linux Build Status
  • Linux-aarch64 Build Status
  • macOS Build Status
  • Windows Build Status

@brawner brawner requested a review from jacobperron May 27, 2020 22:55
@brawner brawner force-pushed the brawner/rcl_action-tests branch 2 times, most recently from 83e4830 to 1dbe6bb Compare May 27, 2020 23:03
@brawner
Copy link
Copy Markdown
Contributor Author

brawner commented May 27, 2020

Force pushed white-space fix for uncrustify error.
Build Status

@jacobperron
Copy link
Copy Markdown
Member

I'm still looking over test_wait.cpp.

brawner and others added 4 commits May 28, 2020 12:23
Signed-off-by: Stephen Brawner <brawner@gmail.com>
Signed-off-by: Stephen Brawner <brawner@gmail.com>
Signed-off-by: Stephen Brawner <brawner@gmail.com>
Signed-off-by: Stephen Brawner <brawner@gmail.com>
@brawner brawner force-pushed the brawner/rcl_action-tests branch from 1dbe6bb to 5a3ffba Compare May 28, 2020 19:25
@brawner
Copy link
Copy Markdown
Contributor Author

brawner commented May 28, 2020

Addressed PR feedback and rerunning tests:

  • Linux Build Status
  • Linux-aarch64 Build Status
  • macOS Build Status
  • Windows Build Status

@brawner brawner requested a review from jacobperron May 28, 2020 19:28
@jacobperron
Copy link
Copy Markdown
Member

Look like test_server_wait_set_get_entities_ready isn't working on macOS and Windows.

@brawner brawner force-pushed the brawner/rcl_action-tests branch from 8c08084 to 99787a6 Compare May 28, 2020 21:57
@brawner
Copy link
Copy Markdown
Contributor Author

brawner commented May 28, 2020

I think I took care of the memory error. Checking again:

  • Linux Build Status
  • Linux-aarch64 Build Status
  • macOS Build Status
  • Windows Build Status

Signed-off-by: Stephen Brawner <brawner@gmail.com>
@brawner brawner force-pushed the brawner/rcl_action-tests branch from 99787a6 to 4b0497b Compare May 28, 2020 22:15
@brawner
Copy link
Copy Markdown
Contributor Author

brawner commented May 28, 2020

About 20 lines short (out of 1030) to reach 95% coverage. Guess that will have to do for now.

The automated build.ros2.org check failed when I pushed the most recent commit because the nodes in rcl-action interfered with rcl's tests. Not sure why since they are run sequentially. I force pushed again and it passed. Hopefully this doesn't show up regularly in nightlies.

Copy link
Copy Markdown
Member

@jacobperron jacobperron left a comment

Choose a reason for hiding this comment

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

LGTM pending CI

@brawner brawner merged commit b786cea into master May 28, 2020
@delete-merged-branch delete-merged-branch bot deleted the brawner/rcl_action-tests branch May 28, 2020 23:02
@ivanpauno
Copy link
Copy Markdown
Member

This introduced 11 new build warnings in nightlies https://ci.ros2.org/view/nightly/job/nightly_linux_release/1557/gcc/new/

return GOAL_STATE_UNKNOWN;
}
assert(GOAL_STATE_ACCEPTED == state || GOAL_STATE_EXECUTING == state);
assert(GOAL_EVENT_CANCEL_GOAL == event);
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

assert is compiled out in release mode, that's why the new warnings.

why a PR titled "Increase test coverage ..." is changing behavior?
If a behavior change was needed, that should've been part of a different PR (or at least, commits shouldn't have been squashed)

@brawner
Copy link
Copy Markdown
Contributor Author

brawner commented May 29, 2020 via email

@ivanpauno
Copy link
Copy Markdown
Member

This doesn’t actually change behavior, the if statements were checking conditions which were impossible based on logic elsewhere.

Sounds good to me then!

@brawner
Copy link
Copy Markdown
Contributor Author

brawner commented May 29, 2020

Addressed in #666

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.

3 participants