Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix setup.sh/env.sh filename #1000

Merged
merged 1 commit into from
Mar 18, 2019

Conversation

at-wat
Copy link
Contributor

@at-wat at-wat commented Mar 18, 2019

Filenames setup.sh and env.sh get .sh after #982.
This seems to cause test failures of pure cmake packages on the buildfarm.

Following builds on the buildfarm looks affected by this bug.

http://build.ros.org/view/Mdev/job/Mdev__yp-spur__ubuntu_bionic_amd64/18/console

02:29:23 Invoking '. /opt/ros/melodic/setup.sh && . /tmp/ws/devel_isolated/setup.sh && PYTHONIOENCODING=utf_8 PYTHONUNBUFFERED=1 catkin_make_isolated --force-cmake --cmake-args -DBUILD_TESTING=1 -DCATKIN_ENABLE_TESTING=1 -DCATKIN_SKIP_TESTING=0 -DCATKIN_TEST_RESULTS_DIR=/tmp/ws/test_results --catkin-make-args run_tests' in '/tmp/ws'
02:29:23 /bin/sh: 9: .: Can't open /tmp/ws/devel_isolated/ypspur/setup.sh

http://build.ros.org/view/Mdev/job/Mdev__rc_genicam_api__ubuntu_bionic_amd64/17/console

09:42:52 Invoking '. /opt/ros/melodic/setup.sh && . /tmp/ws/devel_isolated/setup.sh && PYTHONIOENCODING=utf_8 PYTHONUNBUFFERED=1 catkin_make_isolated --force-cmake --cmake-args -DBUILD_TESTING=1 -DCATKIN_ENABLE_TESTING=1 -DCATKIN_SKIP_TESTING=0 -DCATKIN_TEST_RESULTS_DIR=/tmp/ws/test_results --catkin-make-args run_tests' in '/tmp/ws'
09:42:52 /bin/sh: 4: .: Can't open /tmp/ws/devel_isolated/rc_genicam_api/setup.sh

Expression evaluation order of python:

>>> 'a' + 'b' if True else 'c'
'ab'
>>> 'a' + 'b' if False else 'c'
'c'

Filenames setup.sh and env.sh get .sh after ros#982.
This seems to cause test failures of pure cmake packages on the buildfarm.

Following builds on the buildfarm looks affected by this bug.

http://build.ros.org/view/Mdev/job/Mdev__yp-spur__ubuntu_bionic_amd64/18/console
```
02:29:23 Invoking '. /opt/ros/melodic/setup.sh && . /tmp/ws/devel_isolated/setup.sh && PYTHONIOENCODING=utf_8 PYTHONUNBUFFERED=1 catkin_make_isolated --force-cmake --cmake-args -DBUILD_TESTING=1 -DCATKIN_ENABLE_TESTING=1 -DCATKIN_SKIP_TESTING=0 -DCATKIN_TEST_RESULTS_DIR=/tmp/ws/test_results --catkin-make-args run_tests' in '/tmp/ws'
02:29:23 /bin/sh: 9: .: Can't open /tmp/ws/devel_isolated/ypspur/setup.sh
```
http://build.ros.org/view/Mdev/job/Mdev__rc_genicam_api__ubuntu_bionic_amd64/17/console
```
09:42:52 Invoking '. /opt/ros/melodic/setup.sh && . /tmp/ws/devel_isolated/setup.sh && PYTHONIOENCODING=utf_8 PYTHONUNBUFFERED=1 catkin_make_isolated --force-cmake --cmake-args -DBUILD_TESTING=1 -DCATKIN_ENABLE_TESTING=1 -DCATKIN_SKIP_TESTING=0 -DCATKIN_TEST_RESULTS_DIR=/tmp/ws/test_results --catkin-make-args run_tests' in '/tmp/ws'
09:42:52 /bin/sh: 4: .: Can't open /tmp/ws/devel_isolated/rc_genicam_api/setup.sh
```

---
Expression evaluation order of python:
```python
>>> 'a' + 'b' if True else 'c'
'ab'
>>> 'a' + 'b' if False else 'c'
'c'
```
@kejxu
Copy link
Contributor

kejxu commented Mar 18, 2019

Thanks for the fix, my apologies for the regression!

@dirk-thomas
Copy link
Member

Thank you for fixing the regression. I will make a new patch release right away.

@dirk-thomas dirk-thomas merged commit 46425a0 into ros:kinetic-devel Mar 18, 2019
@AAlon
Copy link

AAlon commented Mar 18, 2019

@dirk-thomas When can we expect 0.7.17 to be available via apt?
Thanks!

@dirk-thomas
Copy link
Member

When can we expect 0.7.17 to be available via apt?

Yes, atm it is only in the building repos. As soon as the rebuild of downstream packages has finished it will become available in the testing repo (~ within a day). After that it will arrive in main as soon as a new Melodic sync is manually triggered which is also announced on Discourse (I would guess in a couple of weeks): http://repositories.ros.org/status_page/ros_melodic_default.html?q=catkin

@AAlon
Copy link

AAlon commented Mar 18, 2019

When can we expect 0.7.17 to be available via apt?

Yes, atm it is only in the building repos. As soon as the rebuild of downstream packages has finished it will become available in the testing repo (~ within a day). After that it will arrive in main as soon as a new Melodic sync is manually triggered which is also announced on Discourse (I would guess in a couple of weeks): http://repositories.ros.org/status_page/ros_melodic_default.html?q=catkin

Would it be possible to perform a one-off sync in order to get this fix out? This is blocking prerelease testing (& releasing) Melodic packages. Not an issue on Kinetic since ros-kinetic-catkin is still @ 0.7.14. If it's too much trouble we'll have to look into injecting an updated catkin into the docker during the build, but that would only unblock prerelease testing - actual releasing would still be blocked.

@dirk-thomas
Copy link
Member

This is blocking prerelease testing for Melodic packages (Not an issue on Kinetic since ros-kinetic-catkin is still @ 0.7.14...).

As mentioned 0.7.17 will be in testing within the next 24h - there is no way to speed this process up since downstream packages have to be rebuild for that. The Melodic version in main is still 0.7.14. None of the in between versions have been merged into main.

Based on your comment I don't see what the problem is. Please provide more context / details.

@AAlon
Copy link

AAlon commented Mar 18, 2019

Oh, my confusion, missed the fact that the 0.7.16 version was pulled from testing. Sounds good then, thanks.

@dirk-thomas
Copy link
Member

missed the fact that the 0.7.16 version was pulled from testing

It wasn't "pulled" from testing - it got replaced with the newly build 0.7.17 (the ROS apt repos only store the latest version of a package).

@at-wat at-wat deleted the fix-setup-env-sh-filename branch March 19, 2019 00:22
@dirk-thomas
Copy link
Member

dirk-thomas commented Mar 19, 2019

With the new catkin version in the testing repo the latest devel builds passed again:

@kejxu
Copy link
Contributor

kejxu commented Mar 19, 2019

With the new catkin version in the testing repo the latest devel builds passed again:

http://build.ros.org/view/Mdev/job/Mdev__yp-spur__ubuntu_bionic_amd64/19/
http://build.ros.org/view/Mdev/job/Mdev__rc_genicam_api__ubuntu_bionic_amd64/18/

Thanks for the fix @at-wat, and thanks so much for organizing and getting everything working again @dirk-thomas!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants