See <
https://build.ros.org/job/Mdoc__libpointmatcher__ubuntu_bionic_amd64/8/display/redirect>
Changes:
------------------------------------------
[...truncated 14.81 KB...]
+ sleep 1
+ python3 -u <
https://build.ros.org/job/Mdoc__libpointmatcher__ubuntu_bionic_amd64/ws/ros_buildfarm/scripts/subprocess_reaper.py> 483507 --cid-file <
https://build.ros.org/job/Mdoc__libpointmatcher__ubuntu_bionic_amd64/ws/docker_generating_docker/docker.cid>
+ echo # BEGIN SECTION: Generate Dockerfile - doc task
# BEGIN SECTION: Generate Dockerfile - doc task
+ export TZ=PST+08
+ export PYTHONPATH=<
https://build.ros.org/job/Mdoc__libpointmatcher__ubuntu_bionic_amd64/ws/ros_buildfarm>:
+ [ false = true ]
+ python3 -u <
https://build.ros.org/job/Mdoc__libpointmatcher__ubuntu_bionic_amd64/ws/ros_buildfarm/scripts/doc/run_doc_job.py>
https://raw.githubusercontent.com/ros-infrastructure/ros_buildfarm_config/production/index.yaml --rosdistro-index-url
https://raw.githubusercontent.com/ros/rosdistro/master/index-v4.yaml melodic default libpointmatcher ubuntu bionic amd64 --build-tool catkin_make_isolated --vcs-info git master
https://github.com/ethz-asl/libpointmatcher.git --distribution-repository-urls
http://repositories.ros.org/ubuntu/testing --distribution-repository-key-files <
https://build.ros.org/job/Mdoc__libpointmatcher__ubuntu_bionic_amd64/ws/keys/0.key> --dockerfile-dir <
https://build.ros.org/job/Mdoc__libpointmatcher__ubuntu_bionic_amd64/ws/docker_generating_docker>
Using the following distribution repositories:
http://repositories.ros.org/ubuntu/testing (<
https://build.ros.org/job/Mdoc__libpointmatcher__ubuntu_bionic_amd64/ws/keys/0.key)>
Generating Dockerfile '<
https://build.ros.org/job/Mdoc__libpointmatcher__ubuntu_bionic_amd64/ws/docker_generating_docker/Dockerfile'>:
# generated from doc/doc_create_task.Dockerfile.em
FROM ubuntu:bionic
VOLUME ["/var/cache/apt/archives"]
ENV DEBIAN_FRONTEND noninteractive
RUN for i in 1 2 3; do apt-get update && apt-get install -q -y locales && apt-get clean && break || if [ $i -lt 3 ]; then sleep 5; else false; fi; done
RUN echo "en_US.UTF-8 UTF-8" >> /etc/locale.gen
RUN locale-gen en_US.UTF-8
ENV LANG en_US.UTF-8
ENV TZ PST+08
RUN useradd -u 1001 -l -m buildfarm
RUN mkdir /tmp/keys
RUN for i in 1 2 3; do apt-get update && apt-get install -q -y gnupg && apt-get clean && break || if [ $i -lt 3 ]; then sleep 5; else false; fi; done
RUN echo "-----BEGIN PGP PUBLIC KEY BLOCK-----\nVersion: GnuPG v1\n\nmQINBFzvJpYBEADY8l1YvO7iYW5gUESyzsTGnMvVUmlV3XarBaJz9bGRmgPXh7jc\nVFrQhE0L/HV7LOfoLI9H2GWYyHBqN5ERBlcA8XxG3ZvX7t9nAZPQT2Xxe3GT3tro\nu5oCR+SyHN9xPnUwDuqUSvJ2eqMYb9B/Hph3OmtjG30jSNq9kOF5bBTk1hOTGPH4\nK/AY0jzT6OpHfXU6ytlFsI47ZKsnTUhipGsKucQ1CXlyirndZ3V3k70YaooZ55rG\naIoAWlx2H0J7sAHmqS29N9jV9mo135d+d+TdLBXI0PXtiHzE9IPaX+ctdSUrPnp+\nTwR99lxglpIG6hLuvOMAaxiqFBB/Jf3XJ8OBakfS6nHrWH2WqQxRbiITl0irkQoz\npwNEF2Bv0+Jvs1UFEdVGz5a8xexQHst/RmKrtHLct3iOCvBNqoAQRbvWvBhPjO/p\nV5cYeUljZ5wpHyFkaEViClaVWqa6PIsyLqmyjsruPCWlURLsQoQxABcL8bwxX7UT\nhM6CtH6tGlYZ85RIzRifIm2oudzV5l+8oRgFr9yVcwyOFT6JCioqkwldW52P1pk/\n/SnuexC6LYqqDuHUs5NnokzzpfS6QaWfTY5P5tz4KHJfsjDIktly3mKVfY0fSPVV\nokdGpcUzvz2hq1fqjxB6MlB/1vtk0bImfcsoxBmF7H+4E9ZN1sX/tSb0KQARAQAB\ntCZPcGVuIFJvYm90aWNzIDxpbmZvQG9zcmZvdW5kYXRpb24ub3JnPokCVAQTAQgA\nPgIbAwULCQgHAgYVCgkICwIEFgIDAQIeAQIXgBYhBMHPbjHmut6IaLFytPQu1vur\nF8ZUBQJgsdhRBQkLTMW7AAoJEPQu1vurF8ZUTMwP/3f7EkOPIFjUdRmpNJ2db4iB\nRQu5b2SJRG+KIdbvQBzKUBMV6/RUhEDPjhXZI3zDevzBewvAMKkqs2Q1cWo9WV7Z\nPyTkvSyey/Tjn+PozcdvzkvrEjDMftIk8E1WzLGq7vnPLZ1q/b6Vq4H373Z+EDWa\nDaDwW72CbCBLWAVtqff80CwlI2x8fYHKr3VBUnwcXNHR4+nRABfAWnaU4k+oTshC\nQucsd8vitNfsSXrKuKyz91IRHRPnJjx8UvGU4tRGfrHkw1505EZvgP02vXeRyWBR\nfKiL1vGy4tCSRDdZO3ms2J2m08VPv65HsHaWYMnO+rNJmMZj9d9JdL/9GRf5F6U0\nquoIFL39BhUEvBynuqlrqistnyOhw8W/IQy/ymNzBMcMz6rcMjMwhkgm/LNXoSD1\n1OrJu4ktQwRhwvGVarnB8ihwjsTxZFylaLmFSfaA+OAlOqCLS1OkIVMzjW+Ul6A6\nqjiCEUOsnlf4CGlhzNMZOx3low6ixzEqKOcfECpeIj80a2fBDmWkcAAjlHu6VBhA\nTUDG9e2xKLzV2Z/DLYsb3+n9QW7KO0yZKfiuUo6AYboAioQKn5jh3iRvjGh2Ujpo\n22G+oae3PcCc7G+z12j6xIY709FQuA49dA2YpzMda0/OX4LP56STEveDRrO+CnV6\nWE+F5FaIKwb72PL4rLi4\n=i0tj\n-----END PGP PUBLIC KEY BLOCK-----" > /tmp/keys/0.key && apt-key add /tmp/keys/0.key
RUN echo deb
http://repositories.ros.org/ubuntu/testing bionic main | tee -a /etc/apt/sources.list.d/buildfarm.list
RUN mkdir /tmp/wrapper_scripts
RUN echo "# Copyright 2014-2016 Open Source Robotics Foundation, Inc.\n#\n# Licensed under the Apache License, Version 2.0 (the \"License\");\n# you may not use this file except in compliance with the License.\n# You may obtain a copy of the License at\n#\n#
http://www.apache.org/licenses/LICENSE-2.0\n#\n# Unless required by applicable law or agreed to in writing, software\n# distributed under the License is distributed on an \"AS IS\" BASIS,\n# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n# See the License for the specific language governing permissions and\n# limitations under the License.\n\nimport subprocess\nimport sys\nfrom time import sleep\n\n\ndef main(argv=sys.argv[1:]):\n max_tries = 10\n known_error_strings = [\n 'Failed to fetch',\n 'Failed to stat',\n 'Hash Sum mismatch',\n 'Unable to locate package',\n 'is not what the server reported',\n ]\n\n command = argv[0]\n if command in ['update', 'source']:\n rc, _, _ = call_apt_repeatedly(\n argv, known_error_strings, max_tries)\n return rc\n elif command == 'update-install-clean':\n return call_apt_update_install_clean(\n argv[1:], known_error_strings, max_tries)\n else:\n assert \"Command '%s' not implemented\" % command\n\n\ndef call_apt_update_install_clean(\n install_argv, known_error_strings, max_tries):\n tries = 0\n command = 'update'\n while tries < max_tries:\n if command == 'update':\n rc, _, tries = call_apt_repeatedly(\n [command], known_error_strings, max_tries - tries,\n offset=tries)\n if rc != 0:\n # abort if update was unsuccessful even after retries\n break\n # move on to the install command if update was successful\n command = 'install'\n\n if command == 'install':\n # any call is considered a try\n tries += 1\n known_error_strings_redo_update = [\n 'Size mismatch',\n 'maybe run apt update',\n 'The following packages cannot be authenticated!',\n 'Unable to locate package',\n 'has no installation candidate',\n 'corrupted package archive',\n ]\n rc, known_error_conditions = \\\\\n call_apt(\n [command] + install_argv,\n known_error_strings + known_error_strings_redo_update)\n if not known_error_conditions:\n if rc != 0:\n # abort if install was unsuccessful\n break\n # move on to the clean command if install was successful\n command = 'clean'\n continue\n\n # known errors are always interpreted as a non-zero rc\n if rc == 0:\n rc = 1\n # check if update needs to be rerun\n if (\n set(known_error_conditions) &\n set(known_error_strings_redo_update)\n ):\n command = 'update'\n print(\"'apt install' failed and likely requires \" +\n \"'apt update' to run again\")\n # retry with update command\n continue\n\n print('')\n print('Invocation failed due to the following known error '\n 'conditions: ' + ', '.join(known_error_conditions))\n print('')\n if tries < max_tries:\n sleep_time = 5\n print(\"Reinvoke 'apt install' after sleeping %s seconds\" %\n sleep_time)\n sleep(sleep_time)\n # retry install command\n\n if command == 'clean':\n rc, _ = call_apt([command], [])\n break\n\n return rc\n\n\ndef call_apt_repeatedly(argv, known_error_strings, max_tries, offset=0):\n command = argv[0]\n for i in range(1, max_tries + 1):\n if i > 1:\n sleep_time = 5 + 2 * (i + offset)\n print(\"Reinvoke 'apt %s' (%d/%d) after sleeping %s seconds\" %\n (command, i + offset, max_tries + offset, sleep_time))\n sleep(sleep_time)\n rc, known_error_conditions = call_apt(argv, known_error_strings)\n if not known_error_conditions:\n # break the loop and return the reported rc\n break\n # known errors are always interpreted as a non-zero rc\n if rc == 0:\n rc = 1\n print('')\n print('Invocation failed due to the following known error conditions: '\n ', '.join(known_error_conditions))\n print('')\n # retry in case of failure with known error condition\n return rc, known_error_conditions, i + offset\n\n\ndef call_apt(argv, known_error_strings):\n known_error_conditions = []\n\n # some of the used options are not supported in older distros\n # e.g. Ubuntu Wily, Debian Jessie\n cmd = ['apt-get'] + argv\n print(\"Invoking '%s'\" % ' '.join(cmd))\n proc = subprocess.Popen(\n cmd, stdout=subprocess.PIPE, stderr=subprocess.STDOUT)\n lines = []\n while True:\n line = proc.stdout.readline()\n if not line:\n break\n line = line.decode()\n lines.append(line)\n sys.stdout.write(line)\n for known_error_string in known_error_strings:\n if known_error_string in line:\n if known_error_string not in known_error_conditions:\n known_error_conditions.append(known_error_string)\n proc.wait()\n rc = proc.returncode\n if rc and not known_error_conditions:\n print('Invocation failed without any known error condition, '\n 'printing all lines to debug known error detection:')\n for index, line in enumerate(lines):\n print(' ', index + 1, \"'%s'\" % line.rstrip('\\\\n\\\\r'))\n print('None of the following known errors were detected:')\n for index, known_error_string in enumerate(known_error_strings):\n print(' ', index + 1, \"'%s'\" % known_error_string)\n return rc, known_error_conditions\n\n\nif __name__ == '__main__':\n sys.exit(main())" > /tmp/wrapper_scripts/apt.py
RUN echo "# Copyright 2016 Open Source Robotics Foundation, Inc.\n#\n# Licensed under the Apache License, Version 2.0 (the \"License\");\n# you may not use this file except in compliance with the License.\n# You may obtain a copy of the License at\n#\n#
http://www.apache.org/licenses/LICENSE-2.0\n#\n# Unless required by applicable law or agreed to in writing, software\n# distributed under the License is distributed on an \"AS IS\" BASIS,\n# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n# See the License for the specific language governing permissions and\n# limitations under the License.\n\nimport subprocess\nimport sys\nfrom time import sleep\n\n\ndef main(argv=sys.argv[1:]):\n max_tries = 10\n known_error_strings = [\n 'Connection timed out',\n ]\n\n command = argv[0]\n if command == 'clone':\n rc, _, _ = call_git_repeatedly(\n argv, known_error_strings, max_tries)\n return rc\n else:\n assert \"Command '%s' not implemented\" % command\n\n\ndef call_git_repeatedly(argv, known_error_strings, max_tries):\n command = argv[0]\n for i in range(1, max_tries + 1):\n if i > 1:\n sleep_time = 5 + 2 * i\n print(\"Reinvoke 'git %s' (%d/%d) after sleeping %s seconds\" %\n (command, i, max_tries, sleep_time))\n sleep(sleep_time)\n rc, known_error_conditions = call_git(argv, known_error_strings)\n if rc == 0 or not known_error_conditions:\n break\n print('')\n print('Invocation failed due to the following known error conditions: '\n ', '.join(known_error_conditions))\n print('')\n # retry in case of failure with known error condition\n return rc, known_error_conditions, i\n\n\ndef call_git(argv, known_error_strings):\n known_error_conditions = []\n\n cmd = ['git'] + argv\n print(\"Invoking '%s'\" % ' '.join(cmd))\n proc = subprocess.Popen(\n cmd, stdout=subprocess.PIPE, stderr=subprocess.STDOUT)\n while True:\n line = proc.stdout.readline()\n if not line:\n break\n line = line.decode()\n sys.stdout.write(line)\n for known_error_string in known_error_strings:\n if known_error_string in line:\n if known_error_string not in known_error_conditions:\n known_error_conditions.append(known_error_string)\n proc.wait()\n rc = proc.returncode\n return rc, known_error_conditions\n\n\nif __name__ == '__main__':\n sys.exit(main())" > /tmp/wrapper_scripts/git.py
# automatic invalidation once every day
RUN echo "2023-07-06 (-0800)"
RUN for i in 1 2 3; do apt-get update && apt-get install -q -y python3 && apt-get clean && break || if [ $i -lt 3 ]; then sleep 5; else false; fi; done
RUN python3 -u /tmp/wrapper_scripts/apt.py update-install-clean -q -y git mercurial python3-apt python3-catkin-pkg-modules python3-empy python3-rosdep python3-rosdistro-modules subversion wget
# always invalidate to actually have the latest apt and rosdep state
RUN echo "2023-07-06 02:31:31 -0800"
RUN python3 -u /tmp/wrapper_scripts/apt.py update
ENV ROSDISTRO_INDEX_URL
https://raw.githubusercontent.com/ros/rosdistro/master/index-v4.yaml
RUN rosdep init
USER buildfarm
ENTRYPOINT ["sh", "-c"]
CMD ["rosdep update && PYTHONPATH=/tmp/ros_buildfarm:$PYTHONPATH python3 -u /tmp/ros_buildfarm/scripts/doc/create_doc_task_generator.py
https://raw.githubusercontent.com/ros-infrastructure/ros_buildfarm_config/production/index.yaml --rosdistro-name melodic default --workspace-root /tmp/ws --rosdoc-lite-dir /tmp/rosdoc_lite --catkin-sphinx-dir /tmp/catkin-sphinx --rosdoc-index-dir /tmp/rosdoc_index libpointmatcher --os-name ubuntu --os-code-name bionic --arch amd64 --build-tool catkin_make_isolated --vcs-info \"git master
https://github.com/ethz-asl/libpointmatcher.git\" --distribution-repository-urls
http://repositories.ros.org/ubuntu/testing --distribution-repository-key-files /tmp/keys/0.key --output-dir /tmp/generated_documentation --dockerfile-dir /tmp/docker_doc"]
+ echo # END SECTION
# END SECTION
+ echo # BEGIN SECTION: Build Dockerfile - generating doc task
# BEGIN SECTION: Build Dockerfile - generating doc task
+ cd <
https://build.ros.org/job/Mdoc__libpointmatcher__ubuntu_bionic_amd64/ws/docker_generating_docker>
+ python3 -u <
https://build.ros.org/job/Mdoc__libpointmatcher__ubuntu_bionic_amd64/ws/ros_buildfarm/scripts/misc/docker_pull_baseimage.py>
Get base image name from Dockerfile 'Dockerfile': ubuntu:bionic
Check docker base image for updates: docker pull ubuntu:bionic
bionic: Pulling from library/ubuntu
Digest: sha256:152dc042452c496007f07ca9127571cb9c29697f42acbfad72324b2bb2e43c98
Status: Image is up to date for ubuntu:bionic
docker.io/library/ubuntu:bionic
+ docker build --force-rm -t doc_task_generation.melodic_libpointmatcher .
Sending build context to Docker daemon 17.41kB
Step 1/26 : FROM ubuntu:bionic
---> f9a80a55f492
Step 2/26 : VOLUME ["/var/cache/apt/archives"]
---> Using cache
---> 2fc3295dee2c
Step 3/26 : ENV DEBIAN_FRONTEND noninteractive
---> Using cache
---> 7e9274a5be76
Step 4/26 : RUN for i in 1 2 3; do apt-get update && apt-get install -q -y locales && apt-get clean && break || if [ $i -lt 3 ]; then sleep 5; else false; fi; done
---> Using cache
---> 41defe2a6d2f
Step 5/26 : RUN echo "en_US.UTF-8 UTF-8" >> /etc/locale.gen
---> Using cache
---> 50daa6918bdb
Step 6/26 : RUN locale-gen en_US.UTF-8
---> Using cache
---> deb2ea635ac4
Step 7/26 : ENV LANG en_US.UTF-8
---> Using cache
---> 869883190424
Step 8/26 : ENV TZ PST+08
---> Using cache
---> 34baa43762ed
Step 9/26 : RUN useradd -u 1001 -l -m buildfarm
---> Using cache
---> d8dd84070aac
Step 10/26 : RUN mkdir /tmp/keys
---> Using cache
---> 37db942074fa
Step 11/26 : RUN for i in 1 2 3; do apt-get update && apt-get install -q -y gnupg && apt-get clean && break || if [ $i -lt 3 ]; then sleep 5; else false; fi; done
---> Using cache
---> ec88858cc737
Step 12/26 : RUN echo "-----BEGIN PGP PUBLIC KEY BLOCK-----\nVersion: GnuPG v1\n\nmQINBFzvJpYBEADY8l1YvO7iYW5gUESyzsTGnMvVUmlV3XarBaJz9bGRmgPXh7jc\nVFrQhE0L/HV7LOfoLI9H2GWYyHBqN5ERBlcA8XxG3ZvX7t9nAZPQT2Xxe3GT3tro\nu5oCR+SyHN9xPnUwDuqUSvJ2eqMYb9B/Hph3OmtjG30jSNq9kOF5bBTk1hOTGPH4\nK/AY0jzT6OpHfXU6ytlFsI47ZKsnTUhipGsKucQ1CXlyirndZ3V3k70YaooZ55rG\naIoAWlx2H0J7sAHmqS29N9jV9mo135d+d+TdLBXI0PXtiHzE9IPaX+ctdSUrPnp+\nTwR99lxglpIG6hLuvOMAaxiqFBB/Jf3XJ8OBakfS6nHrWH2WqQxRbiITl0irkQoz\npwNEF2Bv0+Jvs1UFEdVGz5a8xexQHst/RmKrtHLct3iOCvBNqoAQRbvWvBhPjO/p\nV5cYeUljZ5wpHyFkaEViClaVWqa6PIsyLqmyjsruPCWlURLsQoQxABcL8bwxX7UT\nhM6CtH6tGlYZ85RIzRifIm2oudzV5l+8oRgFr9yVcwyOFT6JCioqkwldW52P1pk/\n/SnuexC6LYqqDuHUs5NnokzzpfS6QaWfTY5P5tz4KHJfsjDIktly3mKVfY0fSPVV\nokdGpcUzvz2hq1fqjxB6MlB/1vtk0bImfcsoxBmF7H+4E9ZN1sX/tSb0KQARAQAB\ntCZPcGVuIFJvYm90aWNzIDxpbmZvQG9zcmZvdW5kYXRpb24ub3JnPokCVAQTAQgA\nPgIbAwULCQgHAgYVCgkICwIEFgIDAQIeAQIXgBYhBMHPbjHmut6IaLFytPQu1vur\nF8ZUBQJgsdhRBQkLTMW7AAoJEPQu1vurF8ZUTMwP/3f7EkOPIFjUdRmpNJ2db4iB\nRQu5b2SJRG+KIdbvQBzKUBMV6/RUhEDPjhXZI3zDevzBewvAMKkqs2Q1cWo9WV7Z\nPyTkvSyey/Tjn+PozcdvzkvrEjDMftIk8E1WzLGq7vnPLZ1q/b6Vq4H373Z+EDWa\nDaDwW72CbCBLWAVtqff80CwlI2x8fYHKr3VBUnwcXNHR4+nRABfAWnaU4k+oTshC\nQucsd8vitNfsSXrKuKyz91IRHRPnJjx8UvGU4tRGfrHkw1505EZvgP02vXeRyWBR\nfKiL1vGy4tCSRDdZO3ms2J2m08VPv65HsHaWYMnO+rNJmMZj9d9JdL/9GRf5F6U0\nquoIFL39BhUEvBynuqlrqistnyOhw8W/IQy/ymNzBMcMz6rcMjMwhkgm/LNXoSD1\n1OrJu4ktQwRhwvGVarnB8ihwjsTxZFylaLmFSfaA+OAlOqCLS1OkIVMzjW+Ul6A6\nqjiCEUOsnlf4CGlhzNMZOx3low6ixzEqKOcfECpeIj80a2fBDmWkcAAjlHu6VBhA\nTUDG9e2xKLzV2Z/DLYsb3+n9QW7KO0yZKfiuUo6AYboAioQKn5jh3iRvjGh2Ujpo\n22G+oae3PcCc7G+z12j6xIY709FQuA49dA2YpzMda0/OX4LP56STEveDRrO+CnV6\nWE+F5FaIKwb72PL4rLi4\n=i0tj\n-----END PGP PUBLIC KEY BLOCK-----" > /tmp/keys/0.key && apt-key add /tmp/keys/0.key
---> Using cache
---> 719833e85b7f
Step 13/26 : RUN echo deb
http://repositories.ros.org/ubuntu/testing bionic main | tee -a /etc/apt/sources.list.d/buildfarm.list
---> Using cache
---> 7cacaf6d1d57
Step 14/26 : RUN mkdir /tmp/wrapper_scripts
---> Using cache
---> 1629e48823f6
Step 15/26 : RUN echo "# Copyright 2014-2016 Open Source Robotics Foundation, Inc.\n#\n# Licensed under the Apache License, Version 2.0 (the \"License\");\n# you may not use this file except in compliance with the License.\n# You may obtain a copy of the License at\n#\n#
http://www.apache.org/licenses/LICENSE-2.0\n#\n# Unless required by applicable law or agreed to in writing, software\n# distributed under the License is distributed on an \"AS IS\" BASIS,\n# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n# See the License for the specific language governing permissions and\n# limitations under the License.\n\nimport subprocess\nimport sys\nfrom time import sleep\n\n\ndef main(argv=sys.argv[1:]):\n max_tries = 10\n known_error_strings = [\n 'Failed to fetch',\n 'Failed to stat',\n 'Hash Sum mismatch',\n 'Unable to locate package',\n 'is not what the server reported',\n ]\n\n command = argv[0]\n if command in ['update', 'source']:\n rc, _, _ = call_apt_repeatedly(\n argv, known_error_strings, max_tries)\n return rc\n elif command == 'update-install-clean':\n return call_apt_update_install_clean(\n argv[1:], known_error_strings, max_tries)\n else:\n assert \"Command '%s' not implemented\" % command\n\n\ndef call_apt_update_install_clean(\n install_argv, known_error_strings, max_tries):\n tries = 0\n command = 'update'\n while tries < max_tries:\n if command == 'update':\n rc, _, tries = call_apt_repeatedly(\n [command], known_error_strings, max_tries - tries,\n offset=tries)\n if rc != 0:\n # abort if update was unsuccessful even after retries\n break\n # move on to the install command if update was successful\n command = 'install'\n\n if command == 'install':\n # any call is considered a try\n tries += 1\n known_error_strings_redo_update = [\n 'Size mismatch',\n 'maybe run apt update',\n 'The following packages cannot be authenticated!',\n 'Unable to locate package',\n 'has no installation candidate',\n 'corrupted package archive',\n ]\n rc, known_error_conditions = \\\\\n call_apt(\n [command] + install_argv,\n known_error_strings + known_error_strings_redo_update)\n if not known_error_conditions:\n if rc != 0:\n # abort if install was unsuccessful\n break\n # move on to the clean command if install was successful\n command = 'clean'\n continue\n\n # known errors are always interpreted as a non-zero rc\n if rc == 0:\n rc = 1\n # check if update needs to be rerun\n if (\n set(known_error_conditions) &\n set(known_error_strings_redo_update)\n ):\n command = 'update'\n print(\"'apt install' failed and likely requires \" +\n \"'apt update' to run again\")\n # retry with update command\n continue\n\n print('')\n print('Invocation failed due to the following known error '\n 'conditions: ' + ', '.join(known_error_conditions))\n print('')\n if tries < max_tries:\n sleep_time = 5\n print(\"Reinvoke 'apt install' after sleeping %s seconds\" %\n sleep_time)\n sleep(sleep_time)\n # retry install command\n\n if command == 'clean':\n rc, _ = call_apt([command], [])\n break\n\n return rc\n\n\ndef call_apt_repeatedly(argv, known_error_strings, max_tries, offset=0):\n command = argv[0]\n for i in range(1, max_tries + 1):\n if i > 1:\n sleep_time = 5 + 2 * (i + offset)\n print(\"Reinvoke 'apt %s' (%d/%d) after sleeping %s seconds\" %\n (command, i + offset, max_tries + offset, sleep_time))\n sleep(sleep_time)\n rc, known_error_conditions = call_apt(argv, known_error_strings)\n if not known_error_conditions:\n # break the loop and return the reported rc\n break\n # known errors are always interpreted as a non-zero rc\n if rc == 0:\n rc = 1\n print('')\n print('Invocation failed due to the following known error conditions: '\n ', '.join(known_error_conditions))\n print('')\n # retry in case of failure with known error condition\n return rc, known_error_conditions, i + offset\n\n\ndef call_apt(argv, known_error_strings):\n known_error_conditions = []\n\n # some of the used options are not supported in older distros\n # e.g. Ubuntu Wily, Debian Jessie\n cmd = ['apt-get'] + argv\n print(\"Invoking '%s'\" % ' '.join(cmd))\n proc = subprocess.Popen(\n cmd, stdout=subprocess.PIPE, stderr=subprocess.STDOUT)\n lines = []\n while True:\n line = proc.stdout.readline()\n if not line:\n break\n line = line.decode()\n lines.append(line)\n sys.stdout.write(line)\n for known_error_string in known_error_strings:\n if known_error_string in line:\n if known_error_string not in known_error_conditions:\n known_error_conditions.append(known_error_string)\n proc.wait()\n rc = proc.returncode\n if rc and not known_error_conditions:\n print('Invocation failed without any known error condition, '\n 'printing all lines to debug known error detection:')\n for index, line in enumerate(lines):\n print(' ', index + 1, \"'%s'\" % line.rstrip('\\\\n\\\\r'))\n print('None of the following known errors were detected:')\n for index, known_error_string in enumerate(known_error_strings):\n print(' ', index + 1, \"'%s'\" % known_error_string)\n return rc, known_error_conditions\n\n\nif __name__ == '__main__':\n sys.exit(main())" > /tmp/wrapper_scripts/apt.py
---> Using cache
---> b9961ee64c43
Step 16/26 : RUN echo "# Copyright 2016 Open Source Robotics Foundation, Inc.\n#\n# Licensed under the Apache License, Version 2.0 (the \"License\");\n# you may not use this file except in compliance with the License.\n# You may obtain a copy of the License at\n#\n#
http://www.apache.org/licenses/LICENSE-2.0\n#\n# Unless required by applicable law or agreed to in writing, software\n# distributed under the License is distributed on an \"AS IS\" BASIS,\n# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n# See the License for the specific language governing permissions and\n# limitations under the License.\n\nimport subprocess\nimport sys\nfrom time import sleep\n\n\ndef main(argv=sys.argv[1:]):\n max_tries = 10\n known_error_strings = [\n 'Connection timed out',\n ]\n\n command = argv[0]\n if command == 'clone':\n rc, _, _ = call_git_repeatedly(\n argv, known_error_strings, max_tries)\n return rc\n else:\n assert \"Command '%s' not implemented\" % command\n\n\ndef call_git_repeatedly(argv, known_error_strings, max_tries):\n command = argv[0]\n for i in range(1, max_tries + 1):\n if i > 1:\n sleep_time = 5 + 2 * i\n print(\"Reinvoke 'git %s' (%d/%d) after sleeping %s seconds\" %\n (command, i, max_tries, sleep_time))\n sleep(sleep_time)\n rc, known_error_conditions = call_git(argv, known_error_strings)\n if rc == 0 or not known_error_conditions:\n break\n print('')\n print('Invocation failed due to the following known error conditions: '\n ', '.join(known_error_conditions))\n print('')\n # retry in case of failure with known error condition\n return rc, known_error_conditions, i\n\n\ndef call_git(argv, known_error_strings):\n known_error_conditions = []\n\n cmd = ['git'] + argv\n print(\"Invoking '%s'\" % ' '.join(cmd))\n proc = subprocess.Popen(\n cmd, stdout=subprocess.PIPE, stderr=subprocess.STDOUT)\n while True:\n line = proc.stdout.readline()\n if not line:\n break\n line = line.decode()\n sys.stdout.write(line)\n for known_error_string in known_error_strings:\n if known_error_string in line:\n if known_error_string not in known_error_conditions:\n known_error_conditions.append(known_error_string)\n proc.wait()\n rc = proc.returncode\n return rc, known_error_conditions\n\n\nif __name__ == '__main__':\n sys.exit(main())" > /tmp/wrapper_scripts/git.py
---> Using cache
---> 0590991e7a57
Step 17/26 : RUN echo "2023-07-06 (-0800)"
---> Using cache
---> da633ebcd83c
Step 18/26 : RUN for i in 1 2 3; do apt-get update && apt-get install -q -y python3 && apt-get clean && break || if [ $i -lt 3 ]; then sleep 5; else false; fi; done
---> Using cache
---> 81c424051c1f
Step 19/26 : RUN python3 -u /tmp/wrapper_scripts/apt.py update-install-clean -q -y git mercurial python3-apt python3-catkin-pkg-modules python3-empy python3-rosdep python3-rosdistro-modules subversion wget
---> Using cache
---> f6b102ed29d1
Step 20/26 : RUN echo "2023-07-06 02:31:31 -0800"
---> Running in 6e563b24d398
2023-07-06 02:31:31 -0800
Removing intermediate container 6e563b24d398
---> 78f13f4f5874
Step 21/26 : RUN python3 -u /tmp/wrapper_scripts/apt.py update
---> Running in 4fbe2e63287d
Invoking 'apt-get update'
Hit:1
http://repositories.ros.org/ubuntu/testing bionic InRelease
Get:2
http://security.ubuntu.com/ubuntu bionic-security InRelease [88.7 kB]
Hit:3
http://archive.ubuntu.com/ubuntu bionic InRelease
Get:4
http://archive.ubuntu.com/ubuntu bionic-updates InRelease [88.7 kB]
Get:5
http://archive.ubuntu.com/ubuntu bionic-backports InRelease [83.3 kB]
Fetched 261 kB in 1s (243 kB/s)
Reading package lists...
Removing intermediate container 4fbe2e63287d
---> 656059348554
Step 22/26 : ENV ROSDISTRO_INDEX_URL
https://raw.githubusercontent.com/ros/rosdistro/master/index-v4.yaml
---> Running in ce1aaccc4217
Removing intermediate container ce1aaccc4217
---> 9ef7672851cf
Step 23/26 : RUN rosdep init
---> Running in 7e25cedd8bbf
Wrote /etc/ros/rosdep/sources.list.d/20-default.list
Recommended: please run
rosdep update
Removing intermediate container 7e25cedd8bbf
---> f6b981924842
Step 24/26 : USER buildfarm
---> Running in 0b04d61e38a5
Removing intermediate container 0b04d61e38a5
---> 6af49c1e72ef
Step 25/26 : ENTRYPOINT ["sh", "-c"]
---> Running in 93cdb669497d
Removing intermediate container 93cdb669497d
---> 160d8db6866a
Step 26/26 : CMD ["rosdep update && PYTHONPATH=/tmp/ros_buildfarm:$PYTHONPATH python3 -u /tmp/ros_buildfarm/scripts/doc/create_doc_task_generator.py
https://raw.githubusercontent.com/ros-infrastructure/ros_buildfarm_config/production/index.yaml --rosdistro-name melodic default --workspace-root /tmp/ws --rosdoc-lite-dir /tmp/rosdoc_lite --catkin-sphinx-dir /tmp/catkin-sphinx --rosdoc-index-dir /tmp/rosdoc_index libpointmatcher --os-name ubuntu --os-code-name bionic --arch amd64 --build-tool catkin_make_isolated --vcs-info \"git master
https://github.com/ethz-asl/libpointmatcher.git\" --distribution-repository-urls
http://repositories.ros.org/ubuntu/testing --distribution-repository-key-files /tmp/keys/0.key --output-dir /tmp/generated_documentation --dockerfile-dir /tmp/docker_doc"]
---> Running in 0c35f2e5b240
Removing intermediate container 0c35f2e5b240
---> 42d54b905c68
Successfully built 42d54b905c68
Successfully tagged doc_task_generation.melodic_libpointmatcher:latest
+ echo # END SECTION
# END SECTION
+ echo # BEGIN SECTION: Run Dockerfile - generating doc task
# BEGIN SECTION: Run Dockerfile - generating doc task
+ rm -fr <
https://build.ros.org/job/Mdoc__libpointmatcher__ubuntu_bionic_amd64/ws/docker_doc>
+ mkdir -p <
https://build.ros.org/job/Mdoc__libpointmatcher__ubuntu_bionic_amd64/ws/docker_doc>
+ docker run --rm --cidfile=<
https://build.ros.org/job/Mdoc__libpointmatcher__ubuntu_bionic_amd64/ws/docker_generating_docker/docker.cid> -e=HOME=/home/buildfarm -e=TRAVIS= -e=ROS_BUILDFARM_PULL_REQUEST_BRANCH= -v <
https://build.ros.org/job/Mdoc__libpointmatcher__ubuntu_bionic_amd64/ws/ros_buildfarm>:/tmp/ros_buildfarm:ro -v <
https://build.ros.org/job/Mdoc__libpointmatcher__ubuntu_bionic_amd64/ws/rosdoc_lite>:/tmp/rosdoc_lite:ro -v <
https://build.ros.org/job/Mdoc__libpointmatcher__ubuntu_bionic_amd64/ws/catkin-sphinx>:/tmp/catkin-sphinx:ro -v <
https://build.ros.org/job/Mdoc__libpointmatcher__ubuntu_bionic_amd64/ws/rosdoc_index>:/tmp/rosdoc_index:ro -v <
https://build.ros.org/job/Mdoc__libpointmatcher__ubuntu_bionic_amd64/ws/ws>:/tmp/ws -v <
https://build.ros.org/job/Mdoc__libpointmatcher__ubuntu_bionic_amd64/ws/generated_documentation>:/tmp/generated_documentation -v <
https://build.ros.org/job/Mdoc__libpointmatcher__ubuntu_bionic_amd64/ws/docker_doc>:/tmp/docker_doc doc_task_generation.melodic_libpointmatcher
reading in sources list data from /etc/ros/rosdep/sources.list.d
Hit
https://raw.githubusercontent.com/ros/rosdistro/master/rosdep/osx-homebrew.yaml
Hit
https://raw.githubusercontent.com/ros/rosdistro/master/rosdep/base.yaml
Hit
https://raw.githubusercontent.com/ros/rosdistro/master/rosdep/python.yaml
Hit
https://raw.githubusercontent.com/ros/rosdistro/master/rosdep/ruby.yaml
Hit
https://raw.githubusercontent.com/ros/rosdistro/master/releases/fuerte.yaml
Query rosdistro index
https://raw.githubusercontent.com/ros/rosdistro/master/index-v4.yaml
Skip end-of-life distro "ardent"
Skip end-of-life distro "bouncy"
Skip end-of-life distro "crystal"
Skip end-of-life distro "dashing"
Skip end-of-life distro "eloquent"
Skip end-of-life distro "foxy"
Skip end-of-life distro "galactic"
Skip end-of-life distro "groovy"
Add distro "humble"
Skip end-of-life distro "hydro"
Skip end-of-life distro "indigo"
Add distro "iron"
Skip end-of-life distro "jade"
Skip end-of-life distro "kinetic"
Skip end-of-life distro "lunar"
Skip end-of-life distro "melodic"
Add distro "noetic"
Add distro "rolling"
updated cache in /home/buildfarm/.ros/rosdep/sources.cache
# BEGIN SUBSECTION: packages
Crawling for packages in workspace '/tmp/ws/src'
Found the following packages:
- libpointmatcher
Package maintainer emails:
f.pom...@gmail.com
# END SUBSECTION
# BEGIN SUBSECTION: determine need to run documentation generation
Current repository hashes: {'ros_buildfarm': 2, 'rosdoc_lite': '299a7c508ba4aeeb56d348a32d04433a30ade54b', 'catkin-sphinx': '471180b34bc764c869bcf5783526fd9bfc8b844b', 'libpointmatcher': 'f56fdde8dbdb9b2daca8dce556b0a97ecd389dd3'}
Stored repository hashes: {'catkin-sphinx': '471180b34bc764c869bcf5783526fd9bfc8b844b', 'libpointmatcher': '64f4da6ba9f1e6ee4882fa36d16ab283ab088d14', 'ros_buildfarm': 2, 'rosdoc_lite': '3628412ad55570effd3488f88fce5d03a0851c20'}
# END SUBSECTION
The source repository and/or a tooling repository has changed
Running generation of documentation
Creating marker files to identify that documentation is up-to-date
# BEGIN SUBSECTION: updated rosdoc_index information
Updating dependendencies for package 'libpointmatcher'
# END SUBSECTION
# BEGIN SUBSECTION: generate changelog html from rst
Package 'libpointmatcher' contains a CHANGELOG.rst, generating html
# END SUBSECTION
# BEGIN SUBSECTION: create rosdoc tag list and location files
Generating rosdoc tag list file for package 'libpointmatcher'
- skipping not existing location file of dependency 'catkin'
- including location files of dependency 'libnabo'
Creating location file for package 'libpointmatcher'
# END SUBSECTION
Traceback (most recent call last):
File "/tmp/ros_buildfarm/scripts/doc/create_doc_task_generator.py", line 21, in <module>
run_module('ros_buildfarm.scripts.doc.create_doc_task_generator', run_name='__main__')
File "/usr/lib/python3.6/runpy.py", line 208, in run_module
return _run_code(code, {}, init_globals, run_name, mod_spec)
File "/usr/lib/python3.6/runpy.py", line 85, in _run_code
exec(code, run_globals)
File "/tmp/ros_buildfarm/ros_buildfarm/scripts/doc/create_doc_task_generator.py", line 714, in <module>
sys.exit(main())
File "/tmp/ros_buildfarm/ros_buildfarm/scripts/doc/create_doc_task_generator.py", line 353, in main
source_build_files = get_source_build_files(config, args.rosdistro_name)
File "/tmp/ros_buildfarm/ros_buildfarm/config/__init__.py", line 89, in get_source_build_files
data = _get_build_file_data(index, dist_name, 'source_builds')
File "/tmp/ros_buildfarm/ros_buildfarm/config/__init__.py", line 120, in _get_build_file_data
', '.join(["'%s'" % d for d in index.distributions.keys()])))
RuntimeError: Unknown release: 'melodic'. Valid release names are: 'noetic'
Build step 'Execute shell' marked build as failure
$ ssh-agent -k
unset SSH_AUTH_SOCK;
unset SSH_AGENT_PID;
echo Agent pid 483245 killed;
[ssh-agent] Stopped.