berkshelf / ridley

A reliable Chef API client with a clean syntax
Other
230 stars 84 forks source link

Withdraw 4.4.0 #330

Closed mfischer-zd closed 8 years ago

mfischer-zd commented 8 years ago

Ridley made a backward-incompatible change in 4.4.0, removing an API method. It should be withdrawn and replaced with Ridley 5.0. See https://github.com/berkshelf/berkshelf/issues/1495

reset commented 8 years ago

Move the conversation to here from https://github.com/berkshelf/berkshelf/issues/1495

/cc @jkeiser

mjuarez commented 8 years ago

Being bitten by this as well

lamont-granquist commented 8 years ago

do we just need to add method_missing handling to translate methods to hash lookups?

mfischer-zd commented 8 years ago

I recommend you withdraw this release first to help mitigate user impact. Then you can concentrate on a fix.

On Monday, January 11, 2016, Lamont Granquist notifications@github.com wrote:

do we just need to add method_missing handling to translate methods to hash lookups?

— Reply to this email directly or view it on GitHub https://github.com/berkshelf/ridley/issues/330#issuecomment-170771186.

ghost commented 8 years ago

Yup just got bitten by this. All of a sudden CI started failing and I thought I was going crazy.

Sliim commented 8 years ago

:+1:

b-dean commented 8 years ago

It might be a good idea to have some specs for Ridley::Chef::Configso the build will fail when its API is broken.

arieb commented 8 years ago

+1

erran-r7 commented 8 years ago

In the meantime pinning to ridley version v4.3.2 resolves issues related to not being able to call methods removed in #325. In my case Ridley::Chef::Config#chef_server_url started failing several CI builds for me.

err0 commented 8 years ago

This is bombing our chefspec CI tests as well. +1 for a rollback.

jkeiser commented 8 years ago

Working on it! Will get a 4.4.1 without the proxy stuff, and get proper tests in and remerge when it works. Sorry!

mfischer-zd commented 8 years ago

I appreciate that you're working on a 4.4.1 release @jkeiser, but in the interim, please remove 4.4.0 from the Rubygems servers so as not to further interrupt people's work.

err0 commented 8 years ago

can you yank 4.4.0 in the interim? gem yank ridley -v 4.4.0

jkeiser commented 8 years ago

This is fixed: https://github.com/berkshelf/ridley/pull/331

We're trying not to yank things, it causes angst, the quick revert and release is intended to have the same effect.

jkeiser commented 8 years ago

Do respond or create more bugs if you are still having issues though!

mfischer-zd commented 8 years ago

There is far less angst to your customers for yanking buggy Gems than dealing with surprising failures. By yanking them, you contain the damage window while you work on a fix.

erran-r7 commented 8 years ago

We're trying not to yank things, it causes angst — @jkeiser

:+1: Glad you decided not to.

There is far less angst to your customers for yanking buggy Gems than dealing with surprising failures. By yanking them, you contain the damage window while you work on a fix.

@mfischer-zd I disagree, CI in many of the above users cases caused their build to fail. Yanking could potentially require manual intervention to correct the build. Resolving this in the users gemfile/gemspec when the bad version existed was sufficient, in my opinion at least. Reverting and submitting a patch version that all of the above people would have pulled automatically resolves this issue for them and customers who would've pulled it later in the day.

mfischer-zd commented 8 years ago

@erran-r7 I think it depends on whether or not you're automatically running bundle update at every CI run. We're not, as there's nothing to be gained by doing so when performing CI with Chef cookbooks. Our bundles are locked and only modified when someone has cause to do so.

I imagine, or at least hope, that most users manage their cookbooks the same way.

jkeiser commented 8 years ago

@mfischer-zd I totally agree that we are responsible for clearing the broken release as quickly as possible, and we flubbed that (I wasn't checking mail last night and we didn't declare an incident). Sorry.

It's not necessary to yank, however, since a revert and re-release only costs us a few more minutes and gives the same effect. The issue with time here was how long it took me to get started.

As for corrective action, I will be adding a run of the berkshelf master tests to catch this and any related regressions from happening in the future. It will turn super red before we ever release.

mfischer-zd commented 8 years ago

@jkeiser in this case the damage window was small, so thank you for the quick action. However I would always yank first, fix later, in the case of severely buggy Gems. There's no question that yanking will inconvenience some people who have already put the buggy version in their bundles, but I still contend that it will inconvenience fewer people overall.

If the Gem is no longer available, that gives me a very strong hint that I need to revert. On the other hand, if things break with the new Gem, I then have to figure out the root cause, which could take significantly longer to determine -- your changes are mixed in with mine and I have to isolate the cause.

And as you know, Ruby error messages are not always clear. :)

kamaradclimber commented 8 years ago

thanks @jkeiser for your explaination.

jkeiser commented 8 years ago

FYI, I just re-released this with the relevant fixes in 4.4.2. Let me know if you see any issues; the berkshelf tests are working fine against it (really this time :). I'll watch the issue!

hartmantis commented 8 years ago

:heart:

mjuarez commented 8 years ago

Much thanks @jkeiser and all!