-
Notifications
You must be signed in to change notification settings - Fork 2.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
zypper multipackage patch #4231
Conversation
@gsaslis can you look this over? it uses the new use_multipackage_api declaration, and it cleans up some of the tortured logic in load_current_resource. i think its much more readable than where you were heading. about the only question i've got (apart from if it even works or not, because i don't have a suse box easily at hand right now) is what that exception in load_current_resource is all about, because it looked like well intentioned but incorrect code:
|
tested this on an opensuse virt and it seems to work fine. |
c54f6fd
to
19d1a99
Compare
@lamont-granquist yes - that use_multipackage_api certainly makes things much simpler and much more readable (!!) 👍 looks good to me Noobie question, (but I am one with Chef, so it's ok) : how would I go about testing this chef branch with my own VM / box ? is there a link / doc somewhere? (I was expecting to find something on https://github.com/chef/chef/blob/master/CONTRIBUTING.md , but it doesn't seem to be mentioned there... ) |
check out: http://lists.opscode.com/sympa/arc/chef/2015-10/msg00010.html probably you want something like: % gem install appbundle-updater or % gem install appbundle-updater depending on if you're updating chef inside omnibus-chef or omnibus-chefdk... |
oh except obviously this isn't merged to 'master' so use 'lcg/zypper-multipackage' instead... |
BTW, If you can flame-test this really quickly we might be able to get this into 12.6.0, otherwise it'll get delayed probably until next year... |
(looks like this'll slip to january) |
@lamont-granquist: yeah, sorry dude, won't have much time in the week to look at this (looks like you're not the only ones pushing for releases before xmas - and there's a day job as well ;) ) |
okay, that's cool... we're trying to get a monthly tempo on releases, so hopefully it won't slip too much... |
19d1a99
to
157ebe2
Compare
@gsaslis do you have any time to look at this? |
I will this weekend, yes! (if it can wait ; ) ) Yorgos Saslis On 8 January 2016 at 01:10, Lamont Granquist notifications@github.com
|
totally, it looks like i need to rebase it anyway... |
157ebe2
to
27bc694
Compare
@@ -154,14 +145,14 @@ def shell_out_expectation!(command, options=nil) | |||
"zypper --non-interactive --no-gpg-checks install "+ | |||
"--auto-agree-with-licenses emacs=1.0" | |||
) | |||
provider.upgrade_package("emacs", "1.0") | |||
provider.upgrade_package(["emacs"], ["1.0"]) | |||
end | |||
it "should run zypper upgrade without gpg checks" do |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm not sure what
"should run zypper upgrade without gpg checks"
really offers over "should run zypper update without gpg checks"
(https://github.com/chef/chef/pull/4231/files#diff-b638b95483df994a2982f5a0cfade9d3R132) - perhaps the latter should be removed altogether?
(unless one of the two was meant to test the dist-upgrade, dup Perform a distribution upgrade.
feature of zypper)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
on tests with the Chef::Config variable set to false, the other tests the default.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ok I see, then perhaps just changing the test's title would help?
@lamont-granquist with regards to your question about that exception being thrown: Hope that helps! |
Yeah, I think I answered those bullet points for myself. I just changed it to shell_out_with_timeout! so that the exception (which really truly is exceptional in this case and indicates zypper has gone insane) will just blow up and it'll get reported to the user. An exception is the correct behavior, but there was nothing useful gained from decorating the exception from shell out with a Chef::Exceptions::Package error. |
@chef/client-core i think this is ready for review |
@chef/client-core still needing review... |
👍 merge once rebased |
6018c67
to
aa6663d
Compare
zypper multipackage patch
replaces #4102