Closed mathias-luedtke closed 3 years ago
@InigoMoreno: Did you already have a chance to test this?
I got warned Using default ROS_REPO=testing
and was able to fix my issue using ROS_REPO=false
I got warned Using default ROS_REPO=testing
You should not see this in your use case..
@inigomartinez: Please test again with the debug commit as soon as I fixed the build errors ;)
My test cases pass and show the expected warnings:
Running the same as your test case but with ros:melodic
gives exit code 1:
rosrun industrial_ci run_ci DOCKER_IMAGE=ros:melodic\
AFTER_INIT="grep -r ros-testing /etc/apt && ici_exit 1 || ici_exit 2"
Running the same as your test case but with ros:melodic gives exit code 1:
I added a test case for this, but it returns 2. Did you test the right version? Without the patches in this PR, the result will be 1. (which is what I tried to fix)
rosrun industrial_ci run_ci
Normally I just run it directly to not depend on a ROS build.
industrial_ci/scripts/run_ci DOCKER_IMAGE=ros:melodic AFTER_INIT="grep -r ros-testing /etc/apt && ici_exit 1 || ici_exit 2"
I made sure I am on the correct branch, but I still get error code 1:
$ git remote get-url origin
https://github.com/ipa-mdl/industrial_ci
$ git status
On branch fix/docker-image-ros-repo
Your branch is up to date with 'origin/fix/docker-image-ros-repo'.
nothing to commit, working tree clean
$ industrial_ci/scripts/run_ci DOCKER_IMAGE=ros:melodic\
AFTER_INIT="grep -r ros-testing /etc/apt && ici_exit 1 || ici_exit 2" > /dev/null
FAIL
$ echo $?
1
Please check the comment I left in the review.
I made sure I am on the correct branch, but I still get error code 1:
Did you fetch the latest updates?
git fetch origin
Please check the comment I left in the review.
I can't see any.
Did you fetch the latest updates?
Yes
I can't see any
I'll just paste it here: When testing this with ros:melodic I get:
apt-cache policy
N: Unable to locate package ros-noetic-ros-core
Using default ROS_REPO=testing
Is it possible it is getting the $ROS_DISTRO from my current workspace (noetic) instead of the one in the DOCKER_IMAGE
(melodic)?
Is it possible it is getting the $ROS_DISTRO from my current workspace (noetic) instead of the one in the DOCKER_IMAGE (melodic)?
Yes, this is the case. (https://github.com/ros-industrial/industrial_ci/issues/277)
Yes, this is the case. (#277)
Okay, then I ran tests from a dind image and got it to work as I expected. LGTM!
I will clean this up and merge it later
I will clean this up and merge it later
Any update on this?
Any update on this?
I pushed the clean version, will merge when all tests have passed.
ROS_REPO
should not overwrite an existing ROS setup by default (fixes #744) IfROS_REPO
does no match the existing ROS setup, a warning will be raised.