Skip to content

Commit d461ba8

Browse files
Merge branch 'main' into pr-delete_untagged_images
2 parents 210856a + 3b5efca commit d461ba8

653 files changed

Lines changed: 36127 additions & 9126 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.clang-tidy

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ Checks: '-*,
1111
modernize-loop-convert,
1212
modernize-make-shared,
1313
modernize-make-unique,
14+
misc-unused-parameters,
1415
readability-named-parameter,
1516
readability-redundant-smartptr-get,
1617
readability-redundant-string-cstr,
@@ -25,6 +26,8 @@ CheckOptions:
2526
value: '10'
2627
- key: llvm-namespace-comment.SpacesBeforeComments
2728
value: '2'
29+
- key: misc-unused-parameters.StrictMode
30+
value: '1'
2831
- key: readability-braces-around-statements.ShortStatementLines
2932
value: '2'
3033
# type names

.codespell_words

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
ang
2+
ans
3+
atleast
4+
ba
5+
dof
6+
dur
7+
iff
8+
keyserver
9+
nto
10+
ot
11+
parameterizes
12+
planed
13+
tork
14+
uint
15+
whis

.dockerignore

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,9 +14,6 @@
1414
!moveit_setup_assistant/package.xml
1515
!moveit_core/package.xml
1616
!moveit_commander/package.xml
17-
!moveit_demo_nodes/run_move_group/package.xml
18-
!moveit_demo_nodes/run_ompl_constrained_planning/package.xml
19-
!moveit_demo_nodes/run_moveit_cpp/package.xml
2017
!moveit_planners/ompl/package.xml
2118
!moveit_planners/chomp/chomp_motion_planner/package.xml
2219
!moveit_planners/chomp/chomp_interface/package.xml

.github/CODEOWNERS.disabled

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -36,8 +36,6 @@
3636
/moveit_plugins/moveit_simple_controller_manager/ @mikeferguson @v4hn
3737
/moveit_plugins/moveit_controller_manager_example/ @v4hn
3838

39-
/moveit_core/background_processing/ @tylerjw
40-
/moveit_core/backtrace/ @tylerjw
4139
/moveit_core/collision_detection/ @j-petit
4240
/moveit_core/collision_detection_fcl/ @j-petit
4341
/moveit_core/collision_distance_field/ @j-petit
@@ -53,7 +51,6 @@
5351
/moveit_core/planning_interface/ @rhaschke @felixvd
5452
/moveit_core/planning_request_adapter/ @rhaschke
5553
/moveit_core/planning_scene/ @rhaschke @felixvd
56-
/moveit_core/profiler/ @tylerjw
5754
/moveit_core/robot_model/ @tylerjw
5855
/moveit_core/robot_state/ @rhaschke @mlautman @felixvd
5956
/moveit_core/robot_trajectory/ @mlautman

.github/ccache.conf

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
max_size = 10.0G

.github/mergify.yml

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,18 +8,27 @@ pull_request_rules:
88
branches:
99
- foxy
1010

11+
- name: backport to galactic at reviewers discretion
12+
conditions:
13+
- base=main
14+
- "label=backport-galactic"
15+
actions:
16+
backport:
17+
branches:
18+
- galactic
19+
1120
- name: ask to resolve conflict
1221
conditions:
1322
- conflict
14-
- author!=mergify
23+
- author!=mergify[bot]
1524
actions:
1625
comment:
1726
message: This pull request is in conflict. Could you fix it @{{author}}?
1827

1928
- name: development targets main branch
2029
conditions:
2130
- base!=main
22-
- author!=mergify
31+
- author!=mergify[bot]
2332
actions:
2433
comment:
2534
message: |

.github/workflows/ci.yaml

