Skip to content
This repository was archived by the owner on Jun 25, 2020. It is now read-only.
This repository was archived by the owner on Jun 25, 2020. It is now read-only.

GitHub release file root folder name structure changed for some ROS project releases #147

Closed

Description

@machinekoder

We have a problem for a couple of days. Our rosdep step for building ROS on Debian Stretch fails since a couple of days. Further investigation revealed that this might be a bigger problem with the GitHub API.

In particular I'm talking about the error ERROR [vcstools] Tarball download unpack failed: u"bond_core-release-release-kinetic-bond-1.8.1-0 is not a subdirectory with contents in members [u'bond_core-release-release-kinetic-bond']"[/vcstools] and similar.

This resuts in the overall rosdep error: ERROR in config: Error processing 'bond_core/bond' : [bond_core/bond] Checkout of https://github.com/ros-gbp/bond_core-release/archive/release/kinetic/bond/1.8.1-0.tar.gz version bond_core-release-release-kinetic-bond-1.8.1-0 into /root/ros_catkin_ws/src/bond_core/bond failed.

Taking a look at https://github.com/ros-gbp/bond_core-release/archive/release/kinetic/bond/1.8.1-0.tar.gz we can see that the directory contained in the tar.gz file generated by GitHub contains a folder named bond_core-release-release-kinetic-bond but vcstools expects bond_core-release-release-kinetic-bond-1.8.1-0.

Since I can't go back in time, I can't verify that the directory naming scheme has changed, but looking at the source code it looks like it has: https://github.com/vcstools/vcstools/blob/master/src/vcstools/tar.py#L121

Can someone please confirm that this is the problem. If so, this is very urgent, as almost all rosdep builds will fail.

Interestingly, other downloads such as https://github.com/ros-gbp/vision_opencv-release/archive/release/kinetic/cv_bridge/1.12.7-0.tar.gz, for example, seem to contain the old naming scheme.

