ROS Resources: Documentation | Support | Discussion Forum | Service Status | Q&A answers.ros.org

Tagging ros/rosdistro.git

Would it be possible to tag the commit in https://github.com/ros/rosdistro from which new ROS distro releases are made? This way, we can eventually have superflore use read from it instead of ROS_DISTRO-cache.yaml and thereby have the versions of the ROS packages in meta-ros exactly match those listed in the release announcements (eg, Dashing Update 1: Patch release and package sync for ROS 2 Dashing Diademata).

It’s possible to do, but it is another step in the process of doing a release. It’s also somewhat removed from where the actual packages are, which is why I sort of think ROS_DISTRO-cache.yaml is a better place to get the data from. What’s the actual problem you’ve run into with using ROS_DISTRO-cache.yaml?

@tfoote @nuclearsandwich any thoughts here?

Edit accidentally posted before finished.
Edit finished my post.

I’ve wanted to do this for a while and the main thing that has prevented me from doing so is that it’s not on my release checklist so by the time a sync comes around it slips my mind. Second to that is the fact that I’ve never formally brought it up, just casually. So thanks for taking the time to post.

I think it would be reasonably good to tag the sync state of the ros/rosdistro repo like we have been doing for the ros2/ros2 repository containing ros2.repos: release-$ROSDISTRO-${YYYY}${MM}${DD}.

This would be the responsibility of the ROS release manager colloquially “ROSBoss” for a given release and would occur just before starting the “sync to main” job. Some care may need to be paid to make sure that if concurrent changes are being made to different rosdistros that the release state doesn’t become muddled but no guarantees should be made about the state of other rosdistros tagged in a release for one specific one.

Another minor advantage to tagging ros/rosdistro is that this also provides a reasonable snapshot of the rosdep db at the time of the release. This snapshot is not reliable for reproducing a rosdistro as bloom releases will be run on earlier iterations of the db and can even be run with non-canonical rosdep sources. But it does provide downstream packagers with a reasonable set of waypoints for forensic investigation of rosdep if a superflore run fails due to rosdep resolvers.

We don’t have separate release copies of the rosdistro cache either. So the moment after a sync is performed, if new releases are then merged into the rosdistro repo the rosdistro caches are potentially also divergent from the rosdistro as just synced.

The rosdistro cache also includes package.xml data for packages in the rosdistro whereas the distribution.yaml does not. Does superflore make use of those cached package.xmls or does it always pull from release repositories?

We certainly could set this up. It’s extra information, but I’d like to understand a little bit more about your use case to know if I think this is what I’d recommend.

In our current models the majority of users are using the debian packages, and as such the syncs end up being effectively synchronized batch releases to the community. However the mechanics of it are actually mostly artifacts of the debian build pipeline. The other thing is that the syncs don’t actually represent the state of the rosdistro at the time of the sync. They represent the aggregate results of the buildfarm’s attempted builds. For example if Package Foo has been updated but the updated package fails to build, the sync will have the old package Foo, until such time as a package Bar that Foo depends on invalidates it, then Foo will dissapear. The current release announcements actually come from the debian repository state and not from the rosdistro and reflect the above sort of artifacts, and consequently don’t achieve your goal of having the same state.

Overall the reason that we have the syncs is that we don’t have a good way to test things prior to a release. We have the prerelease tool, which does catch a lot. But with newer source based builds coming online such as Gentoo and OpenEmbedded they could relatively easily consider running a test build in the pull request for a new release. We’ve also wanted to turn on more comprehensive automated prerelease tests in the rosdistro PRs, but we haven’t had the time or resources to do that and we’ve relied on the maintainers to run the appropriate prerelease tests.

I think it’s a great idea to work towards having consistency across the different platforms, but I’d rather see us work toward having the rosdistro become more authoritative and deemphasize the results of the syncs. If we can improve our QA process for releases the syncs could even be deprecated.

1 Like

Sorry for the delay in responding – I’ve been on vacation.

Does superflore make use of those cached package.xmls …?

Yes.

The other thing is that the syncs don’t actually represent the state of the rosdistro at the time of the sync.

By “syncs”, you mean what generates ROS_DISTRO-cache.yaml, correct? Is there some commit of rosdistro that exactly matches what’s in a release announcement, even if it’s not HEAD at the time that it’s made?

The current release announcements actually come from the debian repository state …

Could a ROS_DISTRO-cache.yaml be generated from the debian repository state at the time of the release announcement and preserved? If so, then we could point superflore at it and thereby generate recipes for the exactly the same package versions.