Open wjwwood opened 10 years ago
I added a new argument to rospy.Service (in ros_comm) so the error handling code can be overriden to suppress the rospy.logerr output. See https://github.com/esteve/ros_comm/compare/custom-error-handler
Though I don't know if that was the sole reason for patching ServiceImpl, would that change in rospy be enough?
Interesting that the coverage went down. I wonder if the patch to rospy is not sufficient. I am pretty sure that I tested it though. Can you look into why the coverge went down?
Sure, no problem. src/capabilities/server.py has fairly low coverage (31%), I'll see if I can improve it a bit.
Specifically src/capabilities/server.py
has 100% coverage in the master branch. My first thought is that somehow coverage is not getting reported for things in rospy callbacks (which is what this hack fixed: https://github.com/osrf/capabilities/blob/master/scripts/capability_server#L5-22).
@wjwwood Okay, I must have read the Coveralls and Travis output wrong. The change in the Service constructor signature makes the code in this branch incompatible with the released version of rospy, and thus the tests never run past the first call to the Service constructor (see https://coveralls.io/files/108492233#L281).
Also, Travis shouldn't report that the build was correct despite the errors (https://travis-ci.org/osrf/capabilities/builds/16155234#L1321), I'll make it a bit more robust.
Yes, there looks to be a false positive there.
It is weird that this is still not getting back the coverage, it is like the fix in rospy was not sufficient to replace the hack we had in there. @esteve can you look into this, testing the coverage from source on the latest version of rospy
's debs for hydro?
@esteve bump, lets try to resolve this by early next week if possible, I am ramping up for a 0.1.0
release soon and I would like to have these out by then.
@wjwwood I created a pull request for ros_comm with the changes for defining custom handlers for errors [1]. Once we merge that, we can merge this pull request.
Waiting for ros/ros_comm to be released before merging this branch.
This hack:
https://github.com/osrf/capabilities/blob/master/scripts/capability_server#L5-L22
Can be removed since
rospy
version1.9.50
is now out:http://www.ros.org/debbuild/hydro.html?q=rospy http://www.ros.org/debbuild/groovy.html?q=rospy
We should also investigate making an upstream fix/change for this hack:
https://github.com/osrf/capabilities/blob/master/src/capabilities/server.py#L91-L116