Activity

  1. tkruse commented on Jan 24, 2019

    @tkruse
    Contributor

    Those tars are created and uploaded by our release process, github has no control over the contents.
    You can see the list of releases e.g. here: https://github.com/ros-gbp/bond_core-release/tags?after=release%2Fkinetic%2Fsmclib%2F1.8.1-0

    It would seem to me that only kinetic-bond-1.8.1-0 is flawed in the way you describe. So I suggest closing this ticket here as invalid, and opening a ticket instead at https://github.com/ros/bond_core about this specific release, and whether it should be deleted / repaired.

  2. mjcarroll commented on Jan 24, 2019

    @mjcarroll

    Mikael is no longer maintaining, I'll take a look.

  3. mikaelarguedas commented on Jan 24, 2019

    @mikaelarguedas
    Contributor

    This looks very similar to #141 (comment) are you using python3 vcstools?

    It looks like the fix from #141 has not been released yet so you may have to build from source.

    wget https://github.com/ros-gbp/bond_core-release/archive/release/kinetic/bond/1.8.1-0.tar.gz works fine on my machine so I doubt it's related to the bond package itself

  4. wjwwood commented on Jan 24, 2019

    @wjwwood
    Contributor

    github has no control over the contents.

    This is a reasonable thing to assume, but actually IIRC GitHub dictates the folder name in the archive based on the branch and stuff. As GitHub generates that archive not us, it's just a zip of a specific branch.

  5. zultron commented on Jan 24, 2019

    @zultron

    I'm seeing the same thing. It appears that something changed recently in the bond_core and catkin releases. The release date for "release/kinetic/bond/1.8.1-0" in the @tkruse's link from #147 (comment) is Nov 3, 2017, long before this issue cropped up within the last week. However, the tarball file structure changed in the bond release only, whereas other releases in the bond_core repo remain the same. See here:

    • The bond_core release has a version (tag name + release?) appended to the directory, same as bondcpp, bondpy, smclib releases, same as a week ago:
    $ wget -q  https://github.com/ros-gbp/bond_core-release/archive/release/kinetic/bond_core/1.8.1-0.tar.gz -O - | tar tzvf - | head -1
    drwxrwxr-x root/root         0 2017-11-02 23:14 bond_core-release-release-kinetic-bond_core-1.8.1-0/
    
    • But inconsistently, the bond release does not append a version, changed since a week ago:
    $ wget https://github.com/ros-gbp/bond_core-release/archive/release/kinetic/bond/1.8.1-0.tar.gz -q -O - | tar tzvf - | head -1
    drwxrwxr-x root/root         0 2018-10-02 19:39 bond_core-release-release-kinetic-bond/
    
    • This also changed in the catkin release:
    $ wget https://github.com/ros-gbp/catkin-release/archive/release/kinetic/catkin/0.7.11-0.tar.gz -q -O - | tar tzvf - | head -1
    drwxrwxr-x root/root         0 2018-08-07 00:09 catkin-release-release-kinetic-catkin/
    

    And looking at what I just pasted, I also feel curious that the creation dates on the two releases from the bond_core repo differ by almost a year (but still not recently enough to explain this problem), even though the versions are identical.

  6. tkruse commented on Jan 24, 2019

    @tkruse
    Contributor

    Not so much documentation about the github process at https://developer.github.com/v3/repos/releases/#create-a-release. People claim github uses the equivalent of a standard git command:
    https://news.ycombinator.com/item?id=11494997

    git archive -o project-0.5.tar.gz --prefix project-0.5/ v0.5 
    

    Though github does not actually use git I believe.
    If the equivalent of the --prefix argument is controlled by github, then this might be a github bug.

  7. changed the title [-]GitHub tar file API seems to have changed[/-] [+]GitHub release file root folder name structure changed for some ROS project releases[/+] on Jan 24, 2019
  8. tkruse commented on Jan 24, 2019

    @tkruse
    Contributor

    Note that the date on the github releases page seems to be the tag was created, not necessarily the date the release tarball was created.

    Another weird thing. on the page I linked, https://github.com/ros-gbp/bond_core-release/tags?after=release%2Fkinetic%2Fsmclib%2F1.8.1-0
    I can click on the links like this:
    https://github.com/ros-gbp/bond_core-release/releases/tag/release%2Fkinetic%2Fbond_core%2F1.8.1-0

    but for the broken release, though it has a tar and zip, if I click the link "release/kinetic/bond/1.8.1-0 ", I get 404
    https://github.com/ros-gbp/bond_core-release/releases/tag/release%2Fkinetic%2Fbond%2F1.8.1-0

  9. zultron commented on Jan 24, 2019

    @zultron

    In total, 34 of the 263 GitHub releases entries in our .rosinstall file needed the -${TAG}-${REL} version suffix removed from the version:, so this is more widely spread than the initial report indicates. At least we have a workaround until we get to the bottom of this.

    Here's the list of sources we had to change:

    https://github.com/ros-gbp/bond_core-release/archive/release/kinetic/bond/1.8.1-0.tar.gz
    https://github.com/ros-gbp/catkin-release/archive/release/kinetic/catkin/0.7.11-0.tar.gz
    https://github.com/ros-gbp/class_loader-release/archive/release/kinetic/class_loader/0.3.9-0.tar.gz
    https://github.com/ros-gbp/geometry2-release/archive/release/kinetic/tf2/0.5.17-0.tar.gz
    https://github.com/ros-gbp/geometry2-release/archive/release/kinetic/tf2_eigen/0.5.17-0.tar.gz
    https://github.com/ros-gbp/opencv3-release/archive/release/kinetic/opencv3/3.3.1-0.tar.gz
    https://github.com/smits/orocos-kdl-release/archive/release/kinetic/orocos_kdl/1.3.1-0.tar.gz
    https://github.com/ros-gbp/ros-release/archive/release/kinetic/mk/1.13.6-0.tar.gz
    https://github.com/ros-gbp/ros-release/archive/release/kinetic/ros/1.13.6-0.tar.gz
    https://github.com/ros-gbp/ros-release/archive/release/kinetic/rosbash/1.13.6-0.tar.gz
    https://github.com/ros-gbp/ros-release/archive/release/kinetic/rosboost_cfg/1.13.6-0.tar.gz
    https://github.com/ros-gbp/ros-release/archive/release/kinetic/rosbuild/1.14.3-0.tar.gz
    https://github.com/ros-gbp/ros-release/archive/release/kinetic/rosclean/1.14.3-0.tar.gz
    https://github.com/ros-gbp/ros-release/archive/release/kinetic/roslang/1.14.3-0.tar.gz
    https://github.com/ros-gbp/ros-release/archive/release/kinetic/roslib/1.14.3-0.tar.gz
    https://github.com/ros-gbp/ros_comm-release/archive/release/kinetic/ros_comm/1.12.12-0.tar.gz
    https://github.com/ros-gbp/ros_comm-release/archive/release/kinetic/rosbag/1.12.13-0.tar.gz
    https://github.com/ros-gbp/ros_comm-release/archive/release/kinetic/rosbag_storage/1.12.13-0.tar.gz
    https://github.com/ros-gbp/ros_comm-release/archive/release/kinetic/rosconsole/1.12.13-0.tar.gz
    https://github.com/ros-gbp/ros_comm-release/archive/release/kinetic/roscpp/1.12.13-0.tar.gz
    https://github.com/ros-gbp/ros_comm-release/archive/release/kinetic/rosgraph/1.12.13-0.tar.gz
    https://github.com/ros-gbp/ros_comm-release/archive/release/kinetic/roslz4/1.12.13-0.tar.gz
    https://github.com/ros-gbp/ros_comm-release/archive/release/kinetic/rosmaster/1.12.13-0.tar.gz
    https://github.com/ros-gbp/ros_comm-release/archive/release/kinetic/rosout/1.12.13-0.tar.gz
    https://github.com/ros-gbp/ros_comm-release/archive/release/kinetic/rosparam/1.12.13-0.tar.gz
    https://github.com/ros-gbp/ros_comm-release/archive/release/kinetic/rospy/1.12.13-0.tar.gz
    https://github.com/ros-gbp/ros_comm-release/archive/release/kinetic/rosservice/1.12.12-0.tar.gz
    https://github.com/ros-gbp/ros_comm-release/archive/release/kinetic/xmlrpcpp/1.12.13-0.tar.gz
    https://github.com/ros-gbp/ros_comm_msgs-release/archive/release/kinetic/rosgraph_msgs/1.11.2-0.tar.gz
    https://github.com/ros-gbp/roscpp_core-release/archive/release/kinetic/cpp_common/0.6.9-0.tar.gz
    https://github.com/ros-gbp/roscpp_core-release/archive/release/kinetic/roscpp_core/0.6.7-0.tar.gz
    https://github.com/ros-gbp/roscpp_core-release/archive/release/kinetic/roscpp_serialization/0.6.9-0.tar.gz
    https://github.com/ros-gbp/roscpp_core-release/archive/release/kinetic/roscpp_traits/0.6.9-0.tar.gz
    https://github.com/ros-gbp/roscpp_core-release/archive/release/kinetic/rostime/0.6.9-0.tar.gz
    https://github.com/ros-gbp/roslint-release/archive/release/kinetic/roslint/0.11.0-0.tar.gz
    
  10. zultron commented on Jan 24, 2019

    @zultron

    Another weird thing. on the page I linked, https://github.com/ros-gbp/bond_core-release/tags?after=release%2Fkinetic%2Fsmclib%2F1.8.1-0
    I can click on the links like this:
    https://github.com/ros-gbp/bond_core-release/releases/tag/release%2Fkinetic%2Fbond_core%2F1.8.1-0

    but for the broken release, though it has a tar and zip, if I click the link "release/kinetic/bond/1.8.1-0 ", I get 404
    https://github.com/ros-gbp/bond_core-release/releases/tag/release%2Fkinetic%2Fbond%2F1.8.1-0

    Good find. That seems like something so clearly broken on GitHub's side that maybe it's time to bring this up with them.

  11. machinekoder commented on Jan 24, 2019

    @machinekoder
    Author

    I have sent a support request to GitHub. Until we have an answer (or fix) from GitHub, we can use the workaround proposed by @zultron.

  12. tkruse commented on Jan 24, 2019

    @tkruse
    Contributor

    @machinekoder Do you have a public link for your request?

  13. machinekoder commented on Jan 24, 2019

    @machinekoder
    Author

    @tkruse Unfortunately not, I used the support request contact form.

  14. zultron commented on Jan 25, 2019

    @zultron

    Today the list has changed. These tarballs have newly lost their version:

    https://github.com/ros-gbp/genmsg-release/archive/release/kinetic/genmsg/0.5.10-0.tar.gz
    https://github.com/ros-gbp/ros-release/archive/release/kinetic/rosunit/1.14.3-0.tar.gz
    

    And these tarballs have gained them back:

    https://github.com/ros-gbp/ros_comm-release/archive/release/kinetic/ros_comm/1.12.12-0.tar.gz
    https://github.com/ros-gbp/ros_comm-release/archive/release/kinetic/rosbag_storage/1.12.13-0.tar.gz
    https://github.com/ros-gbp/ros_comm-release/archive/release/kinetic/roscpp/1.12.13-0.tar.gz
    https://github.com/ros-gbp/ros_comm-release/archive/release/kinetic/roslz4/1.12.13-0.tar.gz
    https://github.com/ros-gbp/ros_comm-release/archive/release/kinetic/rosout/1.12.13-0.tar.gz
    https://github.com/ros-gbp/ros_comm-release/archive/release/kinetic/rospy/1.12.13-0.tar.gz
    https://github.com/ros-gbp/ros_comm-release/archive/release/kinetic/xmlrpcpp/1.12.13-0.tar.gz
    
  15. machinekoder commented on Jan 28, 2019

    @machinekoder
    Author
  16. 26 remaining items

  17. gavanderhoorn commented on Feb 26, 2019

    @gavanderhoorn

    I was just curious as to whether anyone on this thread had received any additional info from GH support.

  18. zultron commented on Feb 26, 2019

    @zultron

    I inquired again, following up on the previous reply from Stacey Burns (pasted above):

    Hi there John,

    I'm afraid there's no update from engineering yet, but I've let them know you were after a follow up and passed on your example of where people are having to work around this.

    When we hear back from them we'll let you know!

    Sorry for any frustration this has caused!

    Cheers,

    Matt R 😸

    Hi Stacey,

    Any update? We've seen a lot more of this since your last email over two weeks ago. At this point people have been scripting to work around this broken behavior, so while people aren't desperate, there are still new cases, such as this. (Plus it's a shame this has caused so many people so much time!)

    John

  19. mysablehats commented on Feb 27, 2019

    @mysablehats

    @machinekoder 's gist workaround worked for me (kinetic-ros_comm-wet build). Just needed to apt install python-sh and, in the script, change the name of the files it reads and outputs (in main at the end) and run the python script after running rosinstall_generator and before wstool init

    Oh, I thought the fix.py script worked, but it doesn't. Message generation seems botched; also I can't publish from cv_bridge

    I posted a question on ros.answers (see https://answers.ros.org/question/316362/sensor_msgsimage-generates-float-instead-of-int-with-python3/), since I have a very convoluted setup, but I believe this is the culprit

  20. gavanderhoorn commented on Feb 27, 2019

    @gavanderhoorn

    @mysablehats: I would be very much surprised if the scripts proffered here influence the issues you mention. They only change the way tarball extraction is checked, but do not change any of the files in the archives themselves.

  21. gavanderhoorn commented on Mar 4, 2019

    @gavanderhoorn

    Any updates @machinekoder / @zultron?

    We're using wstool quite a bit and it seems things have "normalised" again, but it'd be nice if GH could confirm that in some way.

  22. machinekoder commented on Mar 15, 2019

    @machinekoder
    Author

    @gavanderhoorn Nothing confirmed yet.

  23. zultron commented on Mar 22, 2019

    @zultron

    I'm working with a new .rosinstall file right now, so while I can't compare with previous results, 7 of 152 tar repos are broken. These are the most current release versions from rosdistro.

  24. gavanderhoorn commented on Mar 22, 2019

    @gavanderhoorn

    Hm. The "most current release versions" bit is interesting perhaps.

    But still no communication from GH support?

  25. gavanderhoorn commented on May 15, 2019

    @gavanderhoorn

    Has anyone here ran into any additional problems with GH tarballs?

  26. oceanusxiv commented on May 18, 2019

    @oceanusxiv

    I have, the newest version of actionlib similarly has this issue

  27. zultron commented on Feb 19, 2020

    @zultron

    On a whim, I just tried disabling @machinekoder's workaround, happily running without attention for the last year or so, and it seems that GitHub might have resolved this issue on their side at some point. Yay!

    Perhaps we could get confirmation the problem is resolved from some of the folks who also saw this, maybe @jveitchmichaelis or @eric1221bday, and close out this issue.

  28. gavanderhoorn commented on Feb 19, 2020

    @gavanderhoorn

    I've never used the workaround from @machinekoder, neither has any of the official infrastructure and we haven't run into the problem for at least 3 quarters of a year.

    That would lead me to conclude it's been indeed fixed for quite some time now.

  29. jveitchmichaelis commented on Feb 19, 2020

    @jveitchmichaelis

    Sure, I'll try rebuilding one of my containers today.

  30. dirk-thomas commented on Jun 25, 2020

    @dirk-thomas
    Contributor

    Closing since the repository is about to be archived: see #166.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions