Skip to content

Commit 0a73cd1

Browse files
Felix ExnerVinDp
authored andcommitted
Update CI
* Run downstream tests for ICI * Correctly name jobs * Test Jazzy driver
1 parent 0ca64c2 commit 0a73cd1

File tree

2 files changed

+26
-94
lines changed

2 files changed

+26
-94
lines changed

.github/workflows/ci.yml

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ jobs:
55
build:
66
timeout-minutes: 30
77
runs-on: ubuntu-latest
8+
name: build (${{matrix.env.URSIM_VERSION}}-${{matrix.env.ROBOT_MODEL}})
89
strategy:
910
matrix:
1011
env:
@@ -34,9 +35,9 @@ jobs:
3435
- name: configure
3536
run: mkdir build && cd build && cmake .. -DBUILDING_TESTS=1 -DINTEGRATION_TESTS=1 -DWITH_ASAN=ON
3637
env:
37-
CXXFLAGS: -g -O2 -fprofile-arcs -ftest-coverage
38-
CFLAGS: -g -O2 -fprofile-arcs -ftest-coverage
39-
LDFLAGS: -fprofile-arcs -ftest-coverage
38+
CXXFLAGS: -g -O2 -fprofile-arcs -ftest-coverage
39+
CFLAGS: -g -O2 -fprofile-arcs -ftest-coverage
40+
LDFLAGS: -fprofile-arcs -ftest-coverage
4041
- name: build
4142
run: cmake --build build --config Debug
4243
- name: Create folder for test artifacts

.github/workflows/industrial-ci.yml

Lines changed: 22 additions & 91 deletions
Original file line numberDiff line numberDiff line change
@@ -2,100 +2,31 @@ name: ROS industrial ci
22
on: [push, pull_request]
33

