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

command line tool to report issue #1187

Closed
garaemon opened this issue Oct 16, 2015 · 2 comments
Closed

command line tool to report issue #1187

garaemon opened this issue Oct 16, 2015 · 2 comments

Comments

@garaemon
Copy link
Member

We need simple command line tool to report issue.

jsk-ros-pkg/jsk_visualization#513

The tool should summarize versions of software like this.

It should report about:

  • git branch
  • git remote branch
  • git commit md5sum
  • git status
  • apt version

sample

report about jsk_pcl_ros

report about jsk_pcl_ros

jsk_pcl_ros branch is dron

jsk_pcl_ros git status

# On branch dron
# Changes not staged for commit:
#   (use "git add <file>..." to update what will be committed)
#   (use "git checkout -- <file>..." to discard changes in working directory)
#
#   modified:   ../.travis (new commits)
#
# Untracked files:
#   (use "git add <file>..." to include in what will be committed)
#
#   scripts/05-06.csv
#   scripts/08-09.csv
#   scripts/10-11.csv
#   scripts/15-16.csv
#   scripts/21-22.csv
#   scripts/25-26.csv
#   scripts/foo.png
#   scripts/stereo_error.eps
no changes added to commit (use "git add" and/or "git commit -a")

report about catkin

catkin is not installed from source

report about console_bridge

console_bridge is not installed from source

report about cpp_common

cpp_common is not installed from source

report about rostime

rostime is not installed from source

report about roscpp_traits

roscpp_traits is not installed from source

report about roscpp_serialization

roscpp_serialization is not installed from source

report about genmsg

genmsg is not installed from source

report about genpy

genpy is not installed from source

report about message_runtime

message_runtime is not installed from source

report about gencpp

gencpp is not installed from source

report about genlisp

genlisp is not installed from source

report about message_generation

message_generation is not installed from source

report about rosbuild

rosbuild is not installed from source

report about rosconsole

rosconsole is not installed from source

report about std_msgs

std_msgs is not installed from source

report about rosgraph_msgs

rosgraph_msgs is not installed from source

report about xmlrpcpp

xmlrpcpp is not installed from source

report about roscpp

roscpp is not installed from source

report about roscpp_tutorials

roscpp_tutorials is not installed from source

report about std_srvs

std_srvs is not installed from source

report about topic_tools

topic_tools is not installed from source

report about bond

bond is not installed from source

report about smclib

smclib is not installed from source

report about bondcpp

bondcpp is not installed from source

report about class_loader

class_loader is not installed from source

report about rospack

rospack is not installed from source

report about roslib

roslib is not installed from source

report about pluginlib

pluginlib is not installed from source

report about nodelet

nodelet is not installed from source

report about rosbag_storage

rosbag_storage is not installed from source

report about rosgraph

rosgraph is not installed from source

report about rospy

rospy is not installed from source

report about rosbag

rosbag is not installed from source

report about rostopic

rostopic is not installed from source

report about rosclean

rosclean is not installed from source

report about rosmaster

rosmaster is not installed from source

report about rosout

rosout is not installed from source

report about rosparam

rosparam is not installed from source

report about roslaunch

roslaunch is not installed from source

report about diagnostic_msgs

diagnostic_msgs is not installed from source

report about diagnostic_updater

diagnostic_updater is not installed from source

report about rosnode

rosnode is not installed from source

report about geometry_msgs

geometry_msgs is not installed from source

report about message_filters

message_filters is not installed from source

report about rosmsg

rosmsg is not installed from source

report about rosservice

rosservice is not installed from source

report about roswtf

roswtf is not installed from source

report about sensor_msgs

sensor_msgs is not installed from source

report about actionlib_msgs

actionlib_msgs is not installed from source

report about tf2_msgs

tf2_msgs is not installed from source

report about tf2

tf2 is not installed from source

report about rosunit

rosunit is not installed from source

report about rostest

rostest is not installed from source

report about actionlib

actionlib is not installed from source

report about tf2_py

tf2_py is not installed from source

report about tf2_ros

tf2_ros is not installed from source

report about tf

tf is not installed from source

report about dynamic_tf_publisher

dynamic_tf_publisher branch is disable-jsk-network-test

dynamic_tf_publisher git status

# On branch disable-jsk-network-test
# Changes not staged for commit:
#   (use "git add <file>..." to update what will be committed)
#   (use "git checkout -- <file>..." to discard changes in working directory)
#
#   modified:   ../../.travis (new commits)
#
# Untracked files:
#   (use "git add <file>..." to include in what will be committed)
#
#   ../../jsk_data/2015-09-29-18-24-24_multisense_images_human_front.bag
#   ../../jsk_data/frame0000.jpg
#   ../../jsk_tools/npm-debug.log
no changes added to commit (use "git add" and/or "git commit -a")

