ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange
Ask Your Question

Bo Li's profile - activity

2022-04-14 03:14:37 -0500 received badge  Famous Question (source)
2019-05-20 02:37:30 -0500 marked best answer groovy script failed in Krel_reconfigura-jobs

Hi,

I was trying to setup a buildfarm for my group. I have ran import_upstream successfully. Then next I triggered "Krel_reconfigure-jobs". It took a lot of time to finish configuring tons of jobs. After this, the job failed when it ran the generated groovy files, complaining unable to resolve imports. The tail of the log is pasted as below.

I was also thinking about write a tutorial about some of the problems I met configuring the buildfarm ( https://gist.github.com/prclibo/90fc9... ). Maybe after I succeed setup the buildfarm I can fiinsh this.

......
18:06:17 Configuration for jobs: Ksrc_uX__zeroconf_avahi_suite__ubuntu_xenial__source, Kbin_uX64__zeroconf_avahi_suite__ubuntu_xenial_amd64__binary
18:06:17 Configuration for jobs: Ksrc_dJ__zeroconf_avahi_suite__debian_jessie__source, Kbin_dJ64__zeroconf_avahi_suite__debian_jessie_amd64__binary
18:06:21 Writing groovy script '/tmp/reconfigure_jobs/reconfigure_jobs.groovy' to reconfigure 4 views and 5704 jobs
18:06:22 + echo # END SECTION
18:06:22 # END SECTION
18:06:23 ERROR: Build step failed with exception
18:06:23 org.codehaus.groovy.control.MultipleCompilationErrorsException: startup failed:
18:06:23 Script1.groovy: 12: unable to resolve class org.apache.xml.serialize.OutputFormat
18:06:23  @ line 12, column 1.
18:06:23    import org.apache.xml.serialize.OutputFormat
18:06:23    ^
18:06:23 
18:06:23 Script1.groovy: 13: unable to resolve class org.apache.xml.serialize.XMLSerializer
18:06:23  @ line 13, column 1.
18:06:23    import org.apache.xml.serialize.XMLSerializer
18:06:23    ^
18:06:23 
18:06:23 Script1.groovy: 1: unable to resolve class difflib.DiffUtils
18:06:23  @ line 1, column 1.
18:06:23    import difflib.DiffUtils
18:06:23    ^
18:06:23 
18:06:23 3 errors
18:06:23 
18:06:23    at org.codehaus.groovy.control.ErrorCollector.failIfErrors(ErrorCollector.java:310)
18:06:23    at org.codehaus.groovy.control.CompilationUnit.applyToSourceUnits(CompilationUnit.java:946)
18:06:23    at org.codehaus.groovy.control.CompilationUnit.doPhaseOperation(CompilationUnit.java:593)
18:06:23    at org.codehaus.groovy.control.CompilationUnit.compile(CompilationUnit.java:542)
18:06:23    at groovy.lang.GroovyClassLoader.doParseClass(GroovyClassLoader.java:298)
18:06:23    at groovy.lang.GroovyClassLoader.parseClass(GroovyClassLoader.java:268)
18:06:23    at groovy.lang.GroovyShell.parseClass(GroovyShell.java:688)
18:06:23    at groovy.lang.GroovyShell.parse(GroovyShell.java:700)
18:06:23    at groovy.lang.GroovyShell.parse(GroovyShell.java:736)
18:06:23    at groovy.lang.GroovyShell.parse(GroovyShell.java:727)
18:06:23    at org.jenkinsci.plugins.scriptsecurity.sandbox.groovy.SecureGroovyScript.evaluate(SecureGroovyScript.java:165)
18:06:23    at hudson.plugins.groovy.SystemGroovy.run(SystemGroovy.java:95)
18:06:23    at hudson.plugins.groovy.SystemGroovy.perform(SystemGroovy.java:59)
18:06:23    at hudson.tasks.BuildStepMonitor$1.perform(BuildStepMonitor.java:20)
18:06:23    at hudson.model.AbstractBuild$AbstractBuildExecution.perform(AbstractBuild.java:779)
18:06:23    at hudson.model.Build$BuildExecution.build(Build.java:205)
18:06:23    at hudson.model.Build$BuildExecution.doRun(Build.java:162)
18:06:23    at hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:534)
18:06:23    at hudson.model.Run.execute(Run.java:1728)
18:06 ...
(more)
2019-05-20 02:33:53 -0500 marked best answer buildfarm dev job crashes with apt key error

