You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Jun 25, 2020. It is now read-only.
Repository navigation
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
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.
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
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.
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.
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.
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
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.
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!)
@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
@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.
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.
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.
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.
Activity
tkruse commentedon Jan 24, 2019
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.
mjcarroll commentedon Jan 24, 2019
Mikael is no longer maintaining, I'll take a look.
mikaelarguedas commentedon Jan 24, 2019
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.gzworks fine on my machine so I doubt it's related to the bond package itselfwjwwood commentedon Jan 24, 2019
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.
zultron commentedon Jan 24, 2019
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
bondrelease only, whereas other releases in thebond_corerepo remain the same. See here:bond_corerelease has a version (tag name + release?) appended to the directory, same asbondcpp,bondpy,smclibreleases, same as a week ago:bondrelease does not append a version, changed since a week ago:catkinrelease:And looking at what I just pasted, I also feel curious that the creation dates on the two releases from the
bond_corerepo differ by almost a year (but still not recently enough to explain this problem), even though the versions are identical.tkruse commentedon Jan 24, 2019
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
Though github does not actually use git I believe.
If the equivalent of the
--prefixargument is controlled by github, then this might be a github bug.[-]GitHub tar file API seems to have changed[/-][+]GitHub release file root folder name structure changed for some ROS project releases[/+]tkruse commentedon Jan 24, 2019
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
zultron commentedon Jan 24, 2019
In total, 34 of the 263 GitHub releases entries in our
.rosinstallfile needed the-${TAG}-${REL}version suffix removed from theversion:, 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:
zultron commentedon Jan 24, 2019
Good find. That seems like something so clearly broken on GitHub's side that maybe it's time to bring this up with them.
machinekoder commentedon Jan 24, 2019
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.
tkruse commentedon Jan 24, 2019
@machinekoder Do you have a public link for your request?
machinekoder commentedon Jan 24, 2019
@tkruse Unfortunately not, I used the support request contact form.
zultron commentedon Jan 25, 2019
Today the list has changed. These tarballs have newly lost their version:
And these tarballs have gained them back:
machinekoder commentedon Jan 28, 2019
Interesting update: I'm now in contact with the GitHub support.
Btw. try to download the file from here: https://github.com/ros-gbp/bond_core-release/releases/tag/release%2Fmelodic%2Fbond%2F1.8.1-0
vs directly https://github.com/ros-gbp/bond_core-release/archive/release/kinetic/bond/1.8.1-0.tar.gz
and you will see the folder has a version suffix vs not.
26 remaining items
gavanderhoorn commentedon Feb 26, 2019
I was just curious as to whether anyone on this thread had received any additional info from GH support.
zultron commentedon Feb 26, 2019
I inquired again, following up on the previous reply from Stacey Burns (pasted above):
mysablehats commentedon Feb 27, 2019
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
gavanderhoorn commentedon Feb 27, 2019
@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.
gavanderhoorn commentedon Mar 4, 2019
Any updates @machinekoder / @zultron?
We're using
wstoolquite a bit and it seems things have "normalised" again, but it'd be nice if GH could confirm that in some way.machinekoder commentedon Mar 15, 2019
@gavanderhoorn Nothing confirmed yet.
zultron commentedon Mar 22, 2019
I'm working with a new
.rosinstallfile 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.gavanderhoorn commentedon Mar 22, 2019
Hm. The "most current release versions" bit is interesting perhaps.
But still no communication from GH support?
gavanderhoorn commentedon May 15, 2019
Has anyone here ran into any additional problems with GH tarballs?
oceanusxiv commentedon May 18, 2019
I have, the newest version of actionlib similarly has this issue
zultron commentedon Feb 19, 2020
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.
gavanderhoorn commentedon Feb 19, 2020
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.
jveitchmichaelis commentedon Feb 19, 2020
Sure, I'll try rebuilding one of my containers today.
dirk-thomas commentedon Jun 25, 2020
Closing since the repository is about to be archived: see #166.