-
Notifications
You must be signed in to change notification settings - Fork 43
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
Improve 'ros2 trace' command error handling & add end-to-end tests #54
Merged
christophebedard
merged 2 commits into
rolling
from
christophebedard/ros2-trace-command-end-to-end-tests-and-improvements
Apr 18, 2023
Merged
Improve 'ros2 trace' command error handling & add end-to-end tests #54
christophebedard
merged 2 commits into
rolling
from
christophebedard/ros2-trace-command-end-to-end-tests-and-improvements
Apr 18, 2023
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
christophebedard
force-pushed
the
christophebedard/ros2-trace-command-end-to-end-tests-and-improvements
branch
from
April 6, 2023 20:56
969bd22
to
e3ccea0
Compare
christophebedard
force-pushed
the
christophebedard/ros2-trace-command-end-to-end-tests-and-improvements
branch
2 times, most recently
from
April 6, 2023 22:10
f2f16f0
to
c3d1004
Compare
Hmm maybe these tests shouldn't rely on tracepoints being included. Or maybe they could be skipped if tracepoints are not included. |
christophebedard
force-pushed
the
christophebedard/ros2-trace-command-end-to-end-tests-and-improvements
branch
from
April 7, 2023 16:21
c3d1004
to
e4c037f
Compare
I did this. |
christophebedard
force-pushed
the
christophebedard/ros2-trace-command-end-to-end-tests-and-improvements
branch
3 times, most recently
from
April 8, 2023 19:25
90648ca
to
dd219e3
Compare
christophebedard
force-pushed
the
christophebedard/ros2-trace-command-end-to-end-tests-and-improvements
branch
from
April 10, 2023 20:45
dd219e3
to
f4ad3f3
Compare
christophebedard
force-pushed
the
christophebedard/ros2-trace-command-end-to-end-tests-and-improvements
branch
4 times, most recently
from
April 14, 2023 16:52
9c863ac
to
e789b18
Compare
mjcarroll
approved these changes
Apr 17, 2023
Signed-off-by: Christophe Bedard <christophe.bedard@apex.ai>
Signed-off-by: Christophe Bedard <christophe.bedard@apex.ai>
christophebedard
force-pushed
the
christophebedard/ros2-trace-command-end-to-end-tests-and-improvements
branch
from
April 17, 2023 23:38
e789b18
to
ed7c144
Compare
christophebedard
changed the title
Improve 'ros2 trace' command error handling and add end-to-end tests
Improve 'ros2 trace' command error handling & add end-to-end tests
Apr 18, 2023
christophebedard
deleted the
christophebedard/ros2-trace-command-end-to-end-tests-and-improvements
branch
April 18, 2023 01:27
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Closes #26
Closes #36
This improves error handling and error report in
tracetools_trace
. The common functions used byros2trace
(for theros2 trace
command) andtracetools_launch
(for theTrace
launch action) now do not print anything; they raise exceptions where appropriate. Then,ros2 trace
/Trace
can catch any error and report it using the appropriate method: print tostderr
forros2 trace
and log error forTrace
.This also makes sure to destroy the tracing session if it exists when tracing configuration fails.
Finally, this adds end-to-end tests for the
ros2 trace
command to cover the main cases. It also improves parameter validation for the session name.Signed-off-by: Christophe Bedard christophe.bedard@apex.ai