44
jobs:
5-
build:
5+
industrial_ci:
6+
name: ${{matrix.ROS_DISTRO.NAME}}, ${{matrix.ROS_REPO}}
67
runs-on: ubuntu-latest
78
strategy:
89
fail-fast: false
910
matrix:
10-
env:
11-
- ROS_DISTRO: melodic
12-
ROS_REPO: main
13-
IMMEDIATE_TEST_OUTPUT: true
14-
DOWNSTREAM_WORKSPACE: "github:UniversalRobots/Universal_Robots_ROS_Driver#master https://raw.githubusercontent.com/UniversalRobots/Universal_Robots_ROS_Driver/master/.melodic.rosinstall"
15-
DOCKER_RUN_OPTS: --network ursim_net
16-
BEFORE_INIT: 'apt-get update -qq && apt-get install -y iproute2 iputils-ping && ip addr && ping -c5 192.168.56.101'
17-
URSIM_VERSION: '5.9.4'
18-
ROBOT_MODEL: 'ur5e'
19-
PROGRAM_FOLDER: 'tests/resources/dockerursim/programs/e-series'
20-
- ROS_DISTRO: noetic
21-
ROS_REPO: main
22-
IMMEDIATE_TEST_OUTPUT: true
23-
DOWNSTREAM_WORKSPACE: "github:UniversalRobots/Universal_Robots_ROS_Driver#master https://raw.githubusercontent.com/UniversalRobots/Universal_Robots_ROS_Driver/master/.noetic.rosinstall"
24-
BUILDER: catkin_tools
25-
DOCKER_RUN_OPTS: --network ursim_net
26-
BEFORE_INIT: 'apt-get update -qq && apt-get install -y iproute2 iputils-ping && ip addr && ping -c5 192.168.56.101'
27-
URSIM_VERSION: '5.9.4'
28-
ROBOT_MODEL: 'ur5e'
29-
PROGRAM_FOLDER: 'tests/resources/dockerursim/programs/e-series'
30-
- ROS_DISTRO: galactic
31-
ROS_REPO: main
32-
IMMEDIATE_TEST_OUTPUT: true
33-
DOWNSTREAM_WORKSPACE: "github:UniversalRobots/Universal_Robots_ROS2_Driver#galactic"
34-
DOCKER_RUN_OPTS: --network ursim_net
35-
BEFORE_INIT: 'apt-get update -qq && apt-get install -y iproute2 iputils-ping && ip addr && ping -c5 192.168.56.101'
36-
URSIM_VERSION: '5.9.4'
37-
ROBOT_MODEL: 'ur5e'
38-
PROGRAM_FOLDER: 'tests/resources/dockerursim/programs/e-series'
39-
NOT_TEST_DOWNSTREAM: true
40-
- ROS_DISTRO: humble
41-
ROS_REPO: main
42-
IMMEDIATE_TEST_OUTPUT: true
43-
DOWNSTREAM_WORKSPACE: "github:UniversalRobots/Universal_Robots_ROS2_Driver#humble https://raw.githubusercontent.com/UniversalRobots/Universal_Robots_ROS2_Driver/humble/Universal_Robots_ROS2_Driver-not-released.humble.repos"
44-
DOCKER_RUN_OPTS: --network ursim_net
45-
BEFORE_INIT: 'apt-get update -qq && apt-get install -y iproute2 iputils-ping && ip addr && ping -c5 192.168.56.101'
46-
URSIM_VERSION: '5.9.4'
47-
ROBOT_MODEL: 'ur5e'
48-
PROGRAM_FOLDER: 'tests/resources/dockerursim/programs/e-series'
49-
NOT_TEST_DOWNSTREAM: true
50-
- ROS_DISTRO: iron
51-
ROS_REPO: main
52-
IMMEDIATE_TEST_OUTPUT: true
53-
DOWNSTREAM_WORKSPACE: "github:UniversalRobots/Universal_Robots_ROS2_Driver#iron https://raw.githubusercontent.com/UniversalRobots/Universal_Robots_ROS2_Driver/iron/Universal_Robots_ROS2_Driver-not-released.iron.repos"
54-
DOCKER_RUN_OPTS: --network ursim_net
55-
BEFORE_INIT: 'apt-get update -qq && apt-get install -y iproute2 iputils-ping && ip addr && ping -c5 192.168.56.101'
56-
URSIM_VERSION: '5.9.4'
57-
ROBOT_MODEL: 'ur5e'
58-
PROGRAM_FOLDER: 'tests/resources/dockerursim/programs/e-series'
59-
NOT_TEST_DOWNSTREAM: true
60-
- ROS_DISTRO: rolling
61-
ROS_REPO: main
62-
IMMEDIATE_TEST_OUTPUT: true
63-
DOWNSTREAM_WORKSPACE: "github:UniversalRobots/Universal_Robots_ROS2_Driver#main https://raw.githubusercontent.com/UniversalRobots/Universal_Robots_ROS2_Driver/main/Universal_Robots_ROS2_Driver-not-released.rolling.repos"
64-
DOCKER_RUN_OPTS: --network ursim_net
65-
BEFORE_INIT: 'apt-get update -qq && apt-get install -y iproute2 iputils-ping && ip addr && ping -c5 192.168.56.101'
66-
URSIM_VERSION: '5.9.4'
67-
ROBOT_MODEL: 'ur5e'
68-
PROGRAM_FOLDER: 'tests/resources/dockerursim/programs/e-series'
69-
NOT_TEST_DOWNSTREAM: true
70-
11+
ROS_DISTRO:
12+
- {NAME: noetic, DOWNSTREAM_WORKSPACE: "github:UniversalRobots/Universal_Robots_ROS_Driver#master https://raw.githubusercontent.com/UniversalRobots/Universal_Robots_ROS_Driver/master/.noetic.rosinstall"}
13+
- {NAME: humble, DOWNSTREAM_WORKSPACE: "github:UniversalRobots/Universal_Robots_ROS2_Driver#humble"}
14+
- {NAME: iron, DOWNSTREAM_WORKSPACE: "github:UniversalRobots/Universal_Robots_ROS2_Driver#iron"}
15+
- {NAME: jazzy, DOWNSTREAM_WORKSPACE: "github:UniversalRobots/Universal_Robots_ROS2_Driver#main"}
16+
- {NAME: rolling, DOWNSTREAM_WORKSPACE: "github:UniversalRobots/Universal_Robots_ROS2_Driver#main"}
17+
ROS_REPO:
18+
- main
19+
- testing
20+
env:
21+
DOCKER_RUN_OPTS: '-v /var/run/docker.sock:/var/run/docker.sock --network ursim_net'
7122
steps:
72-
- uses: actions/checkout@v1
73-
- name: start ursim
74-
run: |
75-
scripts/start_ursim.sh -m $ROBOT_MODEL -v $URSIM_VERSION -p $PROGRAM_FOLDER -d
76-
env: ${{matrix.env}}
23+
- uses: actions/checkout@v4
24+
- run: docker network create --subnet=192.168.56.0/24 ursim_net
7725
- uses: 'ros-industrial/industrial_ci@master'
78-
env: ${{matrix.env}}
79-
- name: Generate URSim log files
80-
if: always()
81-
run: |
82-
nc -q 1 192.168.56.101 29999 <<END
83-
saveLog
84-
END
85-
mkdir -p ursim_logs
86-
docker cp ursim:/ursim/URControl.log ursim_logs/URControl.log
87-
docker cp ursim:/ursim/polyscope.log ursim_logs/polyscope.log
88-
docker cp ursim:/ursim/log_history.txt ursim_logs/log_history.txt
89-
- name: Copy flight reports
90-
if: failure()
91-
run: |
92-
mkdir -p ursim_logs/flightreports
93-
docker cp ursim:/ursim/flightreports/. ursim_logs/flightreports/
94-
- name: Upload logfiles
95-
uses: actions/upload-artifact@v3
96-
if: always()
97-
with:
98-
name: ${{matrix.env.ROS_DISTRO}}_${{matrix.env.URSIM_VERSION}}_URSim_Logs
99-
path: ursim_logs
100-
if-no-files-found: error
101-
retention-days: 10
26+
env:
27+
IMMEDIATE_TEST_OUTPUT: true
28+
DOWNSTREAM_CMAKE_ARGS: -DUR_ROBOT_DRIVER_BUILD_INTEGRATION_TESTS=ON
29+
ADDITIONAL_DEBS: docker.io netcat-openbsd # Needed for integration tests
30+
DOWNSTREAM_WORKSPACE: ${{matrix.ROS_DISTRO.DOWNSTREAM_WORKSPACE}}
31+
ROS_DISTRO: ${{matrix.ROS_DISTRO.NAME}}
32+
ROS_REPO: ${{matrix.ROS_REPO}}

0 commit comments

Comments
 (0)