-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Imported upstream version '1.2.16' of 'upstream'
- Loading branch information
Showing
1,189 changed files
with
27,958 additions
and
2,762 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,143 @@ | ||
on: | ||
push: | ||
branches: | ||
- master | ||
pull_request: | ||
|
||
jobs: | ||
ros: | ||
runs-on: ubuntu-latest | ||
container: ubuntu:18.04 | ||
continue-on-error: ${{ matrix.experimental }} | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
include: | ||
- ROS_DISTRO: indigo | ||
USE_DEB: true | ||
NOT_TEST_INSTALL : true | ||
USE_JENKINS: true | ||
DOCKER_IMAGE_JENKINS: ros-ubuntu:14.04-pcl | ||
BEFORE_SCRIPT : "sudo pip install numpy==1.16.6; sudo pip install scikit-learn==0.19.1 scipy==1.2.3; sudo pip install fcn chainercv chainer-mask-rcnn==0.3.0 decorator==4.4.2 chainer==6.7.0 protobuf==3.18.0 cupy-cuda91; sudo pip install requests[socks]==2.25.1" | ||
experimental : false | ||
- ROS_DISTRO: kinetic | ||
USE_DEB: true | ||
NOT_TEST_INSTALL : true | ||
USE_JENKINS: true | ||
DOCKER_IMAGE_JENKINS: ros-ubuntu:16.04-pcl | ||
BEFORE_SCRIPT : "sudo pip install numpy==1.16.6; sudo pip install fcn chainercv chainer-mask-rcnn==0.3.0 decorator==4.4.2 chainer==6.7.0 protobuf==3.18.0 cupy-cuda91 pytesseract==0.3.6 python-dateutil==2.5.0; wget https://download.pytorch.org/whl/cu90/torch-1.1.0-cp27-cp27mu-linux_x86_64.whl -O torch-1.1.0-cp27-cp27mu-linux_x86_64.whl; wget https://download.pytorch.org/whl/cu90/torchvision-0.3.0-cp27-cp27mu-manylinux1_x86_64.whl -O torchvision-0.3.0-cp27-cp27mu-manylinux1_x86_64.whl; sudo pip install torch-1.1.0-cp27-cp27mu-linux_x86_64.whl torchvision-0.3.0-cp27-cp27mu-manylinux1_x86_64.whl;" | ||
BUILD_PKGS: 'checkerboard_detector imagesift jsk_perception jsk_recognition_utils resized_image_transport' | ||
experimental : false | ||
- ROS_DISTRO: kinetic | ||
USE_DEB: true | ||
NOT_TEST_INSTALL : true | ||
USE_JENKINS: true | ||
DOCKER_IMAGE_JENKINS: ros-ubuntu:16.04-pcl | ||
BEFORE_SCRIPT : "sudo pip install numpy==1.16.6; sudo pip install fcn chainercv chainer-mask-rcnn==0.3.0 decorator==4.4.2 chainer==6.7.0 protobuf==3.18.0 cupy-cuda91 pytesseract==0.3.6 python-dateutil==2.5.0; wget https://download.pytorch.org/whl/cu90/torch-1.1.0-cp27-cp27mu-linux_x86_64.whl -O torch-1.1.0-cp27-cp27mu-linux_x86_64.whl; wget https://download.pytorch.org/whl/cu90/torchvision-0.3.0-cp27-cp27mu-manylinux1_x86_64.whl -O torchvision-0.3.0-cp27-cp27mu-manylinux1_x86_64.whl; sudo pip install torch-1.1.0-cp27-cp27mu-linux_x86_64.whl torchvision-0.3.0-cp27-cp27mu-manylinux1_x86_64.whl;" | ||
BUILD_PKGS: 'jsk_pcl_ros_utils jsk_pcl_ros' | ||
experimental : false | ||
- ROS_DISTRO: melodic | ||
USE_DEB: true | ||
NOT_TEST_INSTALL : true | ||
USE_JENKINS: true | ||
DOCKER_IMAGE_JENKINS: ros-ubuntu:18.04-pcl | ||
BEFORE_SCRIPT : "sudo pip install numpy==1.16.6; sudo pip install fcn chainercv chainer-mask-rcnn==0.3.0 decorator==4.4.2 chainer==6.7.0 protobuf==3.18.0 cupy-cuda91 pytesseract==0.3.6; wget https://download.pytorch.org/whl/cu90/torch-1.1.0-cp27-cp27mu-linux_x86_64.whl -O torch-1.1.0-cp27-cp27mu-linux_x86_64.whl; wget https://download.pytorch.org/whl/cu90/torchvision-0.3.0-cp27-cp27mu-manylinux1_x86_64.whl -O torchvision-0.3.0-cp27-cp27mu-manylinux1_x86_64.whl; sudo pip install torch-1.1.0-cp27-cp27mu-linux_x86_64.whl torchvision-0.3.0-cp27-cp27mu-manylinux1_x86_64.whl;" | ||
BUILD_PKGS: 'checkerboard_detector imagesift jsk_perception jsk_recognition_utils resized_image_transport' | ||
experimental : false | ||
- ROS_DISTRO: melodic | ||
USE_DEB: true | ||
NOT_TEST_INSTALL : true | ||
USE_JENKINS: true | ||
DOCKER_IMAGE_JENKINS: ros-ubuntu:18.04-pcl | ||
BEFORE_SCRIPT : "sudo pip install numpy==1.16.6; sudo pip install fcn chainercv chainer-mask-rcnn==0.3.0 decorator==4.4.2 chainer==6.7.0 protobuf==3.18.0 cupy-cuda91 pytesseract==0.3.6; wget https://download.pytorch.org/whl/cu90/torch-1.1.0-cp27-cp27mu-linux_x86_64.whl -O torch-1.1.0-cp27-cp27mu-linux_x86_64.whl; wget https://download.pytorch.org/whl/cu90/torchvision-0.3.0-cp27-cp27mu-manylinux1_x86_64.whl -O torchvision-0.3.0-cp27-cp27mu-manylinux1_x86_64.whl; sudo pip install torch-1.1.0-cp27-cp27mu-linux_x86_64.whl torchvision-0.3.0-cp27-cp27mu-manylinux1_x86_64.whl;" | ||
BUILD_PKGS: 'jsk_pcl_ros_utils jsk_pcl_ros' | ||
experimental : false | ||
- ROS_DISTRO: melodic | ||
USE_DEB: true | ||
NOT_TEST_INSTALL : true | ||
USE_JENKINS: true | ||
DOCKER_IMAGE_JENKINS: ros-ubuntu:18.04-pcl | ||
# check https://github.com/jsk-ros-pkg/jsk_recognition/pull/2533 | ||
BEFORE_SCRIPT : "sudo pip uninstall -y fcn chainer chainercv decorator cupy-cuda91 pytesseract==0.3.6; sudo ln -sf /bin/echo /usr/local/bin/pip; sudo ln -sf /bin/echo /usr/local/bin/pip2" | ||
TEST_PKGS : "jsk_recognition_msgs" | ||
experimental : false | ||
- ROS_DISTRO: noetic | ||
USE_DEB: false | ||
NOT_TEST_INSTALL : true | ||
USE_JENKINS: true | ||
DOCKER_IMAGE_JENKINS: ros-ubuntu:20.04-pcl | ||
BEFORE_SCRIPT : "sudo pip3 install numpy==1.17.5 scipy==1.3.3 scikit-image==0.16.2 PyWavelets==0.5.1 imageio==2.4.1 pandas==0.25.3; sudo pip3 install fcn chainercv chainer-mask-rcnn==0.3.0 decorator==4.4.2 chainer==7.8.1 protobuf==3.6.1 cupy-cuda91 pytesseract==0.3.10 Pillow==9.3.0 torch==1.4.0 torchvision==0.5.0;sudo dpkg -i /workspace/.ros/data/libpcl-features1.10_1.10.0+dfsg-5ubuntu1_amd64.deb;" | ||
BUILD_PKGS: 'checkerboard_detector imagesift jsk_perception jsk_recognition_utils resized_image_transport' | ||
EXTRA_DEB: ros-noetic-pr2-description | ||
experimental : false | ||
- ROS_DISTRO: noetic | ||
USE_DEB: false | ||
NOT_TEST_INSTALL : true | ||
USE_JENKINS: true | ||
DOCKER_IMAGE_JENKINS: ros-ubuntu:20.04-pcl | ||
TEST_PKGS : 'jsk_pcl_ros_utils jsk_pcl_ros' | ||
BEFORE_SCRIPT : "sudo pip3 install numpy==1.17.5 scipy==1.3.3 scikit-image==0.16.2 PyWavelets==0.5.1 imageio==2.4.1 pandas==0.25.3; sudo pip3 install fcn chainercv chainer-mask-rcnn==0.3.0 decorator==4.4.2 chainer==7.8.1 protobuf==3.6.1 cupy-cuda91 pytesseract==0.3.10 Pillow==9.3.0 torch==1.4.0 torchvision==0.5.0;sudo dpkg -i /workspace/.ros/data/libpcl-features1.10_1.10.0+dfsg-5ubuntu1_amd64.deb;" | ||
BUILD_PKGS: 'jsk_pcl_ros_utils jsk_pcl_ros' | ||
EXTRA_DEB: ros-noetic-pr2-description | ||
experimental : false | ||
- ROS_DISTRO: noetic | ||
USE_DEB: false | ||
NOT_TEST_INSTALL : true | ||
USE_JENKINS: true | ||
DOCKER_IMAGE_JENKINS: ros-ubuntu:20.04-pcl | ||
TEST_PKGS : 'jsk_recognition_msgs' # to skip test | ||
BEFORE_SCRIPT : "sudo pip3 install numpy==1.17.5 scipy==1.3.3 scikit-image==0.16.2 PyWavelets==0.5.1 imageio==2.4.1 pandas==0.25.3; sudo pip3 install fcn chainercv chainer-mask-rcnn==0.3.0 decorator==4.4.2 chainer==7.8.1 protobuf==3.6.1 cupy-cuda91 pytesseract==0.3.10 Pillow==9.3.0 torch==1.4.0 torchvision==0.5.0;sudo dpkg -i /workspace/.ros/data/libpcl-features1.10_1.10.0+dfsg-5ubuntu1_amd64.deb;" | ||
EXTRA_DEB: ros-noetic-pr2-description | ||
experimental : false | ||
|
||
|
||
steps: | ||
- name: Install latest git ( use sudo for ros-ubuntu ) | ||
run: | | ||
[ -e /etc/apt/sources.list.d/ubuntu-esm-infra-$(lsb_release -cs).list ] && sudo rm /etc/apt/sources.list.d/ubuntu-esm-infra-$(lsb_release -cs).list ## fix Err https://esm.ubuntu.com trusty-infra-security/main amd64 Packages, gnutls_handshake() failed: Handshake failed | ||
(apt-get update && apt-get install -y sudo) || echo "OK" | ||
(apt-get update && apt-get install -y sudo) || echo "OK" | ||
sudo apt-get update | ||
sudo apt-get install -y software-properties-common | ||
sudo apt-get update | ||
sudo -E add-apt-repository -y ppa:git-core/ppa | ||
sudo apt-get update | ||
sudo apt-get install -y git | ||
- name: work around permission issue # https://github.com/actions/checkout/issues/760#issuecomment-1097501613 | ||
run: | | ||
set -x | ||
export USER=$(whoami) | ||
if [ "${{ matrix.CONTAINER }}" = "jskrobotics/ros-ubuntu:*" ]; then | ||
git config --global --add safe.directory $GITHUB_WORKSPACE || echo "OK" # Show 'could not lock config file /github/home/.gitconfig: Permission denied', but it is ok | ||
sudo mkdir -p /__w/ | ||
sudo chmod 777 -R /__w/ | ||
sudo chown -R $USER $HOME | ||
# sudo mkdir -p /home/runner/work/_temp/_github_workflow/ | ||
# sudo chown -R $USER $HOME /home/runner/work/_temp/_github_workflow/ | ||
# ls -al /home/runner/work/_temp/_github_workflow/ | ||
else | ||
git config --global --add safe.directory $GITHUB_WORKSPACE | ||
fi | ||
- name: Chcekout | ||
uses: actions/checkout@v2 | ||
with: | ||
fetch-depth: 2 | ||
|
||
- name: Run jsk_travis | ||
uses: jsk-ros-pkg/jsk_travis@master | ||
with: | ||
ROS_PARALLEL_JOBS : "-j8" | ||
ROS_PARALLEL_TEST_JOBS : "-j1" | ||
CATKIN_PARALLEL_TEST_JOBS : "-p1" | ||
ROS_DISTRO : ${{ matrix.ROS_DISTRO }} | ||
USE_DEB : ${{ matrix.USE_DEB }} | ||
NOT_TEST_INSTALL : ${{ matrix.NOT_TEST_INSTALL }} | ||
TEST_PKGS : ${{ matrix.TEST_PKGS }} | ||
BUILD_PKGS : ${{ matrix.BUILD_PKGS }} | ||
BEFORE_SCRIPT : ${{ matrix.BEFORE_SCRIPT }} | ||
EXTRA_DEB : ${{ matrix.EXTRA_DEB }} | ||
USE_JENKINS : ${{ matrix.USE_JENKINS }} | ||
DOCKER_IMAGE_JENKINS : ${{ matrix.DOCKER_IMAGE_JENKINS }} | ||
TIMEOUT_JENKINS : 180 |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
# generated by `./generate_action_config.py noetic` | ||
# jsk_travis | ||
on: [push, pull_request] | ||
|
||
jobs: | ||
test: | ||
runs-on: ubuntu-latest | ||
name: check_python2 | ||
|
||
container: ubuntu:20.04 | ||
|
||
steps: | ||
- name: Chcekout | ||
uses: actions/checkout@v2 | ||
- name: Check Python2 | ||
run: | | ||
apt update -q && apt install -y -q python2 | ||
python2 -m compileall -x `find docker -name "*.py"` . |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
# generated by `./generate_action_config.py noetic` | ||
# jsk_travis | ||
on: [push, pull_request] | ||
|
||
jobs: | ||
test: | ||
runs-on: ubuntu-latest | ||
name: check_python3 | ||
|
||
container: ubuntu:20.04 | ||
|
||
steps: | ||
- name: Install latest git to download .git directory in actions/checkout@v2, git diff requries .git directory ( use sudo for ros-ubuntu ) | ||
run: apt-get update && apt-get install -y software-properties-common && apt-get update && add-apt-repository -y ppa:git-core/ppa && apt-get update && apt-get install -y git | ||
- name: work around permission issue # https://github.com/actions/checkout/issues/760#issuecomment-1097501613 | ||
run: git config --global --add safe.directory $GITHUB_WORKSPACE | ||
- name: Chcekout | ||
uses: actions/checkout@v2 | ||
- name: Check Python3 | ||
run: | | ||
apt update -q && apt install -y -q python3 git 2to3 | ||
bash -c "ret=0; trap 'ret=1' ERR; python3 -m compileall .; 2to3 -w -f except -f execfile -f has_key -f raw_input -f zip -f xrange .; find . -type f -exec grep -Iq . {} \; -a -not -regex '.*/node_scripts/[^/]*py' -exec 2to3 -w -f import {} \; ; git diff --exit-code . > /dev/null; echo Exitting with \$ret; exit \$ret" |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
- git: # https://github.com/ros-perception/image_transport_plugins/pull/64 | ||
uri: https://github.com/ros-perception/image_transport_plugins.git | ||
local-name: image_transport_plugins | ||
version: noetic-devel |
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,105 @@ | ||
#!/usr/bin/env python | ||
|
||
# script to generate Github Action workflow config file | ||
|
||
import argparse | ||
import sys | ||
from collections import defaultdict | ||
|
||
def get_argument_parser(): | ||
parser = argparse.ArgumentParser(description="Create .github/workflows/*.yml for Github Actions") | ||
add = parser.add_argument | ||
add('distros', nargs='+', help="distros to check on github actions") | ||
add('--verbose', '-v', action='store_true', default=False, help="show debug message") | ||
return parser | ||
|
||
def main(sysargs): | ||
parser = get_argument_parser() | ||
args = parser.parse_args(sys.argv[1:]) | ||
distros = args.distros | ||
verbose = args.verbose | ||
# | ||
program = ' '.join(sys.argv) | ||
|
||
for distro in distros: | ||
print("Generate {}.yml".format(distro)) | ||
checkout = defaultdict(lambda: 'actions/checkout@v2',hydro='actions/checkout@v1')[distro] | ||
container = defaultdict(lambda: 'jskrobotics/ros-ubuntu:18.04', | ||
hydro = 'jskrobotics/ros-ubuntu:12.04', | ||
indigo = 'jskrobotics/ros-ubuntu:14.04', | ||
kinetic= 'jskrobotics/ros-ubuntu:16.04', | ||
melodic= 'jskrobotics/ros-ubuntu:18.04', | ||
noetic = 'jskrobotics/ros-ubuntu:20.04')[distro] | ||
with open('{}.yml'.format(distro), mode='w') as f: | ||
f.write('''# generated by `%(program)s` | ||
# jsk_travis | ||
on: [push, pull_request] | ||
jobs: | ||
%(distro)s: | ||
runs-on: ubuntu-latest | ||
name: %(distro)s | ||
container: %(container)s | ||
steps: | ||
- name: Install latest git ( use sudo for ros-ubuntu, remove sudo for ubuntu container), checkout@v2 uses REST API for git<2.18, which removes .git folder and does not checkout .travis submodules | ||
run: sudo apt-get update && sudo apt-get install -y software-properties-common && sudo apt-get update && sudo add-apt-repository -y ppa:git-core/ppa && sudo apt-get update && sudo apt-get install -y git | ||
- name: Before Checkout # need for actions/checkout with ros-ubuntu container | ||
run: sudo chown -R user:jenkins $RUNNER_WORKSPACE $HOME | ||
- name: Checkout | ||
uses: %(checkout)s | ||
- name: Run jsk_travis | ||
uses: jsk-ros-pkg/jsk_travis@master | ||
with: | ||
ROS_DISTRO : %(distro)s | ||
''' % locals()) | ||
|
||
# python3 test | ||
print("Generate python3.yml") | ||
with open('python3.yml', mode='w') as f: | ||
f.write('''# generated by `%(program)s` | ||
# jsk_travis | ||
on: [push, pull_request] | ||
jobs: | ||
test: | ||
runs-on: ubuntu-latest | ||
name: check_python3 | ||
container: ubuntu:20.04 | ||
steps: | ||
- name: Chcekout | ||
uses: actions/checkout@v2 | ||
- name: Check Python3 | ||
run: | | ||
apt update -q && apt install -y -q python3 | ||
python3 -m compileall . | ||
''' % locals()) | ||
# python2 test | ||
print("Generate python2.yml") | ||
with open('python2.yml', mode='w') as f: | ||
f.write('''# generated by `%(program)s` | ||
# jsk_travis | ||
on: [push, pull_request] | ||
jobs: | ||
test: | ||
runs-on: ubuntu-latest | ||
name: check_python2 | ||
container: ubuntu:20.04 | ||
steps: | ||
- name: Chcekout | ||
uses: actions/checkout@v2 | ||
- name: Check python2 | ||
run: | | ||
apt update -q && apt install -y -q python2 | ||
python2 -m compileall . | ||
''' % locals()) | ||
|
||
|
||
if __name__ == '__main__': | ||
sys.exit(main(sys.argv[1:]) or 0) |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
# generated by `./generate_action_config.py indigo kinetic melodic noetic` | ||
# jsk_travis | ||
on: [push, pull_request] | ||
|
||
env: | ||
TEST_VAR1: true | ||
TEST_VAR2: false | ||
|
||
jobs: | ||
indigo: | ||
runs-on: ubuntu-latest | ||
name: indigo | ||
|
||
container: jskrobotics/ros-ubuntu:14.04 | ||
|
||
steps: | ||
- name: Install latest git ( use sudo for ros-ubuntu, remove sudo for ubuntu container), checkout@v2 uses REST API for git<2.18, which removes .git folder and does not checkout .travis submodules | ||
run: sudo apt-get update && sudo apt-get install -y software-properties-common && sudo apt-get update && sudo add-apt-repository -y ppa:git-core/ppa && sudo apt-get update && sudo apt-get install -y git | ||
- name: work around permission issue # https://github.com/actions/checkout/issues/760#issuecomment-1097501613 | ||
run: | | ||
set -x | ||
export USER=$(whoami) | ||
git config --global --add safe.directory $GITHUB_WORKSPACE || echo "OK" # Show 'could not lock config file /github/home/.gitconfig: Permission denied', but it is ok | ||
sudo mkdir -p /__w/ | ||
sudo chmod 777 -R /__w/ | ||
sudo chown -R $USER $HOME | ||
- name: Checkout | ||
uses: actions/checkout@v2 | ||
- name: Run jsk_travis | ||
uses: ./ | ||
with: | ||
ADDITIONAL_ENV_TO_DOCKER: 'TEST_VAR1 TEST_VAR2' | ||
ROS_DISTRO : indigo |
Oops, something went wrong.