Hi,

Was trying to configure a addon fork of buildfarm, using the following rosdistro configuration:

distributions:
  kinetic:
    distribution: [kinetic/distribution.yaml, kinetic/my_dist.yaml]
    distribution_cache: http://repositories.ros.org/rosdistro_cache/kinetic-cache.yaml.gz
type: index
version: 3

my_dist.yaml is like:

release_platforms:
  ubuntu:
  - xenial
repositories:
  velodyne:
    source:
      type: git
      url: https://github.com/prclibo/velodyne.git # A repo not included in kinetic/distribution.yaml
      version: master
    status: maintained
type: distribution
version: 2
tags: [my]

The job Kdev__velodyne__ubuntu_xenial_amd64 is added by calling Kdev_reconfigure-jobs with paramter velodyne. When I invoke this job, the error pops as follows, saying a key error of ros-kinetic-catkin:

08:22:11 reading in sources list data from /etc/ros/rosdep/sources.list.d
08:22:11 Hit https://raw.githubusercontent.com/ros/rosdistro/master/rosdep/osx-homebrew.yaml
08:22:11 Hit https://raw.githubusercontent.com/ros/rosdistro/master/rosdep/base.yaml
08:22:11 Hit https://raw.githubusercontent.com/ros/rosdistro/master/rosdep/python.yaml
08:22:11 Hit https://raw.githubusercontent.com/ros/rosdistro/master/rosdep/ruby.yaml
08:22:11 Hit https://raw.githubusercontent.com/ros/rosdistro/master/releases/fuerte.yaml
08:22:11 Query rosdistro index https://raw.githubusercontent.com/prclibo/rosdistro/master/index.yaml
08:22:11 Add distro "kinetic"
08:22:11 updated cache in /home/buildfarm/.ros/rosdep/sources.cache
08:22:11 Crawling for packages in workspace '/tmp/catkin_workspace/src'
08:22:11 Found the following packages:
08:22:11   - velodyne
08:22:11   - velodyne_driver
08:22:11   - velodyne_msgs
08:22:11   - velodyne_pointcloud
08:22:11 Package maintainer emails: brice.rebsamen@gmail.com jack.oquin@gmail.com
08:22:14 Always install the following generic dependencies:
08:22:14   - build-essential
08:22:14   - python3
08:22:14   - ros-kinetic-catkin
08:22:14 Identified the following build dependencies (ignoring packages available from source):
08:22:14   - angles
08:22:14   - catkin
08:22:14   - diagnostic_updater
08:22:14   - dynamic_reconfigure
08:22:14   - libpcap
08:22:14   - message_generation
08:22:14   - message_runtime
08:22:14   - nodelet
08:22:14   - pcl_conversions
08:22:14   - pcl_ros
08:22:14   - pluginlib
08:22:14   - roscpp
08:22:14   - roslaunch
08:22:14   - roslib
08:22:14   - rostest
08:22:14   - sensor_msgs
08:22:14   - std_msgs
08:22:14   - tf
08:22:14   - tf2_ros
08:22:14   - yaml-cpp
08:22:14 Resolved the dependencies to the following binary packages:
08:22:14   - libpcap0.8-dev
08:22:14   - libyaml-cpp-dev
08:22:14   - ros-kinetic-angles
08:22:14   - ros-kinetic-catkin
08:22:14   - ros-kinetic-diagnostic-updater
08:22:14   - ros-kinetic-dynamic-reconfigure
08:22:14   - ros-kinetic-message-generation
08:22:14   - ros-kinetic-message-runtime
08:22:14   - ros-kinetic-nodelet
08:22:14   - ros-kinetic-pcl-conversions
08:22:14   - ros-kinetic-pcl-ros
08:22:14   - ros-kinetic-pluginlib
08:22:14   - ros-kinetic-roscpp
08:22:14   - ros-kinetic-roslaunch
08:22:14   - ros-kinetic-roslib
08:22:14   - ros-kinetic-rostest
08:22:14   - ros-kinetic-sensor-msgs
08:22:14   - ros-kinetic-std-msgs
08:22:14   - ros-kinetic-tf
08:22:14   - ros-kinetic-tf2-ros
08:22:14 Traceback (most recent call last):
08:22:14   File "/usr/lib/python3/dist-packages/apt/cache.py", line 194, in __getitem__
08:22:14     return ...
(more)
2019-05-20 02:07:33 -0500 marked best answer Buildfarm addon fork requires ros-"my_distribution"-catkin