Lines changed: 42 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -18,29 +18,40 @@ jobs:
1818
env:
1919
- IMAGE: rolling-ci
2020
CCOV: true
21+
ROS_DISTRO: rolling
2122
- IMAGE: rolling-ci-testing
2223
IKFAST_TEST: true
23-
- IMAGE: galactic-ci
24+
ROS_DISTRO: rolling
2425
CLANG_TIDY: pedantic
25-
- IMAGE: galactic-ci-testing
2626
env:
2727
CXXFLAGS: "-Wall -Wextra -Wwrite-strings -Wunreachable-code -Wpointer-arith -Wredundant-decls -Wno-deprecated-copy"
28+
CLANG_TIDY_ARGS: --fix --fix-errors --format-style=file
2829
DOCKER_IMAGE: ghcr.io/ros-planning/moveit2:${{ matrix.env.IMAGE }}
2930
UPSTREAM_WORKSPACE: moveit2.repos $(f="moveit2_$(sed 's/-.*$//' <<< "${{ matrix.env.IMAGE }}").repos"; test -r $f && echo $f)
30-
# TODO(#885): Fix circular test dependency with moveit_resources and remove it from the target workspace
31-
TARGET_WORKSPACE: $TARGET_REPO_PATH github:ros-planning/moveit_resources#ros2
3231
# Pull any updates to the upstream workspace (after restoring it from cache)
3332
AFTER_SETUP_UPSTREAM_WORKSPACE: vcs pull $BASEDIR/upstream_ws/src
3433
AFTER_SETUP_DOWNSTREAM_WORKSPACE: vcs pull $BASEDIR/downstream_ws/src
34+
# Clear the ccache stats before and log the stats after the build
35+
BEFORE_BUILD_UPSTREAM_WORKSPACE: ccache -z
36+
AFTER_BUILD_TARGET_WORKSPACE: ccache -s
37+
# Changing linker to lld as ld has a behavior where it takes a long time to finish
3538
TARGET_CMAKE_ARGS: >
39+
-DCMAKE_EXE_LINKER_FLAGS=-fuse-ld=lld
40+
-DCMAKE_SHARED_LINKER_FLAGS=-fuse-ld=lld
41+
-DCMAKE_MODULE_LINKER_FLAGS=-fuse-ld=lld
3642
-DCMAKE_BUILD_TYPE=${{ matrix.env.CCOV && 'Debug' || 'Release'}}
3743
-DCMAKE_CXX_FLAGS="${{ matrix.env.CLANG_TIDY != 'pedantic' && '-Werror ' || '' }}${{ matrix.env.CCOV && ' --coverage -O2 -fno-omit-frame-pointer'}}"
3844
CCACHE_DIR: ${{ github.workspace }}/.ccache
3945
BASEDIR: ${{ github.workspace }}/.work
4046
CLANG_TIDY_BASE_REF: ${{ github.event_name != 'workflow_dispatch' && (github.base_ref || github.ref) || '' }}
41-
BEFORE_CLANG_TIDY_CHECKS: (cd $TARGET_REPO_PATH; clang-tidy --list-checks)
47+
BEFORE_CLANG_TIDY_CHECKS: |
48+
# Show list of applied checks
49+
(cd $TARGET_REPO_PATH; clang-tidy --list-checks)
50+
# Disable clang-tidy for ikfast plugins as we cannot fix the generated code
51+
find $BASEDIR/target_ws/build -iwholename "*_ikfast_plugin/compile_commands.json" -exec rm {} \;
4252
CC: ${{ matrix.env.CLANG_TIDY && 'clang' }}
4353
CXX: ${{ matrix.env.CLANG_TIDY && 'clang++' }}
54+
ADDITIONAL_DEBS: lld
4455

