-
-
Notifications
You must be signed in to change notification settings - Fork 2k
Checksum failing for faraday_middleware 0.11.0 and bundler 1.14.0.pre.x #5332
Comments
I don't think the is an issue with bundler -- it's just reporting that the servers checksum for the gem doesn't match the checksum of the downloaded gem file. |
Looks like the sum in the database is wrong?
|
Just an intermittent coincidence then? ... Hmmm, I just ran it about 7 times with 1.13.7 and 7 times with 1.14.0.pre.2 ... all 7 successful with 1.13 and all 7 failed with 1.14. I didn't know about any fetching differences in 1.14? |
In the CHANGELOG for 1.14.0.pre.1
|
Ah, turns out I was unaware of #4851 ... so ... this is a non-issue. It does make me wonder how many other gems might be out there that have this problem. I may take a swipe at installing a whole bunch of popular ones just in case. |
since that version was just pushed in the past few days, my guess might be a recent bug in rubygems.org |
I decided to write-up a script that would work from the rubygems data dump and use bundler/inline to install gems individually from the most downloaded onward. It's slow, but can handle a decent sample size to see if there are any other occurrences of this or not. Obvs this isn't widespread, enough downloads of the pre-releases of 1.14 have happened, but ... not difficult to test many other gems just in case. |
We can also run this in a rubygems console, fetching gems from S3 and comparing their checksums to what we have in the database. It worries me that there are any bad checksums, since we should have taken a sum and saved it when the gem was first created. |
Ah yes, server-side, just re-calc the checksum and compare to db value would run much faster. |
My script made it through about 700 of the most popular gems, then I re-ran for most recent ones, and it made it through 1,000 of those - only faraday_middleware being a problem. Fairly small sample sizes as percentages go, but it's something. Guess they should try re-releasing faraday_middleware or someone in RubyGems can try to shore up the checksum server-side? |
@chrismo I'd be more comfortable with them re-releasing, since that guarantees we aren't accidentally verifying the checksum of a gem that was somehow maliciously replaced! But if that's not an option for some reason let me know and we can try the prod console option. |
Hello guys, I released |
I've just released v0.11.0.1 Thanks |
I guess this information may belong on some sort of RubyGems bug, but we're seeing a similar checksum mismatch on the gem azure-core (I'm not the author, just a user):
The SHAs for the previous version, 0.1.5, do match. 0.1.5 was pushed on Sep 22, 2016 |
I think we might want to bring this over to https://github.com/rubygems/rubygems.org |
okay I made a thing ^^ |
- Problem with checksum: rubygems/bundler#5332
is this still a problem? |
I'm running into it. |
Closing as a rubygems.org issue, since there's nothing for us to do about this in bundler itself. |
I've tried this with 1.13.7, 1.14.0.pre.1 and 1.14.0.pre.2. Checksum is fine in 1.13, but shows a mismatch with 1.14
I've searched around for other checksum problems in bundler issues, but didn't hit anything that seemed a dupe. I need to get to a stopping point later today and I can continue digging into this.
The text was updated successfully, but these errors were encountered: