Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
87 commits
Select commit Hold shift + click to select a range
a5402ee
[testing sprint] final test coverage and debug logging in planner/con…
SteveMacenski Aug 7, 2020
909c6f2
[testing sprint] remove dead code not used in 10 years from navfn (#1…
SteveMacenski Aug 8, 2020
12a6037
Consolidate colcon test commands
ruffsl Aug 11, 2020
1b1d7c4
Disable RCUTILS_CONSOLE_STDOUT_LINE_BUFFERED
ruffsl Aug 11, 2020
6786c6d
Reduce parallelism to 1
ruffsl Aug 11, 2020
c729e03
Use ramdisk for CCACHE_DIR
ruffsl Aug 11, 2020
d9e32a0
Use new matix stanza for nightly rmw tests
ruffsl Aug 11, 2020
baba3ad
Add job references
ruffsl Aug 11, 2020
94f5e06
Add environment references
ruffsl Aug 11, 2020
4d4ccb7
Split command and step references
ruffsl Aug 11, 2020
7be6271
Rename dummy dictionaries
ruffsl Aug 11, 2020
4c9b43f
Merge pull request #1934 from ruffsl/ci-retest-2
ruffsl Aug 11, 2020
045224b
Syncing Foxy updates to master branch (#1935)
SteveMacenski Aug 11, 2020
53a8771
Update default branch for CI
ruffsl Jul 15, 2020
b040800
Update default branch for Dockerfiles
ruffsl Jul 15, 2020
0cdf4f4
Update default branch for READMEs
ruffsl Jul 15, 2020
606ca7a
waypoint_follower node has _rclcpp_node as well as base node (#1940)
SteveMacenski Aug 13, 2020
b40c3a6
Update Dockerfiles and CI (#1942)
ruffsl Aug 13, 2020
c9441b1
Add #include <vector> for vector<> (#1946)
ruffsl Aug 14, 2020
d616e49
Add 'angles' dependency to nav2_costmap_2d package.xml (#1947)
naiveHobo Aug 17, 2020
ed8ddaf
transform goal to costmap frame (#1949)
mikeferguson Aug 17, 2020
f07c1ee
[WIP] removing rviz plugins from test coverage since its not a produc…
SteveMacenski Aug 18, 2020
a1e0720
Trigger Dockerhub from cron job rather than Autobuild (#1956)
ruffsl Aug 18, 2020
69bed34
adding clearable layers to defaults (#1957)
SteveMacenski Aug 19, 2020
2e0697c
Add mutex lock into inflation layer to avoid thread issue in updating…
daisukes Aug 19, 2020
b6b17e2
Fix FollowPath path_updated issue (#1938) (#1943)
daisukes Aug 20, 2020
d191e0a
Fix being unable to change StandardTrajectoryGenerator parameter vthe…
sloretz Aug 21, 2020
10598d5
update version to 0.4.3
SteveMacenski Aug 24, 2020
f237751
Fix memory leak (#1900)
naiveHobo Aug 25, 2020
98e994f
Adding bond to map_saver (#1968)
SteveMacenski Aug 26, 2020
ef8cfad
fix invalid memory access (#1969)
mikeferguson Aug 31, 2020
0a2dfbe
initialize variables in inflation layer (#1970)
mikeferguson Aug 31, 2020
26b975b
Update Bond URL / branch from merged PR for lifecycle support (#1972)
SteveMacenski Sep 2, 2020
a359532
Fix zero waypoints crash (#1978)
wilcobonestroo Sep 3, 2020
91d0a83
Add IsBatteryLow condition node (#1974)
naiveHobo Sep 5, 2020
d2c53de
Add footprint tests (#1982)
wilcobonestroo Sep 11, 2020
79963a4
Fixed typo in Dockerfile (#1985)
krystofl Sep 14, 2020
b8e9fba
Initialize inflate_cone_ variable. (#1988)
wilcobonestroo Sep 15, 2020
b181a39
Increase sleep time to 1 second from 50ms (#1984)
shivaang12 Sep 23, 2020
182d3b3
Update Dockerfiles (#1995)
ruffsl Sep 23, 2020
369e62d
Fix nav2_waypoint_follower bugs due to upstream ROS2 changes (#2000)
naiveHobo Sep 28, 2020
970f5b5
Fix flaky nav2_behavior_tree tests (#2001)
naiveHobo Sep 29, 2020
4c8334f
Costmap Filters (#1882)
AlexeyMerzlyakov Sep 29, 2020
506384f
Add timeouts to all spin_until_future_complete calls (#1998)
naiveHobo Sep 29, 2020
a30816f
Simplify by removing return statements (#2005)
mbuijs Oct 1, 2020
9baf467
Fix reset logic in nav2_behavior_tree control nodes (#2004)
naiveHobo Oct 2, 2020
64871a7
Fix finding Codecov config for CI (#2007)
ruffsl Oct 2, 2020
63aa0ad
Controllers should not be influenced by time jumps or slew (#2012)
mbuijs Oct 5, 2020
dcc1d4d
Fix max path cycles for case where map has larger Y dimension than X …
justinIRBT Oct 6, 2020
8f971aa
remove dead code from costmap_2d (#2020)
SteveMacenski Oct 6, 2020
13c878b
Include underlay source folder in rosdep path (#2025)
ruffsl Oct 7, 2020
fd117e8
Patch codecov (#2023)
ruffsl Oct 7, 2020
0c848d7
Add dwb tests (#2022)
wilcobonestroo Oct 8, 2020
eff208e
Successor PR for #1993, Introduces A plugin interface to define behav…
jediofgever Oct 8, 2020
d3fc28a
Smac/Hybrid-A* planner (#2021)
SteveMacenski Oct 9, 2020
f37ae14
Add test for tf_help. (#2029)
wilcobonestroo Oct 9, 2020
e49cb5a
Remove code for DWA to DWB migration (#2027)
wilcobonestroo Oct 10, 2020
f6f9c28
commenting out or removing AMCL dead code (#2028)
SteveMacenski Oct 10, 2020
be38a7a
Add kinematic parameters test (#2031)
wilcobonestroo Oct 12, 2020
a71a5f2
[WIP fixing CI] changing gazebo base to my fork for testing (#2034)
SteveMacenski Oct 12, 2020
3ec1454
Adding additional SmacPlanner tests (#2036)
SteveMacenski Oct 12, 2020
a136239
adding additional constants and smoothers tests (#2038)
SteveMacenski Oct 13, 2020
7bed20d
Added test for nav2_dwb_controller / dwb_plugins / LimitedAccelGenera…
wilcobonestroo Oct 13, 2020
e5b01c5
Reverting to ros-simulation from stevemacenski after patch merged (#2…
SteveMacenski Oct 13, 2020
3393c0a
adding waypoint follower readme information
SteveMacenski Oct 13, 2020
e1e1be4
Run-time system test for keepout_filter (#2030)
AlexeyMerzlyakov Oct 14, 2020
bf22f34
Fix flaky tests (#2047)
naiveHobo Oct 26, 2020
cd33640
Input at waypoint task executor plugin (#2049)
SteveMacenski Oct 28, 2020
626ce47
nav2_way_point_follower; introduce photo at waypoint arrivals plugin …
jediofgever Oct 30, 2020
053d0c8
[WIP] Fix CI build issues (#2076)
SteveMacenski Nov 5, 2020
a005947
Patch for PhotoAtWaypoint plugin (#2067)
SteveMacenski Nov 6, 2020
4c4d38f
Fix for double free issue in map server testcases (#2078)
AlexeyMerzlyakov Nov 6, 2020
73afaf3
Support in keepout filter for mask and costmap published in different…
AlexeyMerzlyakov Nov 6, 2020
4dfa91c
Loop fix (#2068)
Nov 7, 2020
884d144
Swap startup and timeout check on lifecycle manager tests (#2080)
SteveMacenski Nov 9, 2020
8ba925c
Fix SmacPlanner memory leaks and costmap downsampler test (#2050)
naiveHobo Nov 9, 2020
13e01d2
Fix Map Saver and testing: (#2084)
AlexeyMerzlyakov Nov 10, 2020
fc85c26
Rebranding! New Navigation2 logo! (#2087)
SteveMacenski Nov 11, 2020
850295c
Fix build on macOS (10.x / 11.x) (#2083)
3wnbr1 Nov 13, 2020
f86e44c
Current_ costmap2D updates & fixing recovery-straight-path issues (#2…
SteveMacenski Nov 13, 2020
e6bc3cd
Added nav2_ prefix to smac_planner Signed-off-by: Tony Najjar <tony.n…
tonynajjar Nov 16, 2020
2d31a8d
Add prefer forward critic test (#2097)
wilcobonestroo Nov 20, 2020
f6bbc5c
Add obstacle footprint dwb critic test (#2099)
wilcobonestroo Nov 23, 2020
0285c5f
Keepout Filter cleanup (#2101)
AlexeyMerzlyakov Nov 24, 2020
d02f0dd
adding unit testing for alignment util dwb critics (#2103)
SteveMacenski Nov 24, 2020
11b25a5
Fix README format (#2107)
youtalk Nov 26, 2020
e77560d
Removing eloquent from build status table since its EOL (#2114)
SteveMacenski Dec 3, 2020
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
169 changes: 115 additions & 54 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
@@ -1,17 +1,6 @@
version: 2.1
orbs:
codecov: codecov/codecov@1.0.5

references:
common_environment: &common_environment
ROS_WS: "/opt/ros_ws"
UNDERLAY_WS: "/opt/underlay_ws"
OVERLAY_WS: "/opt/overlay_ws"
CCACHE_LOGFILE: "/tmp/ccache.log"
CCACHE_MAXSIZE: "200M"
MAKEFLAGS: "-j 1 -l 2"
RCUTILS_CONSOLE_STDOUT_LINE_BUFFERED: "1"
RETEST_UNTIL_PASS: "2"
_commands:
common_commands: &common_commands
restore_from_cache:
description: "Restore From Cache"
Expand Down Expand Up @@ -71,9 +60,22 @@ references:
sha256sum $PWD/checksum.txt >> checksum.txt
apt-get update
rosdep update

# workarround for OMPL and rosdep
# https://github.com/ompl/ompl/issues/753
# Prevent searching $ROS_WS/install given it's too big for rosdep

if [ "$ROS_WS" == "<< parameters.underlay >>" ]; then
underlay_ws=""
else
underlay_ws=<< parameters.underlay >>/src
fi
echo underlay_ws = $underlay_ws

dependencies=$(
rosdep install -q -y \
--from-paths src \
$underlay_ws \
--ignore-src \
--skip-keys " \
slam_toolbox \
Expand Down Expand Up @@ -112,16 +114,17 @@ references:
name: Build Workspace | << parameters.workspace >>
working_directory: << parameters.workspace >>
command: |
if [ -d install ] && [ ! -f build_failed ]
BUILD_UNFINISHED=$(colcon list --packages-skip-build-finished)
BUILD_FAILED=$(colcon list --packages-select-build-failed)
if [ -n "$BUILD_UNFINISHED" ] || [ -n "$BUILD_FAILED" ]
then
echo "Skipping Build"
else
. << parameters.underlay >>/install/setup.sh
rm -rf build install log
colcon build \
--symlink-install \
--mixin << parameters.mixins >>
rm -f build_failed
else
echo "Skipping Build"
fi
- save_to_cache:
key: << parameters.key >>
Expand Down Expand Up @@ -153,11 +156,8 @@ references:
--show-counts | \
xargs)
set -o xtrace
colcon test \
--packages-select ${TEST_PACKAGES}
colcon test \
--packages-select ${TEST_PACKAGES} \
--packages-select-test-failures \
--retest-until-pass ${RETEST_UNTIL_PASS} \
--ctest-args --test-regex "test_.*"
colcon test-result \
Expand All @@ -180,6 +180,19 @@ references:
path: << parameters.workspace >>/test_results
- store_artifacts:
path: << parameters.workspace >>/test_results
trigger_dockerhub_url:
description: "Trigger Dockerhub URL"
parameters:
data:
type: string
steps:
- run:
command: |
curl -H "Content-Type: application/json" \
--data '<< parameters.data >>' \
-X POST ${DOCKERHUB_TRIGGER_URL}

_steps:
pre_checkout: &pre_checkout
run:
name: Pre Checkout
Expand All @@ -193,6 +206,7 @@ references:
(echo ros_entrypoint && cat) >> checksum.txt
sha256sum $PWD/checksum.txt >> checksum.txt
rm -rf $OVERLAY_WS/*
mv ~/.ccache /mnt/ramdisk/.ccache
on_checkout: &on_checkout
checkout:
path: src/navigation2
Expand All @@ -201,16 +215,16 @@ references:
name: Post Checkout
command: |
if ! cmp \
$OVERLAY_WS/src/navigation2/tools/ros2_dependencies.repos \
$UNDERLAY_WS/ros2_dependencies.repos >/dev/null 2>&1
$OVERLAY_WS/src/navigation2/tools/underlay.repos \
$UNDERLAY_WS/underlay.repos >/dev/null 2>&1
then
echo "Cleaning Underlay"
rm -rf $UNDERLAY_WS/*
cp $OVERLAY_WS/src/navigation2/tools/ros2_dependencies.repos \
$UNDERLAY_WS/ros2_dependencies.repos
cp $OVERLAY_WS/src/navigation2/tools/underlay.repos \
$UNDERLAY_WS/underlay.repos
mkdir -p $UNDERLAY_WS/src
vcs import $UNDERLAY_WS/src \
< $UNDERLAY_WS/ros2_dependencies.repos
< $UNDERLAY_WS/underlay.repos
fi
install_underlay_dependencies: &install_underlay_dependencies
install_dependencies:
Expand Down Expand Up @@ -259,7 +273,7 @@ references:
save_to_cache:
key: ccache
workspace: /opt/underlay_ws
path: ~/.ccache
path: /mnt/ramdisk/.ccache
when: always
test_overlay_workspace: &test_overlay_workspace
test_workspace:
Expand All @@ -271,10 +285,25 @@ references:
command: src/navigation2/tools/code_coverage_report.bash ci
when: always
upload_overlay_coverage: &upload_overlay_coverage
codecov/upload:
file: lcov/project_coverage.info
flags: project
run:
name: Upload Code Coverage
working_directory: /opt/overlay_ws
command: |
curl -s https://codecov.io/bash | bash -s -- \
-f "lcov/project_coverage.info" \
-R "src/navigation2" \
-t "${CODECOV_TOKEN}" \
-n "${CIRCLE_BUILD_NUM}" \
-F "project" \
-Z || echo 'Codecov upload failed'
when: always
trigger_dockerhub_build: &trigger_dockerhub_build
trigger_dockerhub_url:
data: |
{
"source_type": "Branch",
"source_name": "main"
}

commands:
<<: *common_commands
Expand Down Expand Up @@ -317,11 +346,28 @@ commands:
steps:
- *collect_overlay_coverage
- *upload_overlay_coverage
trigger_dockerhub:
description: "Trigger DockerHub"
steps:
- *trigger_dockerhub_build

_environments:
common_environment: &common_environment
ROS_WS: "/opt/ros_ws"
UNDERLAY_WS: "/opt/underlay_ws"
OVERLAY_WS: "/opt/overlay_ws"
CCACHE_DIR: "/mnt/ramdisk/.ccache"
CCACHE_LOGFILE: "/tmp/ccache.log"
CCACHE_MAXSIZE: "200M"
MAKEFLAGS: "-j 1 -l 2"
RCUTILS_CONSOLE_STDOUT_LINE_BUFFERED: "0"
RETEST_UNTIL_PASS: "2"
DEBIAN_FRONTEND: "noninteractive"

executors:
debug_exec:
docker:
- image: rosplanning/navigation2:master.debug
- image: rosplanning/navigation2:main.debug
working_directory: /opt/overlay_ws
environment:
<<: *common_environment
Expand All @@ -330,13 +376,26 @@ executors:
UNDERLAY_MIXINS: "release ccache"
release_exec:
docker:
- image: rosplanning/navigation2:master.release
- image: rosplanning/navigation2:main.release
working_directory: /opt/overlay_ws
environment:
<<: *common_environment
CACHE_NONCE: "Release"
OVERLAY_MIXINS: "release ccache"
UNDERLAY_MIXINS: "release ccache"
python_exec:
docker:
- image: circleci/python

_jobs:
job_test: &job_test
parameters:
rmw:
default: "rmw_fastrtps_cpp"
type: string
parallelism: 1
environment:
RMW_IMPLEMENTATION: << parameters.rmw >>

jobs:
debug_build: &debug_build
Expand All @@ -349,30 +408,22 @@ jobs:
executor: release_exec
<<: *debug_build
debug_test:
<<: *job_test
executor: debug_exec
parallelism: 1
steps:
- restore_build
- test_build
- report_coverage
release_test: &release_test
release_test:
<<: *job_test
executor: release_exec
parallelism: 1
steps:
- restore_build
- test_build
test_rmw_connext_cpp:
<<: *release_test
environment:
RMW_IMPLEMENTATION: "rmw_connext_cpp"
test_rmw_cyclonedds_cpp:
<<: *release_test
environment:
RMW_IMPLEMENTATION: "rmw_cyclonedds_cpp"
test_rmw_fastrtps_cpp:
<<: *release_test
environment:
RMW_IMPLEMENTATION: "rmw_fastrtps_cpp"
rebuild_dockerhub:
executor: python_exec
steps:
- trigger_dockerhub

workflows:
version: 2
Expand All @@ -393,19 +444,29 @@ workflows:
requires:
- debug_build
- release_build
# - test_rmw_connext_cpp:
# requires:
# - release_build
- test_rmw_cyclonedds_cpp:
requires:
- release_build
- test_rmw_fastrtps_cpp:
- release_test:
requires:
- release_build
matrix:
parameters:
rmw:
# - rmw_connext_cpp
- rmw_cyclonedds_cpp
- rmw_fastrtps_cpp
triggers:
- schedule:
cron: "0 13 * * *"
filters:
branches:
only:
- main
dockerhub:
jobs:
- rebuild_dockerhub
triggers:
- schedule:
cron: "0 0 * * *"
cron: "0 7 * * *"
filters:
branches:
only:
- master
- main
12 changes: 0 additions & 12 deletions .dockerhub/debug/dummy.Dockerfile

This file was deleted.

2 changes: 1 addition & 1 deletion .dockerhub/debug/hooks/build
Original file line number Diff line number Diff line change
Expand Up @@ -12,4 +12,4 @@ docker build \
--build-arg FAIL_ON_BUILD_FAILURE \
--build-arg UNDERLAY_MIXINS \
--build-arg OVERLAY_MIXINS \
--file ./Dockerfile ../../.
--file ../../Dockerfile ../../.
1 change: 0 additions & 1 deletion .dockerhub/devel/Dockerfile

This file was deleted.

11 changes: 0 additions & 11 deletions .dockerhub/devel/hooks/build

This file was deleted.

30 changes: 14 additions & 16 deletions tools/release.Dockerfile → .dockerhub/distro.Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -6,14 +6,14 @@
#
# Example build command:
# export DOCKER_BUILDKIT=1
# export FROM_IMAGE="ros:eloquent"
# export FROM_IMAGE="ros:foxy"
# export OVERLAY_MIXINS="release ccache"
# docker build -t nav2:release_branch \
# docker build -t nav2:foxy \
# --build-arg FROM_IMAGE \
# --build-arg OVERLAY_MIXINS \
# -f release_branch.Dockerfile ./
# -f distro.Dockerfile ../

ARG FROM_IMAGE=ros:eloquent
ARG FROM_IMAGE=ros:foxy
ARG OVERLAY_WS=/opt/overlay_ws

# multi-stage for caching
Expand Down Expand Up @@ -43,6 +43,7 @@ RUN mkdir -p /tmp/opt && \

# multi-stage for building
FROM $FROM_IMAGE AS builder
ARG DEBIAN_FRONTEND=noninteractive

# edit apt for caching
RUN cp /etc/apt/apt.conf.d/docker-clean /etc/apt/ && \
Expand Down Expand Up @@ -88,15 +89,12 @@ RUN sed --in-place \
's|^source .*|source "$OVERLAY_WS/install/setup.bash"|' \
/ros_entrypoint.sh

# ARG RUN_TESTS
# ARG FAIL_ON_TEST_FAILURE
# RUN if [ -z "$RUN_TESTS" ]; then \
# colcon test \
# --mixin $OVERLAY_MIXINS \
# --ctest-args --test-regex "test_.*"; \
# if [ -z "$FAIL_ON_TEST_FAILURE" ]; then \
# colcon test-result; \
# else \
# colcon test-result || true; \
# fi \
# fi
# test overlay build
ARG RUN_TESTS
ARG FAIL_ON_TEST_FAILURE=True
RUN if [ -n "$RUN_TESTS" ]; then \
. install/setup.sh && \
colcon test && \
colcon test-result \
|| ([ -z "$FAIL_ON_TEST_FAILURE" ] || exit 1) \
fi
12 changes: 0 additions & 12 deletions .dockerhub/release/dummy.Dockerfile

This file was deleted.

Loading