On Tue, Nov 20, 2012 at 2:31 PM, llowder <[email protected]> wrote:
> I'm currently working on trying to track down #1372 [1]. Somewhat new to
> this process as well.
>
>
Oh, I just remember this: update the bug to "Investigating" and assign it
to yourself.
> I currently have a series of tests that show and explain the current
> behavior, to define the edges of this bug.[2]
> The tests are mostly done, though I am adding an additional set to show
> what happens when an ENC is used.
>
> Once these are done, I am not entirely sure what my next step is, though I
> would guess it has to do with using irb or pry to trace the code and see
> what happens.
>
>
Yeah, this is where things can start getting a little more difficult :) I
would suggest using pry or ruby-debug or even just puts statements and
running a failing test case. Starting in the include function would
probably be a good place. Figure out what include is doing that doesn't
look right.
You can also do some inspection by comparing what happens with "class {
foo: }" vs. "include foo". Why are those two different? That might point to
the problem as well.
Once you figure that out, then try to figure out a fix to the design so
that this kind of problem is unlikely to occur again. In this case I
suspect it will be getting rid of some duplication.
> Are there any documents available on getting started with this, or does
> anyone have any pointers for me?
>
> Thanks.
>
> [1] http://projects.puppetlabs.com/issues/1372
> [2]
> https://github.com/llowder/puppet/blob/1372_data_gathering/spec/integration/parser/node_class_same_spec.rb
>
> --
> You received this message because you are subscribed to the Google Groups
> "Puppet Developers" group.
> To view this discussion on the web visit
> https://groups.google.com/d/msg/puppet-dev/-/zVzS8NrZLo0J.
> To post to this group, send email to [email protected].
> To unsubscribe from this group, send email to
> [email protected].
> For more options, visit this group at
> http://groups.google.com/group/puppet-dev?hl=en.
>
--
You received this message because you are subscribed to the Google Groups
"Puppet Developers" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/puppet-dev?hl=en.