Skip to content

Commit

Permalink
Migrate ROSDEP_SOURCES_VERSION to ROSDISTRO_INDEX_VERSION
Browse files Browse the repository at this point in the history
  • Loading branch information
mathias-luedtke committed Mar 29, 2024
1 parent 3124797 commit cf1038b
Show file tree
Hide file tree
Showing 6 changed files with 14 additions and 9 deletions.
4 changes: 2 additions & 2 deletions doc/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -214,11 +214,11 @@ Note that some of these currently tied only to a single option, but we still lea
* **ROS_REPOSITORY_KEY** (default: not set): Location of ROS' binary repository key; either as URL, file path or fingerprint.
* **ROS_REPOSITORY_PATH**: Location of ROS' binary repositories where depended packages get installed from (typically both standard repo (``http://packages.ros.org/ros/ubuntu``) and `"Shadow-Fixed" repository <http://wiki.ros.org/ShadowRepository>`__ (``http://packages.ros.org/ros-shadow-fixed/ubuntu``)). Since version 0.3.4, ``ROS_REPO`` is recommended, and ``ROS_REPOSITORY_PATH`` is for more intermediate usage only (e.g. to specify your own binary repository (non-standard / in house)). Backward compatibility is preserved.
* **ROSDEP_SKIP_KEYS** (default: not set): space-separated list of keys that should get skipped by ``rosdep install``.
* **ROSDEP_SOURCES_VERSION** (default: not set): If set, patch the files in /etc/ros/rosdep/sources.list.d/*.list to use this version instead of master.
* **ROSDISTRO_INDEX_VERSION** (default: not set): If set, patch the files in /etc/ros/rosdep/sources.list.d/*.list to use this version instead of master and set ROSDISTRO_INDEX_URL accordingly
* **ROSINSTALL_FILENAME** (*deprecated*, default: ``.travis.rosinstall``): Only used when ``UPSTREAM_WORKSPACE`` is set to ``file``. See ``UPSTREAM_WORKSPACE`` description.
* **PYLINT_ARGS** (default: not set): pass command line arguments to ``pylint`` command (e.g. ``--output-format=parseable --errors-only``) - can e.g. be used to ``ignore_modules``
* **PYLINT_CHECK** (default: false): If ``true``, run ``pylint`` checks
* **PYLINT_EXCLUDE** (default: not set): Pattern that can be used to exclude files via the ``-not -path`` filter.
* **PYLINT_EXCLUDE** (default: not set): Pattern that can be used to exclude files via the ``-not -path`` filter.
* **TARGET_CMAKE_ARGS** (default: not set): Addtional CMake arguments for target `workspace <#workspace-management>`__.
* **TARGET_WORKSPACE** (default: ``$TARGET_REPO_PATH``): Definition of sources for target `workspace <#workspace-management>`__.
* **UNDERLAY** (default: not set): Path to an install space (instead of ``/opt/ros/$ROS_DISTRO``) to be used as an underlay of the workspaces being set up be ICI, e.g. a workspace provided by a custom docker image
Expand Down
1 change: 1 addition & 0 deletions industrial_ci/src/deprecated.sh
Original file line number Diff line number Diff line change
Expand Up @@ -95,3 +95,4 @@ ici_mark_deprecated DOCKER_COMMIT_CREDENTIALS "Credentials will be copied, but n

ici_rename_deprecated HASHKEY_SKS ROS_REPOSITORY_KEY
ici_rename_deprecated APTKEY_STORE_HTTPS ROS_REPOSITORY_KEY
ici_rename_deprecated ROSDEP_SOURCES_VERSION ROSDISTRO_INDEX_VERSION
2 changes: 1 addition & 1 deletion industrial_ci/src/env.sh
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ export ROS_DISTRO=${ROS_DISTRO:-}
export ROS_REPOSITORY_PATH=${ROS_REPOSITORY_PATH:-}
export ROS_REPO=${ROS_REPO:-}
export ROS_REPOSITORY_KEY=${ROS_REPOSITORY_KEY:-"$ICI_SRC_PATH/keys/ros.asc"}
export ROSDISTRO_INDEX_VERSION=${ROSDISTRO_INDEX_VERSION:-}

export DEBUG_BASH=${DEBUG_BASH:-false}
export TEST=${TEST:-}
Expand Down Expand Up @@ -81,7 +82,6 @@ case "${OS_CODE_NAME-}" in
esac

export ROSDEP_SKIP_KEYS=${ROSDEP_SKIP_KEYS:-}
export ROSDEP_SOURCES_VERSION=${ROSDEP_SOURCES_VERSION:-}
export TARGET_CMAKE_ARGS=${TARGET_CMAKE_ARGS:-}

export UPSTREAM_CMAKE_ARGS=${UPSTREAM_CMAKE_ARGS:-}
Expand Down
2 changes: 1 addition & 1 deletion industrial_ci/src/isolation/docker.env
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ PYLINT_CHECK
PYLINT_EXCLUDE
PYTHONUNBUFFERED
ROSDEP_SKIP_KEYS
ROSDEP_SOURCES_VERSION
ROSDISTRO_INDEX_VERSION
ROSINSTALL_FILENAME
ROS_DISTRO
ROS_PYTHON_VERSION
Expand Down
2 changes: 1 addition & 1 deletion industrial_ci/src/ros.sh
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ function _ros2_defaults {

function _ros_is_eol {
export ROS_VERSION_EOL=true
export ROSDEP_SOURCES_VERSION=${ROSDEP_SOURCES_VERSION:-$1}
export ROSDISTRO_INDEX_VERSION=${ROSDISTRO_INDEX_VERSION:-$1}
}

function _set_ros_defaults {
Expand Down
12 changes: 8 additions & 4 deletions industrial_ci/src/workspace.sh
Original file line number Diff line number Diff line change
Expand Up @@ -329,14 +329,18 @@ function ici_setup_rosdep {
if ! [ -d /etc/ros/rosdep/sources.list.d ]; then
ici_cmd ici_quiet ici_asroot rosdep init
fi
if [ -n "$ROSDEP_SOURCES_VERSION" ]; then
ici_cmd ici_quiet ici_asroot sed -E -i "s;(https://raw.githubusercontent.com/ros/rosdistro/)master;\1$ROSDEP_SOURCES_VERSION;g" /etc/ros/rosdep/sources.list.d/*.list
fi

update_opts=()
if [ -z "${ROSDISTRO_INDEX_URL:-}" ]; then
update_opts+=(--rosdistro "$ROS_DISTRO")
fi

if [ -n "$ROSDISTRO_INDEX_VERSION" ]; then
if [ -z "${ROSDISTRO_INDEX_URL:-}" ]; then
export ROSDISTRO_INDEX_URL=https://raw.githubusercontent.com/ros/rosdistro/$ROSDISTRO_INDEX_VERSION/index-v4.yaml
fi
ici_cmd ici_quiet ici_asroot sed -E -i "s;(https://raw.githubusercontent.com/ros/rosdistro/)master;\1$ROSDISTRO_INDEX_VERSION;g" /etc/ros/rosdep/sources.list.d/*.list
fi

if [ "$ROS_VERSION_EOL" = true ]; then
update_opts+=(--include-eol-distros)
fi
Expand Down

0 comments on commit cf1038b

Please sign in to comment.