Hi, me again.

Have achieved great progress last several weeks in deploying a buildfarm. Thanks for the help on my previous questions. I am doing an addon fork with a customized distribution e.g. "my-kinetic". My ros_buildfarm_config/index.yaml is like:

distributions:
  my-kinetic:
    doc_builds:
      default: my-kinetic/doc-build.yaml
      released-packages-without-doc-job: my-kinetic/doc-released-build.yaml
    notification_emails:
    - libo@somewhere
    release_builds:
      default: my-kinetic/release-build.yaml
    source_builds:
      default: my-kinetic/source-build.yaml

My rosdistro/index.yaml is like

distributions:
  my-kinetic:
    distribution: [my-kinetic/distribution.yaml]
    distribution_cache: http://162.243.151.49/rosdistro_cache/my-kinetic-cache.yaml.gz

My rosdistro only contains thirdparty packages, the original packages are imported from official repo and ported to rosdeps using mikepurvis' rosdep-generator.

When I ran a dev job, one of the "generic dependencies", catkin is resolved to ros-my-kinetic-catkin due to [ https://github.com/ros-infrastructure... ]. But there is obviously no ros-"my"-kinetic-catkin anywhere. So I would like to know what the formal way to solve this for an addon fork. (The other ROS dependencies are correctly resolved to ros-kinetic-*, though).

I tried to add catkin into my rosdistro and try to compile a copy for my buildfarm. But this requires the catkin-release repo to have a debian/ros-"my"-kinetic-catkin_0.7.6-0_xenial branch, which obviously not the case.

2019-02-15 08:32:11 -0500 received badge  Famous Question (source)
2019-01-23 07:50:57 -0500 received badge  Famous Question (source)
2018-12-03 09:31:47 -0500 received badge  Famous Question (source)
2018-07-19 08:18:58 -0500 received badge  Notable Question (source)
2018-07-19 08:18:58 -0500 received badge  Popular Question (source)
2018-01-24 01:24:44 -0500 received badge  Notable Question (source)
2018-01-17 15:29:16 -0500 received badge  Famous Question (source)
2017-09-30 10:28:47 -0500 received badge  Notable Question (source)
2017-09-30 04:28:06 -0500 received badge  Popular Question (source)
2017-09-08 14:06:56 -0500 received badge  Notable Question (source)
2017-08-20 01:31:23 -0500 edited question Buildfarm addon fork requires ros-"my_distribution"-catkin

Buildfarm addon fork requires ros-"my_distribution"-catkin Hi, me again. Have achieved great progress last several week

2017-08-20 01:30:48 -0500 asked a question Buildfarm addon fork requires ros-"my_distribution"-catkin

Buildfarm addon fork requires ros-"my_distribution"-catkin Hi, me again. Have achieved great progress last several week

2017-08-10 00:02:05 -0500 commented answer buildfarm dev job crashes with apt key error

I guess I should not snapshot all the system libraries to my repo server, right? But my velodyne dev job seems not know

2017-08-10 00:00:58 -0500 commented answer buildfarm dev job crashes with apt key error

Thanks Dirk! Changed to the 2nd way, removing kinetic/distribution.yaml from rosdistro. I know I can use import_upstream

2017-08-10 00:00:58 -0500 received badge  Commentator
2017-08-08 10:37:19 -0500 commented answer buildfarm dev job crashes with apt key error

I also have another (may silly) question: I found that Krel_reconfigure-jobs generates tons of jobs from rosdistro. Howe

2017-08-08 10:34:01 -0500 commented answer buildfarm dev job crashes with apt key error

Dirk, do you mean Krel_repos-status-page? I see some packages at http://165.227.5.32:8080/job/Krel_repos-status-page/ws/

2017-08-08 10:33:10 -0500 commented answer buildfarm dev job crashes with apt key error

Dirk, do you mean Krel_repos-status-page? I see some packages at http://165.227.5.32:8080/job/Krel_repos-status-page/ws/

2017-08-08 10:07:23 -0500 commented answer buildfarm dev job crashes with apt key error

My config file was on github.com/prclibo/{buildfarm_deployment_config, ros_buildfarm_config, rosdistro}. In my configs I

2017-08-08 10:01:22 -0500 commented answer buildfarm dev job crashes with apt key error

My config file was on github.com/prclibo/{buildfarm_deployment_config, ros_buildfarm_config, rosdistro}. In my configs I

2017-08-08 09:55:46 -0500 commented answer buildfarm dev job crashes with apt key error

My config file was on github.com/prclibo/{buildfarm_deployment_config, ros_buildfarm_config, rosdistro}.

2017-08-08 09:43:53 -0500 commented answer buildfarm dev job crashes with apt key error

Thanks for the reply. I changed the distribution_cache. In the import_upstream, I see a lot of aptmethod got http://....

2017-08-08 09:43:40 -0500 commented answer buildfarm dev job crashes with apt key error

Thanks for the reply. I changed the distribution_cache. In the import_upstream, I see a lot of "aptmethod got http://...

2017-08-07 15:46:25 -0500 received badge  Popular Question (source)
2017-08-06 10:38:58 -0500 asked a question buildfarm dev job crashes with apt key error

buildfarm dev job crashes with apt key error Hi, Was trying to configure a addon fork of buildfarm, using the following

2017-07-23 18:13:38 -0500 commented answer groovy script failed in Krel_reconfigura-jobs

OK, finally got it worked. Thanks for the answer. The later error requires the dashboard view plugin.

2017-07-23 09:06:28 -0500 commented answer groovy script failed in Krel_reconfigura-jobs

The full error is updated to the end of the tutorial gist. Just wanna seek help again:)