report about orocos_kdl

orocos_kdl is not installed from source

report about eigen_conversions

eigen_conversions is not installed from source

report about jsk_topic_tools

jsk_topic_tools branch is disable-jsk-network-test

jsk_topic_tools git status

# On branch disable-jsk-network-test
# Changes not staged for commit:
#   (use "git add <file>..." to update what will be committed)
#   (use "git checkout -- <file>..." to discard changes in working directory)
#
#   modified:   ../.travis (new commits)
#
# Untracked files:
#   (use "git add <file>..." to include in what will be committed)
#
#   ../jsk_data/2015-09-29-18-24-24_multisense_images_human_front.bag
#   ../jsk_data/frame0000.jpg
#   ../jsk_tools/npm-debug.log
no changes added to commit (use "git add" and/or "git commit -a")

report about kdl_conversions

kdl_conversions is not installed from source

report about python_orocos_kdl

python_orocos_kdl is not installed from source

report about tf_conversions

tf_conversions is not installed from source

report about pcl_msgs

pcl_msgs is not installed from source

report about pcl_conversions

pcl_conversions branch is hydro-devel

pcl_conversions git status

# On branch hydro-devel
# Your branch is behind 'origin/hydro-devel' by 2 commits, and can be fast-forwarded.
#
# Changes not staged for commit:
#   (use "git add <file>..." to update what will be committed)
#   (use "git checkout -- <file>..." to discard changes in working directory)
#
#   modified:   include/pcl_conversions/pcl_conversions.h
#
no changes added to commit (use "git add" and/or "git commit -a")

report about dynamic_reconfigure

dynamic_reconfigure is not installed from source

report about nodelet_topic_tools

nodelet_topic_tools is not installed from source

report about pcl_ros

pcl_ros branch is hydro-devel

pcl_ros git status

# On branch hydro-devel
nothing to commit (working directory clean)

report about opencv2

opencv2 is not installed from source

report about cv_bridge

cv_bridge is not installed from source

report about stereo_msgs

stereo_msgs is not installed from source

report about image_transport

image_transport branch is hydro-devel

image_transport git status

# On branch hydro-devel
nothing to commit (working directory clean)

report about image_geometry

image_geometry is not installed from source

report about camera_calibration_parsers

camera_calibration_parsers branch is hydro-devel

camera_calibration_parsers git status

# On branch hydro-devel
nothing to commit (working directory clean)

report about image_view

image_view branch is hydro-devel

image_view git status

# On branch hydro-devel
nothing to commit (working directory clean)

report about image_view2

image_view2 branch is disable-jsk-network-test

image_view2 git status

# On branch disable-jsk-network-test
# Changes not staged for commit:
#   (use "git add <file>..." to update what will be committed)
#   (use "git checkout -- <file>..." to discard changes in working directory)
#
#   modified:   ../../.travis (new commits)
#
# Untracked files:
#   (use "git add <file>..." to include in what will be committed)
#
#   ../../jsk_data/2015-09-29-18-24-24_multisense_images_human_front.bag
#   ../../jsk_data/frame0000.jpg
#   ../../jsk_tools/npm-debug.log
no changes added to commit (use "git add" and/or "git commit -a")

report about visualization_msgs

visualization_msgs is not installed from source

report about rosboost_cfg

rosboost_cfg is not installed from source

report about ml_classifiers

ml_classifiers is not installed from source

report about sklearn

sklearn branch is master

sklearn git status

# On branch master
nothing to commit (working directory clean)

report about filters

filters is not installed from source

report about angles

angles is not installed from source

report about laser_geometry

laser_geometry is not installed from source

report about laser_assembler

laser_assembler branch is hydro-devel

laser_assembler git status

# On branch hydro-devel
nothing to commit (working directory clean)

report about random_numbers

random_numbers is not installed from source

report about shape_tools

shape_tools is not installed from source

report about octomap

octomap is not installed from source

report about urdfdom_headers

urdfdom_headers is not installed from source

report about urdfdom

urdfdom is not installed from source

report about srdfdom

srdfdom is not installed from source

report about rosconsole_bridge

rosconsole_bridge is not installed from source

report about urdf_parser_plugin

urdf_parser_plugin is not installed from source

report about urdf

urdf is not installed from source

report about kdl_parser

kdl_parser is not installed from source

report about libccd

libccd is not installed from source

report about fcl

fcl is not installed from source

report about eigen_stl_containers