4556
name: ${{ matrix.env.IMAGE }}${{ matrix.env.CCOV && ' + ccov' || ''}}${{ matrix.env.IKFAST_TEST && ' + ikfast' || ''}}${{ matrix.env.CLANG_TIDY && (github.event_name != 'workflow_dispatch' && ' + clang-tidy (delta)' || ' + clang-tidy (all)') || '' }}
4657
runs-on: ubuntu-latest
@@ -60,14 +71,27 @@ jobs:
6071
sudo rm -rf /usr/local
6172
df -h
6273
- uses: actions/checkout@v2
74+
- uses: testspace-com/setup-testspace@v1
75+
with:
76+
domain: ros-planning
77+
- name: Get latest release date for rosdistro
78+
id: rosdistro_release_date
79+
uses: JafarAbdi/latest-rosdistro-release-date-action@main
80+
with:
81+
rosdistro: ${{ matrix.env.ROS_DISTRO }}
82+
- name: Get latest timestamp repos file has been edited
83+
id: repos_edit_timestamp
84+
uses: vatanaksoytezer/latest-file-edit-timestamp-action@main
85+
with:
86+
file: moveit2.repos
6387
- name: Cache upstream workspace
6488
uses: pat-s/always-upload-cache@v2.1.5
6589
with:
6690
path: ${{ env.BASEDIR }}/upstream_ws
6791
key: ${{ env.CACHE_PREFIX }}-${{ github.run_id }}
6892
restore-keys: ${{ env.CACHE_PREFIX }}
6993
env:
70-
CACHE_PREFIX: upstream_ws-${{ matrix.env.IMAGE }}-${{ hashFiles('moveit2*.repos', '.github/workflows/ci.yaml') }}
94+
CACHE_PREFIX: ${{ steps.rosdistro_release_date.outputs.date }}-upstream_ws-${{ steps.repos_edit_timestamp.outputs.timestamp }}-${{ matrix.env.IMAGE }}-${{ hashFiles('moveit2*.repos', '.github/workflows/ci.yaml') }}
7195
# The target directory cache doesn't include the source directory because
7296
# that comes from the checkout. See "prepare target_ws for cache" task below
7397
- name: Cache target workspace
@@ -89,15 +113,21 @@ jobs:
89113
${{ env.CACHE_PREFIX }}
90114
env:
91115
CACHE_PREFIX: ccache-${{ matrix.env.IMAGE }}${{ matrix.env.CCOV && '-ccov' || '' }}
92-
116+
- name: Configure ccache
117+
run: |
118+
mkdir -p ${{ env.CCACHE_DIR }}
119+
cp .github/ccache.conf ${{ env.CCACHE_DIR }}/ccache.conf
93120
- name: Generate ikfast packages
94121
if: matrix.env.IKFAST_TEST
95122
run: moveit_kinematics/test/test_ikfast_plugins.sh
96123
- id: ici
97124
name: Run industrial_ci
98125
uses: ros-industrial/industrial_ci@master
99126
env: ${{ matrix.env }}
100-
127+
- name: Push result to Testspace
128+
if: always()
129+
run: |
130+
testspace "[ ${{ matrix.env.IMAGE }} ]${{ env.BASEDIR }}/target_ws/**/test_results/**/*.xml"
101131
- name: Upload test artifacts (on failure)
102132
uses: actions/upload-artifact@v2
103133
if: failure() && (steps.ici.outputs.run_target_test || steps.ici.outputs.target_test_results)
@@ -106,24 +136,24 @@ jobs:
106136
path: ${{ env.BASEDIR }}/target_ws/**/test_results/**/*.xml
107137
- name: Generate codecov report
108138
uses: rhaschke/lcov-action@main
109-
if: matrix.env.CCOV && steps.ici.outputs.target_test_results == '0'
139+
if: always() && matrix.env.CCOV && steps.ici.outputs.target_test_results == '0'
110140
with:
111141
docker: $DOCKER_IMAGE
112142
workdir: ${{ env.BASEDIR }}/target_ws
113143
ignore: '"*/target_ws/build/*" "*/target_ws/install/*" "*/test/*"'
114144
- name: Upload codecov report
115145
uses: codecov/codecov-action@v2
116-
if: matrix.env.CCOV && steps.ici.outputs.target_test_results == '0'
146+
if: always() && matrix.env.CCOV && steps.ici.outputs.target_test_results == '0'
117147
with:
118148
files: ${{ env.BASEDIR }}/target_ws/coverage.info
119149
- name: Upload clang-tidy changes
120150
uses: rhaschke/upload-git-patch-action@main
121-
if: matrix.env.CLANG_TIDY
151+
if: always() && matrix.env.CLANG_TIDY
122152
with:
123153
name: clang-tidy
124154
path: ${{ env.BASEDIR }}/target_ws/src/$(basename $(pwd))
125155
- name: Prepare target_ws for cache
126-
if: "!matrix.env.CCOV"
156+
if: always() && !matrix.env.CCOV
127157
run: |
128158
du -sh ${{ env.BASEDIR }}/target_ws
129159
sudo find ${{ env.BASEDIR }}/target_ws -wholename '*/test_results/*' -delete