2017-07-23 09:05:25 -0500 commented answer groovy script failed in Krel_reconfigura-jobs

The above issue is solved by following buildfarm_deployment/issues/147 and also downloading apache-xml-xerces.jar. Than

2017-07-23 05:40:39 -0500 commented answer groovy script failed in Krel_reconfigura-jobs

Looked through https://github.com/ros-infrastructure/buildfarm_deployment/issues/147, should this pull be the reason?

2017-07-22 10:10:45 -0500 commented answer groovy script failed in Krel_reconfigura-jobs

Thanks for the reply. Switched to Jenkins 2.46.2 and the Groovy plugin is 2.0 but still get the same error. Is there a w

2017-07-22 08:19:23 -0500 commented answer groovy script failed in Krel_reconfigura-jobs

Thanks for the reply. Switched to Jenkins 2.46.3 and the Groovy plugin is 2.0 but still get the same error. Is there a w

2017-07-22 08:16:55 -0500 commented question groovy script failed in Krel_reconfigura-jobs

@gvdhoorn Yes, thanks for the remind.

2017-07-21 10:24:55 -0500 asked a question groovy script failed in Krel_reconfigura-jobs

groovy script failed in Krel_reconfigura-jobs Hi, I was trying to setup a buildfarm for my group. I have ran import_ups

2017-07-06 20:20:29 -0500 received badge  Popular Question (source)
2017-05-14 22:05:19 -0500 received badge  Enthusiast
2017-05-10 00:22:45 -0500 received badge  Notable Question (source)
2017-05-10 00:22:45 -0500 received badge  Popular Question (source)
2017-05-09 23:12:29 -0500 received badge  Organizer (source)
2017-05-09 23:11:41 -0500 asked a question Multiple-thread ROS node crashes on exit when using visualization libraries

Multiple-thread ROS node crashes on exit when using visualization libraries Hi, I was trying to integrate a visualizatio

2015-01-20 07:31:35 -0500 asked a question load arg from file in launch files

Hi, I am running some nodes with a long argument list. For example the tf2_ros/static_transform_publisher takes x, y, z, qx, qy, qz, qw and two frame ids as its arguments.

<node pkg="tf2_ros" type="static_transform_publisher" name="foo", args="1 0 0 0 0 0 1 frame1 frame2" />

Wring these arguements in a launch file is very inconvenient as they sometimes change. So is there any way I can load them from file e.g. a yaml instead? Thank you!