eigen_stl_containers is not installed from source

report about shape_msgs

shape_msgs is not installed from source

report about resource_retriever

resource_retriever is not installed from source

report about geometric_shapes

geometric_shapes is not installed from source

report about octomap_msgs

octomap_msgs is not installed from source

report about rosbag_migration_rule

rosbag_migration_rule is not installed from source

report about trajectory_msgs

trajectory_msgs is not installed from source

report about object_recognition_msgs

object_recognition_msgs is not installed from source

report about moveit_msgs

moveit_msgs is not installed from source

report about moveit_core

moveit_core is not installed from source

report about moveit_ros_perception

moveit_ros_perception is not installed from source

report about jsk_recognition_msgs

jsk_recognition_msgs branch is dron

jsk_recognition_msgs git status

# On branch dron
# Changes not staged for commit:
#   (use "git add <file>..." to update what will be committed)
#   (use "git checkout -- <file>..." to discard changes in working directory)
#
#   modified:   ../.travis (new commits)
#
# Untracked files:
#   (use "git add <file>..." to include in what will be committed)
#
#   ../jsk_pcl_ros/scripts/05-06.csv
#   ../jsk_pcl_ros/scripts/08-09.csv
#   ../jsk_pcl_ros/scripts/10-11.csv
#   ../jsk_pcl_ros/scripts/15-16.csv
#   ../jsk_pcl_ros/scripts/21-22.csv
#   ../jsk_pcl_ros/scripts/25-26.csv
#   ../jsk_pcl_ros/scripts/foo.png
#   ../jsk_pcl_ros/scripts/stereo_error.eps
no changes added to commit (use "git add" and/or "git commit -a")

report about jsk_footstep_msgs

jsk_footstep_msgs branch is rejected-approved

jsk_footstep_msgs git status

# On branch rejected-approved
nothing to commit (working directory clean)

report about interactive_markers

interactive_markers is not installed from source

report about jsk_recognition_utils

jsk_recognition_utils branch is dron

jsk_recognition_utils git status

# On branch dron
# Changes not staged for commit:
#   (use "git add <file>..." to update what will be committed)
#   (use "git checkout -- <file>..." to discard changes in working directory)
#
#   modified:   ../.travis (new commits)
#
# Untracked files:
#   (use "git add <file>..." to include in what will be committed)
#
#   ../jsk_pcl_ros/scripts/05-06.csv
#   ../jsk_pcl_ros/scripts/08-09.csv
#   ../jsk_pcl_ros/scripts/10-11.csv
#   ../jsk_pcl_ros/scripts/15-16.csv
#   ../jsk_pcl_ros/scripts/21-22.csv
#   ../jsk_pcl_ros/scripts/25-26.csv
#   ../jsk_pcl_ros/scripts/foo.png
#   ../jsk_pcl_ros/scripts/stereo_error.eps
no changes added to commit (use "git add" and/or "git commit -a")
@garaemon
Copy link
Member Author

remote_version_summary() {
    target=$1
    cd $(rospack find $target)
    if git rev-parse --git-dir > /dev/null 2>&1; then
        echo "|$target|$(git branch | sed -n -e 's/^\* \(.*\)/\1/p')|"
        # echo "## $target branch is $(git branch | sed -n -e 's/^\* \(.*\)/\1/p')"
        # echo "## $target git status"
        # echo "\`\`\`"
        # git status
        # echo "\`\`\`"
    else
        # echo "##" $target is not installed from source
        echo "|$target|apt|"
    fi
}

report about jsk_pcl_ros

