Re: [Puppet-dev] [PATCH/puppet 1/1] Fix #5610: Prevent unnecessary RAL lookups

2011-03-20 Thread Jesse A Wolfe
> > > Is there a specific reason why uniqueness_key should be a SORTED list of > keyattributes? If we do not sort them they appear in the array in the > same order as the params were defined in the type definition (so the > order is still determined) [By type definition I mean the ruby source, > no

Re: [Puppet-dev] [PATCH/puppet 1/1] Fixed #2645 - Added support for creating system users

2011-03-09 Thread Jesse A Wolfe
We're squashing the following changes into this commit to 1) fix a failing spec 2) add some more behavior-driven tests into the specs Otherwise, +1 diff --git a/spec/unit/provider/user/user_role_add_spec.rb b/spec/unit/provider/user/user_role_add_spec.rb index 9cf6492..f739423 100644 --- a/spec/u

Re: [Puppet-dev] Proposal: add universal assertions on logs to puppet spec tests.

2011-03-04 Thread Jesse A Wolfe
> What I don't understand is where my logic has gone wrong and why Daniel's > proposal is preferred. > The logic is fine, but: 1) We've got some learned skittishness on relying on mocha for this sort of thing 2) If your problem is that you're over-catching exceptions, raising an exception when you

Re: [Puppet-dev] [PATCH/puppet 1/1] (#5935) Allow functions to accept negated values

2011-02-18 Thread Jesse A Wolfe
> Sure, but Puppet doesn't actually have numbers - it's just that some of its > strings happen to consist entirely of digits. > Suddenly this whole conversation makes much more sense. ... but some of the Type code suddenly makes much less sense. > > On Feb 17, 2011, a

Re: [Puppet-dev] [PATCH/puppet 1/1] (#5935) Allow functions to accept negated values

2011-02-17 Thread Jesse A Wolfe
Coincidentally, I found this in the JSON spec: "Numbers are not quoted. It would be insane to require quotes around numbers." - http://www.json.org/fatfree.html On Thu, Feb 17, 2011 at 3:23 PM, Luke Kanies wrote: > On Feb 17, 2011, at 3:22 PM, Paul Berry wrote: > > On Thu, Feb 17, 2011 at 3:17 P

Re: [Puppet-dev] Collections and Realizing Resources

2011-02-14 Thread Jesse A Wolfe
> >> Proposal here is that Package <| |> would realize, but Package <| |> { } >> wouldn't. >> > > And - while I'm going to try not to derail this conversation - I'd like whatever syntax we come up with to be reasonable to extend to searching other authorities (storeconfigs, the "catalog service", m

Re: [Puppet-dev] Collections and Realizing Resources

2011-02-14 Thread Jesse A Wolfe
> > > Proposal here is that Package <| |> would realize, but Package <| |> { } > wouldn't. > What about passing a collection to a function? foo( <| search=whatever |> {} ) seems like penalizing a common case. > Could we add the ability to query whether a given resource has >> been realized or n

Re: [Puppet-dev] [PATCH/puppet 1/1] (#6018) Nick F's --help text for puppet inspect.

2011-02-06 Thread Jesse A Wolfe
Everything in "lib/puppet/util/command_line" should be gone in Statler (I've already committed a patch to `next` that moves it.) The rest of the dev team convinced me that it was too big of a change to shoehorn into the 2.6.x series. I'm happy to see the rdoc/usage dependency go away in Statler, th

Re: [Puppet-dev] [PATCH/puppet 1/1] Fix #5566 none, mtime, and ctime checksum types can write file contents

2010-12-16 Thread Jesse A Wolfe
> What's the behavior with this patch when checksum=none and specifying a > source or content? How does the system compare the current file to the > desired file? > It overwrites the file every time. That might not be the most desirable behavior, but it's more correct than *truncating* the file e

Re: [Puppet-dev] [PATCH/puppet 2/2] Fix #2927 Symbolic file modes

2010-10-27 Thread Jesse A Wolfe
> > Um, gack. You could do it with replication instead of shifts with >> something like: >> >> rights = ((old_mode & 0777 & who_masks[what_letter]) * 011) >> 9 >> value = rights & 0777 & who_masks[who_letter] >> >> > (oops, hit send by mistake) Gack! That seems overly clever. Maybe som

Re: [Puppet-dev] [PATCH/puppet 2/2] Fix #2927 Symbolic file modes

2010-10-27 Thread Jesse A Wolfe
> Um, gack. You could do it with replication instead of shifts with > something like: > > rights = ((old_mode & 0777 & who_masks[what_letter]) * 011) >> 9 > value = rights & 0777 & who_masks[who_letter] > > > > rights = ((old_mode & who_masks[what_letter]) * 011) >> 9 >

Re: [Puppet-dev] [PATCH/puppet 1/2] Fix #1757 Change file mode representation to octal

2010-10-26 Thread Jesse A Wolfe
As I recall, the old code was doing backflips to make sure that Integer( x ) always got a string with a leading zero, and I bet I just got too absorbed into that codepath to remember that there was a better way. On Oct 26, 2010 6:05 PM, "Markus Roberts" wrote: -- You received this message becaus

Re: [Puppet-dev] [PATCH/puppet 1/1] Fix for #5055 -- adding to_sym to Puppet::Node::Environment

2010-10-20 Thread Jesse A Wolfe
+1 On Wed, Oct 20, 2010 at 11:38 AM, Markus Roberts wrote: > The currious part is that this wasn't noticed before since it appears to > block > server-first migration to 2.6.x and doesn’t appear to be the consequence of > a > recent (2.6.3) change (unless, as is quite possible, I’m missing > som

Re: [Puppet-dev] [PATCH/puppet 1/1] Fix for #5022 -- Escaped newlines should be elided

2010-10-20 Thread Jesse A Wolfe
+1 On Wed, Oct 20, 2010 at 10:28 AM, Markus Roberts wrote: > > > Did this code change? It looks exactly the same to me. > > > Yes, it did. I have no idea why the changes didn't come through in the > email (I probably goofed something up when I did "rake mail_patches" but > offhand I can't say wh

Re: [Puppet-dev] [PATCH/puppet 1/1] Fix for #5022 -- Escaped newlines should be elided

2010-10-18 Thread Jesse A Wolfe
>"foo/ >bar" > > It took me a minute to figure out what you were talking about, since the slash in your commit message should really be a backslash > +%Q{"string with an escaped '\\\n'"} => > [[:STRING,"string with an escaped ''"]], > Can we get something

Re: [Puppet-dev] [PATCH/puppet 1/1] (#4534) Class inheritance with parameterized classes is no longer ignored

2010-10-18 Thread Jesse A Wolfe
+1 On Mon, Oct 18, 2010 at 1:29 PM, Paul Berry wrote: > On Tue, Oct 12, 2010 at 3:21 PM, Paul Berry wrote: > >> On Tue, Oct 12, 2010 at 12:46 PM, Jesse A Wolfe wrote: >> >>> # Make an instance of our resource type. This is only possible >>>> # for

Re: [Puppet-dev] [PATCH/puppet 1/1] Fix for #4279 -- mount detection on HP-UX

2010-10-15 Thread Jesse A Wolfe
+1 On Fri, Oct 15, 2010 at 12:44 PM, Markus Roberts wrote: > This is based on the discussion on ticket, simplified slightly and with > test > adjustment. > > Signed-off-by: Markus Roberts > --- > lib/puppet/provider/mount.rb |2 +- > spec/unit/provider/mount_spec.rb |9 - >

Re: [Puppet-dev] [PATCH/puppet 1/1] Fix for #3984 -- SELinux warns about changes it doesn't actually make

2010-10-12 Thread Jesse A Wolfe
+1 On Oct 7, 2010 5:12 PM, "Markus Roberts" wrote: > Volumes that don't suport SELinux should be considered in_sync so they don't > generate spurious change notice. > > Patch from Darrell Fuhriman > > Signed-off-by: Markus Roberts > --- > lib/puppet/type/file/selcontext.rb | 8 ++-- > 1 files

Re: [Puppet-dev] [PATCH/puppet 1/1] Make --mkusers work on OS X, we now find unused uid/gids if unspecified like other platforms.

2010-10-12 Thread Jesse A Wolfe
+1. I don't love the looking-for-id section, but I can't think of another way to do it. On Mon, Oct 11, 2010 at 3:58 PM, Nigel Kersten wrote: > > Signed-off-by: Nigel Kersten > --- > .../provider/nameservice/directoryservice.rb | 34 > +++- > 1 files changed, 33 inserti

Re: [Puppet-dev] [PATCH/puppet 1/1] Minimal fix for #4975 -- only call chage when managing password age rules

2010-10-12 Thread Jesse A Wolfe
+1. I had some style quibbles but I've talked myself out of them. On Mon, Oct 11, 2010 at 9:28 PM, Markus Roberts wrote: > This is intended to be a minimal fix, with tests, to prevent chage from > running > unless needed. > > Signed-off-by: Markus Roberts > --- > lib/puppet/provider/nameservic

Re: [Puppet-dev] Re: Questions about variable scope

2010-10-12 Thread Jesse A Wolfe
> > Hmm, the number of people chiming in on this topic is making me wonder > whether we are barking up the wrong tree with lexical scoping. If people > don't need for variables and resource defaults defined in a class to take > effect in contained classes, then there's no sense in our going to ext

Re: [Puppet-dev] Re: Questions about variable scope

2010-10-12 Thread Jesse A Wolfe
> Well, inheriting doesn't work with parameterized classes at all right now, > because of bug 4534 :) > > After #4534, I believe we'll be in the state that you'll be able to do this: class parametrized($param) inherits nonparametrized { } but the reverse is still not well defined: class nonpara

Re: [Puppet-dev] [PATCH/puppet 1/1] (#4534) Class inheritance with parameterized classes is no longer ignored

2010-10-12 Thread Jesse A Wolfe
> +if resource.resource_type.is_a? Puppet::Resource::Type > + resource.resource_type.instantiate_resource(scope, resource) > +else > + scope.compiler.add_resource(scope, resource) > +end > I don't like this one. Can we use duck typing here instead of testi

Re: [Puppet-dev] Re: Questions about variable scope

2010-10-12 Thread Jesse A Wolfe
Nigel: > construct as I've never been clear on the implications and just keep > all classes in their own files. > > RI: > > you'd kind of want to think that variables in A should be available in B by > looking at the code but that's just not the case and writing out these > classes > long hand ma

Re: [Puppet-dev] [PATCH/puppet 1/1] Fix for #4963 -- Use correct commands for password expiry on solaris

2010-10-12 Thread Jesse A Wolfe
+1 On Mon, Oct 11, 2010 at 9:42 PM, Markus Roberts wrote: > This fixes the command / option issues of #4963 as suggested on the ticket; > the > setting-expiry when not needed aspects are deferred to #4975. > > Signed-off-by: Markus Roberts > --- > lib/puppet/provider/user/user_role_add.rb

Re: [Puppet-dev] Re: Questions about variable scope

2010-10-08 Thread Jesse A Wolfe
> > Single inheritance is already confusing enough and it's used primarily for > resource overrides and not scoping. > > What I heard above is: people need resource defaults from multiple classes. We could call the first one "inheritance" and the subsequent ones "mixins", the way ruby does, but I t

Re: [Puppet-dev] [PATCH/puppet 1/1] Fixed #4919 - added parenths to fix error message:

2010-10-05 Thread Jesse A Wolfe
+1 On Fri, Oct 1, 2010 at 7:24 PM, James Turnbull wrote: > /usr/lib/ruby/site_ruby/1.8/puppet/util/metric.rb:62: warning: parenthesize > argument(s) for future version > > Signed-off-by: James Turnbull > --- > lib/puppet/util/metric.rb |2 +- > 1 files changed, 1 insertions(+), 1 deletions(

Re: [Puppet-dev] [PATCH/puppet 1/1] Fixes #4792 (Duplicate definition since 2.6.1 upgrade)

2010-09-30 Thread Jesse A Wolfe
> I have no idea what your concern is here. I wasn't proposing eliminating > any such tests or folding them in anywhere. > Not stating a concern, just trying to reason out the unspoken part of your suggestion, which wasn't immediately obvious to me. > Ah, but you weren't burned by it, you just

Re: [Puppet-dev] [PATCH/puppet 1/1] Fixes #4792 (Duplicate definition since 2.6.1 upgrade)

2010-09-30 Thread Jesse A Wolfe
+1 ! On Thu, Sep 30, 2010 at 7:52 AM, Paul Berry wrote: > The evaluate_definitions method was first figuring out which resources > needed to be evaluated (using unevaluated_resources), and then > evaluating them one by one. As a result, if evaluating one resource > triggered another resource to

Re: [Puppet-dev] [PATCH/puppet 1/1] Fix #4726 Update puppet rrdtool metric code to support modern rrd ruby bindings

2010-09-28 Thread Jesse A Wolfe
Yeah, I should probably extract that conditional into a method. I wanted to write it in such a way that someone looking at the diffs would have no doubt that this was just a mechanical merge between the two versions of the code. anyway, I expect that we'll probably drop support for the old bindings

Re: [Puppet-dev] [PATCH/puppet 1/1] Fixes #4852 - error messages involving Whits now mention Classes instead

2010-09-27 Thread Jesse A Wolfe
+1 I'm looking forward to a cleaner solution for 2.7.x On Mon, Sep 27, 2010 at 3:25 PM, Nick Lewis wrote: > Whits are inserted into the dependency graph in the place where an empty > class is being required. Unfortunately, when such a class is involved in > a loop, the error message shows the cy

Re: [Puppet-dev] [PATCH/puppet 1/1] (#4783) Fix RRDGraph report generation

2010-09-23 Thread Jesse A Wolfe
+1 On Thu, Sep 23, 2010 at 5:15 PM, Matt Robinson wrote: > The code made assumptions about report structure that weren't valid for > 2.6.x. The change has been verified to work with 0.25.x and 2.6.x > report formats. > > Paired with: Rein Henrichs > > Signed-off-by: Matt Robinson > --- > lib/

Re: [Puppet-dev] [PATCH/puppet 1/1] Fixes #4822 -- Puppet doc -o option broken

2010-09-22 Thread Jesse A Wolfe
+1 as a pair-er. On Wed, Sep 22, 2010 at 2:35 PM, Paul Berry wrote: > The global "-o" option ("--onetime") was overriding the > application-specific option "-o" because global options were being > sent to the OptionParser after application-specific options. > > Modified the order in which option

Re: [Puppet-dev] Commit naming convention, and git-am work-flow.

2010-09-22 Thread Jesse A Wolfe
> Wow, I could have sworn Jesse told me it was our convention. I did - I really thought that the [#] convention had been unanimously approved. My mistake. -- You received this message because you are subscribed to the Google Groups "Puppet Developers" group. To post to this group, send ema

Re: [Puppet-dev] [PATCH/puppet 1/1] [#4692] undefined variables cause :undef to be passed to functions

2010-09-17 Thread Jesse A Wolfe
+1 On Fri, Sep 17, 2010 at 4:51 PM, Paul Berry wrote: > The :undef symbol, which we use internally to distinguish between > undefined variables and variables whose value is the empty string, is > being leaked in calls to functions (e.g. "split"). This is a > departure from 0.25.x behavior, wher

Re: [Puppet-dev] Proposal for feature request #4067 Automatic dependency resolution for package managers.

2010-09-17 Thread Jesse A Wolfe
> > Isn't this already opened as a ticket? > I know I've taken at least one stab at it, although I don't appear to have > ever committed anything. > I thought it was likely to be a ticket, but searching redmine didn't turn up anything. -- You received this message because you are subscribed to

Re: [Puppet-dev] Proposal for feature request #4067 Automatic dependency resolution for package managers.

2010-09-17 Thread Jesse A Wolfe
> On 9/16/2010 11:32 AM, Peter Meier wrote: > >> Personally I think that the grouping issue is much more important and >> would provide the basis on which we could build a faster automatic >> dependency resolution. I simply don't see the importance of the proposed >> feature over the grouping one.

Re: [Puppet-dev] Proposal for feature request #4067 Automatic dependency resolution for package managers.

2010-09-17 Thread Jesse A Wolfe
> Can we have more information or pointer on said algorithm? > (It's possible it was discussed here and I missed the thread). > > I'll have to direct this question over to Markus. I've seen him sketch it on a whiteboard, but I'm not sure it's been capture sufficiently outside his head. -- You rec

Re: [Puppet-dev] Compile catalog with facts

2010-09-14 Thread Jesse A Wolfe
> > So basically, you can see that the params aren't including the facts, and > this is a problem with the run_mode, which I don't quite understand. Jesse > Wolfe should be able to help with that, I think, and once you've got that > sorted you should be all set. > > Basically the run_mode is an ab

Re: [Puppet-dev] [PATCH/puppet 1/1] Fix for #4736 -- preserve case of defined resources

2010-09-11 Thread Jesse A Wolfe
+1, this makes sense to me. On Fri, Sep 10, 2010 at 6:22 PM, Markus Roberts wrote: > This restricts the change introduced in #4691 to hostclasses, and leaves > defined > resources and nodes alone, thus more closely mimicing the 0.25.x behaviour. > It > also includes title, as this was similarly

Re: [Puppet-dev] [PATCH/puppet 1/1] [3782] Test isolation problem in test/ral/providers/cron/crontab.rb

2010-09-08 Thread Jesse A Wolfe
I'm going to +1 this under the rationale that since it's *deterministic* such that someone changes the test data such that the test fails, it will fail immediately and the comment will explain what went wrong. On Wed, Sep 1, 2010 at 10:45 AM, Markus Roberts wrote: > +0.85 This does the job, but i

Re: [Puppet-dev] [PATCH/puppet 1/1] Fixed issue #4570 (Race conditions when serializing objects to YAML).

2010-09-08 Thread Jesse A Wolfe
+1 On Mon, Aug 23, 2010 at 8:55 AM, Paul Berry wrote: > The ZAML class was using class variables to keep track of labels and > backreferences while serializing object to YAML. This made it > possible to get ill-formed or incorrect YAML output if two threads > tried to serialize objects at the s

Re: [Puppet-dev] [PATCH/puppet 1/1] Fix for #4489 -- apply was using the rest terminus

2010-08-21 Thread Jesse A Wolfe
oof. well, at least "apply" is easier to search&replace on than "puppet" +1 On Sat, Aug 21, 2010 at 8:12 PM, Markus Roberts wrote: > Basing pervasive low-level behaviour changes on the application name isn't > a > good idea, but if we're going to do it we need to remember to update the > test >

Re: [Puppet-dev] [PATCH/puppet 1/2] Moved perform_initial_import from Puppet::Resource::TypeCollection to Puppet::Node::Environment.

2010-08-17 Thread Jesse A Wolfe
+1 On Fri, Aug 13, 2010 at 4:13 PM, Paul Berry wrote: > This change is part of an ongoing effort to remove functionality from > TypeCollection that is not related to keeping track of a collection of > types. This reduces TypeCollection's linkage to the environment, > which is a step toward deco

Re: [Puppet-dev] [PATCH/puppet 2/3] Moved perform_initial_import and version from Puppet::Resource::TypeCollection to Puppet::Node::Environment.

2010-08-12 Thread Jesse A Wolfe
Wait, oops. Version is failing a "rake unit" test ... it looks like we were relying on the TypeCollection object getting replaced when the .pp files were altered. This patch prevents the version number from being incremented. On Thu, Aug 12, 2010 at 3:05 PM, Jesse A Wolfe wrote:

Re: [Puppet-dev] [PATCH/puppet 2/3] Moved perform_initial_import and version from Puppet::Resource::TypeCollection to Puppet::Node::Environment.

2010-08-12 Thread Jesse A Wolfe
+1 (as a partial pairing partner) On Thu, Aug 12, 2010 at 2:10 PM, Paul Berry wrote: > This change is part of an ongoing effort to remove functionality from > TypeCollection that is not related to keeping track of a collection of > types. This reduces TypeCollection's linkage to the environment

Re: [Puppet-dev] [PATCH/puppet 1/1] [#4397]+[#4344] Move type-name resolution out of Puppet::Resource into the AST resources.

2010-08-05 Thread Jesse A Wolfe
> > In looking at that patch, it still looks like resources will be created as > Type[type], rather than Class[type]. Have you tested that relationships to > class resources still works with this code? > > I don't see how that could be true, when: case type.downcase > when "class" >

Re: [Puppet-dev] [PATCH/puppet 1/1] [#4397]+[#4344] Move type-name resolution out of Puppet::Resource into the AST resources.

2010-08-05 Thread Jesse A Wolfe
>> +    resource_type = scope.find_resource_type(type) >>    resource_titles.flatten.collect { |resource_title| >>      exceptwrap :type => Puppet::ParseError do >> - >> -              resource = Puppet::Parser::Resource.new( >> -        type, resource_title, >> +        resource = Puppet::Parser::

Re: [Puppet-dev] [#4224] vardir and confdir when running puppet master as non-root user

2010-07-27 Thread Jesse A Wolfe
Xavier, #4224 is a proposed change. It has not been shipped with 2.6.0 - in fact, no code has been written for that ticket. Looking at the code, it seems that puppet master should always be using /etc/puppet and /var/lib/puppet , without regard to what user it is running as. If you are seeing a be

Re: [Puppet-dev] [PATCH/puppet 1/1] [#4370] Fixes extlookup precedence getting overwritten between runs

2010-07-27 Thread Jesse A Wolfe
> > extlookup_precedence = lookupvar('extlookup_precedence').collect { |s| > s.gsub(/%\{(.+?)\}/) { lookupvar($1) } } > we switched from curlies to do-end after actually getting getting lost in the {({({(/#{{ forest. I'm strongly preferring the more verbose syntax in this case. -- You received

Re: [Puppet-dev] [PATCH/puppet 1/1] [#4370] Fixes extlookup precedence getting overwritten between runs

2010-07-26 Thread Jesse A Wolfe
+2 On Jul 26, 2010 7:37 PM, "Matt Robinson" wrote: We found the gsub! in extlookup was actually modifying the value for extlookup_precedence, so the next node to call it just got the interpolated value from the first run. We did two things in the code to prevent this: 1. We returned a dup of th

Re: [Puppet-dev] [PATCH/puppet 1/1] Fix for #3382 -- Empty classes as graph placeholders

2010-07-24 Thread Jesse A Wolfe
+ an infinite number of iotas, or 1, whichever is greater. On Sat, Jul 24, 2010 at 4:42 PM, Markus Roberts wrote: > As Brice discovered, the problem was that we simply ignored empty classes > in > the graph when determining application order. This patch instead replaces > them > with a resource

Re: [Puppet-dev] [PATCH/puppet 1/1] Possible fix for #4297

2010-07-24 Thread Jesse A Wolfe
This makes more sense than anything I've seen in days. +0.. On Sat, Jul 24, 2010 at 11:09 AM, Markus Roberts wrote: > The first version had a typo, fixed in the second. > > -- Markus > --- > The power of a

Re: [Puppet-dev] [PATCH/puppet 1/1] extlookup() is a builtin

2010-07-23 Thread Jesse A Wolfe
> Don't we have to move the extlookup code into > lib/puppet/parser/functions or something too? (I don't know the > answer, but it seems likely). I did! > rename from ext/extlookup.rb > rename to lib/puppet/parser/functions/ extlookup.rb On Fri, Jul 23, 2010 at 2:35 PM, Markus Roberts wrote:

Re: [Puppet-dev] [PATCH/puppet 1/1] Fixed #4275 - Added parser call to extlookup for 2.6.x

2010-07-23 Thread Jesse A Wolfe
+1, as this is analogous to the solution that Matt Robinson found yesterday. I'll be spending some time today trying to get this file tested enough that we're comfortable promoting it from /ext/ to /lib/puppet/parser/functions/ ~Jesse On Fri, Jul 23, 2010 at 9:31 AM, James Turnbull wrote: > > S

Re: [Puppet-dev] [PATCH/puppet 1/1] Fix #4302 - Compilation speed regression compared to 2.6

2010-07-22 Thread Jesse A Wolfe
Hrmm. There's an implicit assumption that a thread won't span environments. In what circumstances is that assumption violated? On Thu, Jul 22, 2010 at 8:47 PM, Markus Roberts wrote: > -1 unfortunately. > > This makes known resources per-thread instead of per-environment, > which means that we'll

Re: [Puppet-dev] Re: [PATCH/puppet 1/1] [#4313] removed 1.8.1 workaround preventing fact compression

2010-07-22 Thread Jesse A Wolfe
That's ... even stranger. I'm sure that I've only merged changes into "next" from the "0.25.x" and "master" branches. And it looks to me that my patch successfully made it into the 2.6.0 release. What version are you patching against, Marc? As of today, "2.6.x" exists as a fork of "master" "next"

Re: [Puppet-dev] [PATCH/puppet 1/1] Fix #4319 - source file url sent to the master is invalid

2010-07-22 Thread Jesse A Wolfe
+1. It might be nicer if full_path didn't return a leading slash, but this definitely seems like the safest way to fix it. On Wed, Jul 21, 2010 at 1:58 PM, Brice Figureau < brice-pup...@daysofwonder.com> wrote: > We were sending an incorrect (containing a //) url for sourced file > content since

Re: [Puppet-dev] [PATCH/puppet 1/1] Fix #4302 - Compilation speed regression compared to 2.6

2010-07-22 Thread Jesse A Wolfe
I like this code. +1, unless someone can find a place where we're using the same thread to compile more than one catalog. On Thu, Jul 22, 2010 at 11:37 AM, Brice Figureau < brice-pup...@daysofwonder.com> wrote: > In 2.6 we moved access to loaded type to the environment. > Each time the compiler w

Re: [Puppet-dev] [PATCH/puppet 1/1] [#4313] removed 1.8.1 workaround preventing fact compression

2010-07-21 Thread Jesse A Wolfe
+1. I could have sworn we had already caught these, but I guess not. On Wed, Jul 21, 2010 at 5:08 AM, Marc Fournier wrote: > 2 workarounds for yaml issues with ruby 1.8.1 where added to > this file: >  * 1c69af2 - Dec 3  2009 >  * e8bce7a - Oct 24 2009 > > e44430b (Mar 22 2010) completely circumv

Re: [Puppet-dev] [PATCH/puppet 1/1] [#4247] storeconfigs was calling Puppet::Parser::Resource.new with the wrong arguments

2010-07-15 Thread Jesse A Wolfe
Oh! I see my mistake: I keep conflating the attributes hash and the parameters hash. I've changed that line in my branch. ~Jesse On Thu, Jul 15, 2010 at 9:00 PM, Markus Roberts wrote: > > -obj = Puppet::Parser::Resource.new(hash) > > +obj = Puppet::Parser::Resource.new(hash["type"], hash

Re: [Puppet-dev] [PATCH/puppet 1/1] [#4247] storeconfigs was calling Puppet::Parser::Resource.new with the wrong arguments

2010-07-15 Thread Jesse A Wolfe
I, unfortunately, failed to understand your code until I had rediscovered and reimplemented the fix almost verbatim. So it was just a difference in style between your code and mine that I used [] when you used delete(), but I don't think it makes any difference whether we delete "type" and "title"

Re: [Puppet-dev] [PATCH/puppet 1/1] [#3656] Serializing arrays of references

2010-07-13 Thread Jesse A Wolfe
The source code for that method is in the patch I posted, I think you just missed it. On Tue, Jul 13, 2010 at 7:06 PM, Todd Zullinger wrote: > Jesse Wolfe wrote: > > My previous fix for #3656 missed the case where a "require" attribute > > (or other graph-ish attribute) had multiple values. This

Re: [Puppet-dev] [PATCH/puppet 1/1] [#4215] Have rundir depend on vardir

2010-07-13 Thread Jesse A Wolfe
+1, nice fix to my error. On Tue, Jul 13, 2010 at 11:54 AM, Matt Robinson wrote: > This came up because if you ran puppetd with a specific vardir, then > when rundir got set to a hardcoded value its parent directory might not > exist and the whole thing would fail. > > This change came about wit

Re: [Puppet-dev] [PATCH/puppet 1/1] [#4209] catalog.resources should return resources

2010-07-11 Thread Jesse A Wolfe
It looks like Matt and I just missed this one case in the earlier patch. There are actually surprisingly few calls to methods named "resources" in the codebase; I was expecting it to be a grep nightmare. On Sun, Jul 11, 2010 at 10:43 PM, Luke Kanies wrote: > Is the complete fix actually this sim

Re: [Puppet-dev] [PATCH/puppet 1/1] Minimal fix for #4205 -- incorrect Import loop messages

2010-07-11 Thread Jesse A Wolfe
Not really - if I'm remembering correctly, the non-idempotentcy of this line was exacerbating other call-order problems. That's about as deep as I got. On Sun, Jul 11, 2010 at 5:32 PM, Markus Roberts wrote: > Jesse -- > > > +1. It seems like I've smashed into this line of code three times in the

Re: [Puppet-dev] [PATCH/puppet 1/1] Minimal fix for #4205 -- incorrect Import loop messages

2010-07-11 Thread Jesse A Wolfe
+1. It seems like I've smashed into this line of code three times in the last week. On Sun, Jul 11, 2010 at 12:24 PM, Markus Roberts wrote: > This patch fixes the narrow problem of #4205, wherein type_loader would > reparse > a file each time it was imported (causing the parser to incorrectly th

Re: [Puppet-dev] [PATCH/puppet 1/1] [#4111] Remove special case for "ensure"

2010-07-10 Thread Jesse A Wolfe
On Sat, Jul 10, 2010 at 10:08 AM, Markus Roberts wrote: > After mulling this a while, I think the real issue is that we're > treating ensure as an attribute-set rather than as an attribute.  It's > a magic feature that semantically sets a whole slew of features.  When > we say "ensure => present"

Re: [Puppet-dev] [PATCH/puppet 1/1] [#4111] Remove special case for "ensure"

2010-07-07 Thread Jesse A Wolfe
> Basically, 'ensure' trumps everything - if it's out of sync, nothing else > really matters. In cases where ensure is absent/present, this holds. But if you've got other options (changing a service from "stopped" to "running", for example), then you may still care about other changes on the resou

Re: [Puppet-dev] [PATCH/puppet 1/1] [#4111] Remove special case for "ensure"

2010-07-07 Thread Jesse A Wolfe
Not a bug for 2.6, I believe. Perhaps needs-design-decision for later. On Jul 7, 2010 11:11 AM, "Markus Roberts" wrote: So does that make #4111 not-a-bug or? -- Markus -- You received this message because you are subscribed to the Google Groups "Puppet Developers" group -- You recei

Re: [Puppet-dev] [PATCH/puppet 1/1] [#4111] Remove special case for "ensure"

2010-07-07 Thread Jesse A Wolfe
The answer is: we get a lot more events. It looks like this was intentional, to not behave this way. On Wed, Jul 7, 2010 at 10:36 AM, Jesse Wolfe wrote: > If "ensure" changes, then no other changes are logged for that resource. > I'm not sure why this special case is here. If I remove it, like so

Re: [Puppet-dev] [PATCH/puppet 1/1] [#4108] Added queueing to the log

2010-07-06 Thread Jesse A Wolfe
If we fix the Hash#count to something that exists on old rubies, I'll happily +1 this. On Tue, Jul 6, 2010 at 2:06 PM, Nick Lewis wrote: > Apologies, this is actually for ticket #4114. I've amended the commit message. > > On Jul 6, 2010, at 1:36 PM, Nick Lewis wrote: > >> The log will now queue a

Re: [Puppet-dev] [PATCH/puppet 1/1] [#4149] TypeCollection should assign itself to its environment as the known_resource_types

2010-07-06 Thread Jesse A Wolfe
I meant to say: the other patch supersedes this one, on Markus's suggestion. So I give it a -1. On Tue, Jul 6, 2010 at 6:21 PM, Luke Kanies wrote: > The reason I didn't do this is because it makes it tough to test the > class in isolation - every instance effectively becomes global. > > I can see

Re: [Puppet-dev] [PATCH/puppet 1/1] [#4149] Don't create two Resource::TypeCollections

2010-07-06 Thread Jesse A Wolfe
> Isn't this the same as calling Env.new with no arguments? Probably. -- You received this message because you are subscribed to the Google Groups "Puppet Developers" group. To post to this group, send email to puppet-...@googlegroups.com. To unsubscribe from this group, send email to puppet-d

Re: [Puppet-dev] [PATCH/puppet 1/1] [#3994] rename the specs to have _spec.rb at the end

2010-06-13 Thread Jesse A Wolfe
+1, I've certainly been bitten by this. an executable that fails because you're in the wrong directory feels brittle, and I'm in favor of any change that makes the tests less likely to fail for surprising reasons. (an alternate suggestion would be to have spec_helper make sure the working directory

Re: [Puppet-dev] [PATCH/puppet 1/1] Fix for #3949 and related

2010-06-13 Thread Jesse A Wolfe
+1. I see where I made a mistake trying to reproduce it. But, yep, that's how it works. On Fri, Jun 11, 2010 at 7:17 PM, Markus Roberts wrote: > > > On Tue, Jun 8, 2010 at 1:11 PM, Jesse A Wolfe wrote: > > This is begging for a test case. I either don't understand what

Re: [Puppet-dev] [PATCH/puppet 1/1] Part 2 of fix for #1175 (functions in environments)

2010-06-11 Thread Jesse A Wolfe
+1, I like the way it finally came together On Jun 11, 2010 4:10 PM, "Markus Roberts" wrote: Jesse and I are shooting for the minimal viable fix here, with the idea that a great deal of refactoring is needed but isn't appropriate at this time. The changes in this commit are: * Index the functi

Re: [Puppet-dev] [PATCH/puppet 1/1] Fix for #3949 and related

2010-06-08 Thread Jesse A Wolfe
This is begging for a test case. I either don't understand what you're saying Syck will do, or I can't reproduce it. ~Jesse On Mon, Jun 7, 2010 at 1:56 PM, Markus Roberts wrote: > Syck/Yaml quietly passes on undefined classes as strings, so that if > objects > of those classes are loaded and re-

Re: [Puppet-dev] [PATCH/puppet 1/1] [#3766] Remove YAML fixups

2010-05-25 Thread Jesse A Wolfe
r generate broken YAML, we don't need fixup(). ~Jesse On Tue, May 25, 2010 at 9:16 PM, Ohad Levy wrote: > What about cases where the client does not use zaml yet (e.g. old 0.24.x > clients)? will that introduce any new compatibility problems? > > Ohad > > On Wed, May 26

Re: [Puppet-dev] [PATCH/puppet 1/1] [#3766] Remove YAML fixups

2010-05-25 Thread Jesse A Wolfe
Yes. On Tue, May 25, 2010 at 6:47 PM, Ohad Levy wrote: > > > On Wed, May 26, 2010 at 6:17 AM, Jesse Wolfe wrote: > >> Remove workarounds that were only needed because ruby's builtin YAML >> lib is broken. >> > Hi, > > Why is this being removed? is it because of the introduction of zaml? > > Oha

Re: [Puppet-dev] [PATCH/puppet 1/1] [#2522] authorized keys owner is verified

2010-05-25 Thread Jesse A Wolfe
+1 as the pair-er but I'd be happy to hear suggestions of if there's something we could have written a unit test for in here. On Tue, May 25, 2010 at 6:02 PM, Matt Robinson wrote: > The user method on the provider always returned what the resource should > be, not what it actually was, so it alw

Re: [Puppet-dev] [PATCH/puppet 15/17] Feature #2935 Puppet[:mode] and Puppet[:name] are read-only

2010-05-22 Thread Jesse A Wolfe
On Fri, May 21, 2010 at 9:44 PM, Markus Roberts wrote: > +1, with two comments: > > >end > >> eachsection do |section| >> persection(section) do |obj| >> +next if ReadOnly.include? obj.name >> str += obj.to_config + "\n" >> en

Re: [Puppet-dev] [PATCH/puppet 1/1] [#3674] Autoloader should propagate failures

2010-05-21 Thread Jesse A Wolfe
I started to change "load", too, but then I waffled - it was unclear if it there were any cases where I wouldn't just be wrapping it in a rescue I'll give another stab at it. On Fri, May 21, 2010 at 5:02 PM, Luke Kanies wrote: > This is only half of the battle - you need to change the 'load' met

Re: [Puppet-dev] [PATCH/puppet 1/1] Fixing #2337 - Adding 'freeze_main' setting

2010-05-21 Thread Jesse A Wolfe
+1, then. On Fri, May 21, 2010 at 2:22 PM, Luke Kanies wrote: > Fixed in code - not worth pushing again, I assume. > > On May 21, 2010, at 2:19 PM, Jesse A Wolfe wrote: > > +0.9, with the last 0.1 if you fix the rspec docstring to have the right > setting name > > (I gu

Re: [Puppet-dev] [PATCH/puppet 1/1] Fixing #2337 - Adding 'freeze_main' setting

2010-05-21 Thread Jesse A Wolfe
+0.9, with the last 0.1 if you fix the rspec docstring to have the right setting name (I guess "main" is a reserved word? I'm slightly surprised by that) On Wed, May 19, 2010 at 11:45 PM, Luke Kanies wrote: > This disables adding any code to 'main' except > in site.pp, so if you have code outsi

Re: [Puppet-dev] [PATCH/puppet 1/1] Fixing #3072 - Resource generation is recursive

2010-05-21 Thread Jesse A Wolfe
+1, pretty straightforward On Wed, May 19, 2010 at 11:46 PM, Luke Kanies wrote: > This allows you to create builtin nested resource types > that generate other resources that generate other resources > ad naseum. > > The primary point of this feature is that you can make > builtin resource types

Re: [Puppet-dev] [PATCH/puppet 1/1] [#3802] Replace rug with zypper

2010-05-19 Thread Jesse A Wolfe
+1, this patch is giving me deja vu On Tue, May 18, 2010 at 5:14 PM, Matt Robinson wrote: > OpenSuSE replaced rug with zypper so our code should too > > Signed-off-by: Matt Robinson > --- > lib/puppet/provider/package/zypper.rb |8 > 1 files changed, 4 insertions(+), 4 deletions(-

Re: [Puppet-dev] [PATCH/puppet 1/1] Fix for #3107 Changing users on AIX

2010-05-05 Thread Jesse A Wolfe
I'm going to echo Luke on this one. +1, but needs some serious cross-platform verification before release. On Tue, May 4, 2010 at 9:02 PM, Luke Kanies wrote: > +1 for the testing branch, anyway. > > Obviously a potentially large change so needs plenty of testing. > > > On May 4, 2010, at 4:10 PM

Re: [Puppet-dev] [PATCH/puppet 11/15] feature #2276 Single Executable: CommandLine can be instantiated

2010-05-02 Thread Jesse A Wolfe
When I wrote this, I was imagining that there might be places that using a CommandLine object would be less desirable than the singleton (module) version. That looks like an increasingly spurious concern. ~Jesse On Sat, May 1, 2010 at 11:29 PM, Markus Roberts wrote: > def self.subcom

Re: [Puppet-dev] [PATCH/puppet 06/15] feature #2276 Single Executable: legacy settings

2010-05-02 Thread Jesse A Wolfe
I actually did squash+unsquash my original series quite a bit (went from 29 patches to 15). I had convinced myself that leaving this one intact made 10/15 (f5aecbe) make more sense as a set of method extracts that don't change functionality. I'm sure there's a different possible pair of patches tha

Re: [Puppet-dev] [PATCH/puppet 1/1] Fix for #3556 Plussignment value melding

2010-04-30 Thread Jesse A Wolfe
+1 On Fri, Apr 30, 2010 at 5:38 PM, Markus Roberts wrote: > The plussignment operator was constructing the new parameter value by > modifying the param object's value in place (so as to preserve the file > and line information for debugging). However, when multiple resources > are overridden by

Re: [Puppet-dev] [PATCH/puppet 1/1] Fix #3656 JSON serialization of dependencies

2010-04-29 Thread Jesse A Wolfe
I started to code up an alternate implementation, but it occurred to me this morning to check the old behavior so I could maintain back compatibility with 0.25.x series clients. Here's what I found: Puppet::Resource::Reference.new("File", "/dev/null").to_pson => "\"File[/dev/null]\"" So, I'm going

Re: [Puppet-dev] [PATCH/puppet 1/1] Fix for #3558 -- source file reading speedup

2010-04-29 Thread Jesse A Wolfe
+1 ! Until somebody implements IOScanner On Apr 29, 2010 2:41 PM, "Markus Roberts" wrote: It's about 10x faster to read the whole file than to read each line and concatenate them (actually, it's O(n) vs. O(n^2), so the exact speedup depends on the file size). Signed-off-by: Markus Roberts ---

Re: [Puppet-dev] [PATCH/puppet 09/13] feature #2276 Single Executable: legacy defaults

2010-04-21 Thread Jesse A Wolfe
Yeah, that sounds reasonable. I chose a $global because it seemed analogous to the $0 , but I was never thrilled with the idea. Might as well move legacy_name into that class, while I'm at it. ~Jesse On Wed, Apr 21, 2010 at 1:36 PM, Luke Kanies wrote: > I'd be far happier with Puppet::Util::Com

Re: [Puppet-dev] [PATCH/puppet 12/13] feature #2276 Single Executable: puppet --help

2010-04-21 Thread Jesse A Wolfe
Alright. I've put the change in. On Wed, Apr 21, 2010 at 12:49 PM, Markus Roberts wrote: > J -- > > that doesn't feel typesafe to me, notice that my predicates are all calling >> different methods - my impression is that it's a lucky coincidence that >> NilClass, Regexp, and String's various ===

Re: [Puppet-dev] [PATCH/puppet 12/13] feature #2276 Single Executable: puppet --help

2010-04-21 Thread Jesse A Wolfe
that doesn't feel typesafe to me, notice that my predicates are all calling different methods - my impression is that it's a lucky coincidence that NilClass, Regexp, and String's various === operations happen to DWIM in each of these situations. of course, I imagine that you'll reply that it's not

Re: [Puppet-dev] [PATCH/puppet 1/1] Fix for #3101 (bug in MRI 1.8.7)

2010-03-30 Thread Jesse A Wolfe
+1, clears up the problem on my ubuntu box. On Tue, Mar 30, 2010 at 2:38 PM, Markus Roberts wrote: > Due to a bug in Ruby 1.8.7 net/http will attempt to close a connection > that wasn't successfully opened (it's nil), first checking to see if the > connection is already close, and thus raising a

Re: [Puppet-dev] 0.25.5 rc1 plan

2010-03-24 Thread Jesse A Wolfe
3 days have passed and many of these requested changes have made it into the 0.25.x branch. By my count, 0.25.5rc1 should include all of the current 0.25.x branch (fd76142), plus: * #3396; Brice, event propagation speedup * #3229; Brice, case/selector regex matching * #2929; Brice, Allow checksum t

Re: [Puppet-dev] Re: Fixes #1223 Add Zypper support for SuSE machines

2010-03-24 Thread Jesse A Wolfe
I'd like to recommend this patch to go into the upcoming 0.25.5 release. It looks like a typo has crept into your github branch, though: +commands :rug => "/usr/bin/zypper" And the code below is calling "zypper" as a method - I suspect that doesn't work (and it doesn't match your old mailing-

Re: [Puppet-dev] [PATCH/puppet 2/2] Feature #3394 REST runner, execution

2010-03-19 Thread Jesse A Wolfe
What I mean is, what information are you passing via the URI that you can't > pass as options et al? The 'https' is clearly redundant, since we're always > talking https when using REST, and the api stuff should handle converting > the rest of the info to a URI. > > The things that there's not a w

  1   2   >