-
Notifications
You must be signed in to change notification settings - Fork 97
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
Set ROS_DISTRO for rosdoc2 to enable link to repository #1078
base: master
Are you sure you want to change the base?
Conversation
Thanks for the PR. The buildfarm configuration documentation says that I have a few independent questions, mostly directed at @nuclearsandwich and @tfoote:
|
I'm a little bit split on whether to embed it like this versus put it into the config. The config approach is more visible, but it will cause more need for maintenance of the config files. But we only really update those config files approximately once per distro so that maintenance overhead I think shouldn't be too high. And if we fill the values in now, every future one will copy and paste that as a reference. So I would bias towards enabling build_environment_variables and embedding ROS_DISTRO in via that. |
Thanks, done in #1079.
It looks like ROS_PYTHON_VERSION is already set in the build configs (though it wasn't used until now). With that feature working, the buildfarm configs are a lower-risk place to introduce new variables. If we find that solution to be inadequate in the future, we can revisit adding ROS_DISTRO implicitly (as is presented here). |
I'm also in favor (perhaps obviously since I just reviewed and approved #1079). |
I made the follow up to the config to fill in the environment here: ros2/ros_buildfarm_config#314 |
rosdoc2 added a feature to automatically generate a link to the package repository in ros-infrastructure/rosdoc2#161 but it relies on the environment variable ROS_DISTRO being available at runtime. This PR sets that for buildfarm runs to enable this feature.
This has been tested locally using generate_doc_script but not on a buildfarm run.