.github/workflows/docker.yaml

Lines changed: 12 additions & 55 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ jobs:
1414
strategy:
1515
fail-fast: false
1616
matrix:
17-
ROS_DISTRO: [rolling, galactic]
17+
ROS_DISTRO: [rolling]
1818
runs-on: ubuntu-latest
1919
permissions:
2020
packages: write
@@ -24,20 +24,9 @@ jobs:
2424
DH_IMAGE: moveit/moveit2:${{ matrix.ROS_DISTRO }}-${{ github.job }}
2525

2626
steps:
27-
- name: Check for apt updates
28-
uses: addnab/docker-run-action@v3
29-
continue-on-error: true
30-
id: apt
31-
with:
32-
image: ${{ env.GH_IMAGE }}
33-
run: |
34-
apt-get update
35-
have_updates=$(apt-get --simulate upgrade | grep -q "^0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.$" && echo false || echo true)
36-
echo "::set-output name=no_cache::$have_updates"
3727
- name: Set up Docker Buildx
3828
uses: docker/setup-buildx-action@v1
39-
if: ${{ github.event_name == 'workflow_dispatch' || github.event_name != 'schedule' || steps.apt.outputs.no_cache }}
40-
- name: Login to Github Containter Registry
29+
- name: Login to Github Container Registry
4130
uses: docker/login-action@v1
4231
with:
4332
registry: ghcr.io
@@ -50,14 +39,11 @@ jobs:
5039
password: ${{ secrets.DOCKERHUB_TOKEN }}
5140
- name: Build and Push
5241
uses: docker/build-push-action@v2
53-
if: ${{ github.event_name == 'workflow_dispatch' || github.event_name != 'schedule' || steps.apt.outputs.no_cache }}
5442
with:
5543
file: .docker/${{ github.job }}/Dockerfile
5644
build-args: ROS_DISTRO=${{ matrix.ROS_DISTRO }}
5745
push: true
58-
no-cache: ${{ steps.apt.outputs.no_cache || github.event_name == 'workflow_dispatch' }}
59-
cache-from: type=registry,ref=${{ env.GH_IMAGE }}
60-
cache-to: type=inline
46+
no-cache: true
6147
tags: |
6248
${{ env.GH_IMAGE }}
6349
${{ env.DH_IMAGE }}
@@ -66,7 +52,7 @@ jobs:
6652
strategy:
6753
fail-fast: false
6854
matrix:
69-
ROS_DISTRO: [rolling, galactic]
55+
ROS_DISTRO: [rolling]
7056
runs-on: ubuntu-latest
7157
permissions:
7258
packages: write
@@ -76,20 +62,9 @@ jobs:
7662
DH_IMAGE: moveit/moveit2:${{ matrix.ROS_DISTRO }}-${{ github.job }}
7763

7864
steps:
79-
- name: Check for apt updates
80-
uses: addnab/docker-run-action@v3
81-
continue-on-error: true
82-
id: apt
83-
with:
84-
image: ${{ env.GH_IMAGE }}
85-
run: |
86-
apt-get update
87-
have_updates=$(apt-get --simulate upgrade | grep -q "^0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.$" && echo false || echo true)
88-
echo "::set-output name=no_cache::$have_updates"
8965
- name: Set up Docker Buildx
9066
uses: docker/setup-buildx-action@v1
91-
if: ${{ github.event_name == 'workflow_dispatch' || github.event_name != 'schedule' || steps.apt.outputs.no_cache }}
92-
- name: Login to Github Containter Registry
67+
- name: Login to Github Container Registry
9368
uses: docker/login-action@v1
9469
with:
9570
registry: ghcr.io
@@ -102,14 +77,11 @@ jobs:
10277
password: ${{ secrets.DOCKERHUB_TOKEN }}
10378
- name: Build and Push
10479
uses: docker/build-push-action@v2
105-
if: ${{ github.event_name == 'workflow_dispatch' || github.event_name != 'schedule' || steps.apt.outputs.no_cache }}
10680
with:
10781
file: .docker/${{ github.job }}/Dockerfile
10882
build-args: ROS_DISTRO=${{ matrix.ROS_DISTRO }}
10983
push: true
110-
no-cache: ${{ steps.apt.outputs.no_cache || github.event_name == 'workflow_dispatch' }}
111-
cache-from: type=registry,ref=${{ env.GH_IMAGE }}
112-
cache-to: type=inline
84+
no-cache: true
11385
tags: |
11486
${{ env.GH_IMAGE }}
11587
${{ env.DH_IMAGE }}
@@ -119,7 +91,7 @@ jobs:
11991
strategy:
12092
fail-fast: false
12193
matrix:
122-
ROS_DISTRO: [rolling, galactic]
94+
ROS_DISTRO: [rolling]
12395
runs-on: ubuntu-latest
12496
permissions:
12597
packages: write
@@ -129,20 +101,9 @@ jobs:
129101
DH_IMAGE: moveit/moveit2:${{ matrix.ROS_DISTRO }}-${{ github.job }}
130102