package version
jsk_pcl_ros master
catkin apt
console_bridge apt
cpp_common apt
rostime apt
roscpp_traits apt
roscpp_serialization apt
genmsg apt
genpy apt
message_runtime apt
gencpp apt
genlisp apt
message_generation apt
rosbuild apt
rosconsole apt
std_msgs apt
rosgraph_msgs apt
xmlrpcpp apt
roscpp apt
roscpp_tutorials apt
std_srvs apt
topic_tools apt
bond apt
smclib apt
bondcpp apt
class_loader apt
rospack apt
roslib apt
pluginlib apt
nodelet apt
rosbag_storage apt
rosgraph apt
rospy apt
rosbag apt
rostopic apt
rosclean apt
rosmaster apt
rosout apt
rosparam apt
roslaunch apt
diagnostic_msgs apt
diagnostic_updater apt
rosnode apt
geometry_msgs apt
message_filters apt
rosmsg apt
rosservice apt
roswtf apt
sensor_msgs apt
actionlib_msgs apt
tf2_msgs apt
tf2 apt
rosunit apt
rostest apt
actionlib apt
tf2_py apt
tf2_ros apt
tf apt
dynamic_tf_publisher disable-jsk-network-test
orocos_kdl apt
eigen_conversions apt
jsk_topic_tools disable-jsk-network-test
kdl_conversions apt
python_orocos_kdl apt
tf_conversions apt
pcl_msgs apt
pcl_conversions hydro-devel
dynamic_reconfigure apt
nodelet_topic_tools apt
pcl_ros hydro-devel
opencv2 apt
cv_bridge apt
stereo_msgs apt
image_transport hydro-devel
image_geometry apt
camera_calibration_parsers hydro-devel
image_view hydro-devel
image_view2 disable-jsk-network-test
visualization_msgs apt
rosboost_cfg apt
ml_classifiers apt
sklearn master
filters apt
angles apt
laser_geometry apt
laser_assembler hydro-devel
random_numbers apt
shape_tools apt
octomap apt
urdfdom_headers apt
urdfdom apt
srdfdom apt
rosconsole_bridge apt
urdf_parser_plugin apt
urdf apt
kdl_parser apt
libccd apt
fcl apt
eigen_stl_containers apt
shape_msgs apt
resource_retriever apt
geometric_shapes apt
octomap_msgs apt
rosbag_migration_rule apt
trajectory_msgs apt
object_recognition_msgs apt
moveit_msgs apt
moveit_core apt
moveit_ros_perception apt
jsk_recognition_msgs dron
jsk_footstep_msgs rejected-approved
interactive_markers apt
jsk_recognition_utils dron
jsk_pcl_ros dron
catkin apt
console_bridge apt
cpp_common apt
rostime apt
roscpp_traits apt
roscpp_serialization apt
genmsg apt
genpy apt
message_runtime apt
gencpp apt
genlisp apt
message_generation apt
rosbuild apt
rosconsole apt
std_msgs apt
rosgraph_msgs apt
xmlrpcpp apt
roscpp apt
roscpp_tutorials apt
std_srvs apt
topic_tools apt
bond apt
smclib apt
bondcpp apt
class_loader apt
rospack apt
roslib apt
pluginlib apt
nodelet apt
rosbag_storage apt
rosgraph apt
rospy apt
rosbag apt
rostopic apt
rosclean apt
rosmaster apt
rosout apt
rosparam apt
roslaunch apt
diagnostic_msgs apt
diagnostic_updater apt
rosnode apt
geometry_msgs apt
message_filters apt
rosmsg apt
rosservice apt
roswtf apt
sensor_msgs apt
actionlib_msgs apt
tf2_msgs apt
tf2 apt
rosunit apt
rostest apt
actionlib apt
tf2_py apt
tf2_ros apt
tf apt
dynamic_tf_publisher disable-jsk-network-test
orocos_kdl apt
eigen_conversions apt
jsk_topic_tools disable-jsk-network-test
kdl_conversions apt
python_orocos_kdl apt
tf_conversions apt
pcl_msgs apt
pcl_conversions hydro-devel
dynamic_reconfigure apt
nodelet_topic_tools apt
pcl_ros hydro-devel
opencv2 apt
cv_bridge apt
stereo_msgs apt
image_transport hydro-devel
image_geometry apt
camera_calibration_parsers hydro-devel
image_view hydro-devel
image_view2 disable-jsk-network-test
visualization_msgs apt
rosboost_cfg apt
ml_classifiers apt
sklearn master
filters apt
angles apt
laser_geometry apt
laser_assembler hydro-devel
random_numbers apt
shape_tools apt
octomap apt
urdfdom_headers apt
urdfdom apt
srdfdom apt
rosconsole_bridge apt
urdf_parser_plugin apt
urdf apt
kdl_parser apt
libccd apt
fcl apt
eigen_stl_containers apt
shape_msgs apt
resource_retriever apt
geometric_shapes apt
octomap_msgs apt
rosbag_migration_rule apt
trajectory_msgs apt
object_recognition_msgs apt
moveit_msgs apt
moveit_core apt
moveit_ros_perception apt
jsk_recognition_msgs dron
jsk_footstep_msgs rejected-approved
interactive_markers apt
jsk_recognition_utils dron

garaemon added a commit to garaemon/jsk_common that referenced this issue Dec 9, 2015
garaemon added a commit to garaemon/jsk_common that referenced this issue Dec 9, 2015
garaemon added a commit to garaemon/jsk_common that referenced this issue Dec 9, 2015
@garaemon
Copy link
Member Author

I wrote it. Hope it works. (should be a plugin of roswtf and send to upstream?)
#1282

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

No branches or pull requests

1 participant