131103
steps:
132-
- name: Check for apt updates
133-
uses: addnab/docker-run-action@v3
134-
continue-on-error: true
135-
id: apt
136-
with:
137-
image: ${{ env.GH_IMAGE }}
138-
run: |
139-
apt-get update
140-
have_updates=$(apt-get --simulate upgrade | grep -q "^0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.$" && echo false || echo true)
141-
echo "::set-output name=no_cache::$have_updates"
142104
- name: Set up Docker Buildx
143105
uses: docker/setup-buildx-action@v1
144-
if: ${{ github.event_name == 'workflow_dispatch' || github.event_name != 'schedule' || steps.apt.outputs.no_cache }}
145-
- name: Login to Github Containter Registry
106+
- name: Login to Github Container Registry
146107
uses: docker/login-action@v1
147108
with:
148109
registry: ghcr.io
@@ -155,14 +116,11 @@ jobs:
155116
password: ${{ secrets.DOCKERHUB_TOKEN }}
156117
- name: Build and Push
157118
uses: docker/build-push-action@v2
158-
if: ${{ github.event_name == 'workflow_dispatch' || github.event_name != 'schedule' || steps.apt.outputs.no_cache }}
159119
with:
160120
file: .docker/${{ github.job }}/Dockerfile
161121
build-args: ROS_DISTRO=${{ matrix.ROS_DISTRO }}
162122
push: true
163-
no-cache: ${{ steps.apt.outputs.no_cache || github.event_name == 'workflow_dispatch' }}
164-
cache-from: type=registry,ref=${{ env.GH_IMAGE }}
165-
cache-to: type=inline
123+
no-cache: true
166124
tags: |
167125
${{ env.GH_IMAGE }}
168126
${{ env.DH_IMAGE }}
@@ -172,7 +130,7 @@ jobs:
172130
strategy:
173131
fail-fast: false
174132
matrix:
175-
ROS_DISTRO: [rolling, galactic]
133+
ROS_DISTRO: [rolling]
176134
runs-on: ubuntu-latest
177135
permissions:
178136
packages: write
@@ -185,7 +143,7 @@ jobs:
185143
- uses: actions/checkout@v2
186144
- name: Set up Docker Buildx
187145
uses: docker/setup-buildx-action@v1
188-
- name: Login to Github Containter Registry
146+
- name: Login to Github Container Registry
189147
uses: docker/login-action@v1
190148
with:
191149
registry: ghcr.io
@@ -205,8 +163,7 @@ jobs:
205163
file: .docker/${{ github.job }}/Dockerfile
206164
build-args: ROS_DISTRO=${{ matrix.ROS_DISTRO }}
207165
push: true
208-
cache-from: type=registry,ref=${{ env.GH_IMAGE }}
209-
cache-to: type=inline
166+
no-cache: true
210167
tags: |
211168
${{ env.GH_IMAGE }}
212169
${{ env.DH_IMAGE }}

.github/workflows/prerelease.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ jobs:
1111
strategy:
1212
fail-fast: false
1313
matrix:
14-
distro: [foxy, galactic, rolling]
14+
distro: [rolling]
1515

1616
env:
1717
ROS_DISTRO: ${{ matrix.distro }}

0 commit comments

Comments
 (0)