Account Options

  1. Sign in
The old Google Groups will be going away soon, but your browser is incompatible with the new version.
Google Groups Home
« Groups Home
my bugs & fixes
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  9 messages - Collapse all  -  Translate all to Translated (View all originals)
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
Alex Harvey  
View profile  
 More options Oct 12 2012, 6:05 am
From: Alex Harvey <alexharv...@gmail.com>
Date: Fri, 12 Oct 2012 03:05:22 -0700 (PDT)
Local: Fri, Oct 12 2012 6:05 am
Subject: my bugs & fixes

Hello all,

I am sure people are busy but I thought I'd put it out there that I've been
waiting quite a while for a number of bugs & some code to be reviewed -

#14674 - raised as a bug, but I think really a refactor, which I need
implemented before fixing some HPUX facts - waiting on code review
#13535 - a fix for the uptime fact on AIX, HPUX & legacy Solaris, includes
a large number of RSpec tests - waiting on code review

#11612 - waiting on feedback in the Redmine ticket
#11609 - waiting on feedback in the Redmine ticket

#16506 - waiting on bug I reported to be reviewed/accepted
#16511 - waiting on bug I reported to be reviewed/accepted
#16526 - waiting on bug I reported to be reviewed/accepted
#16527 - waiting on bug I reported to be reviewed/accepted

Best wishes,
Alex Harvey


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Jeff McCune  
View profile  
 More options Oct 12 2012, 2:59 pm
From: Jeff McCune <j...@puppetlabs.com>
Date: Fri, 12 Oct 2012 11:58:52 -0700
Local: Fri, Oct 12 2012 2:58 pm
Subject: Re: [Puppet-dev] my bugs & fixes

On Fri, Oct 12, 2012 at 3:05 AM, Alex Harvey <alexharv...@gmail.com> wrote:
> Hello all,

> I am sure people are busy but I thought I'd put it out there that I've
> been waiting quite a while for a number of bugs & some code to be reviewed -

Alex,

We sure have been, it was nice to finally get 3.0.0 released during Puppet
Conf this year.  I'll take a look at as many of these issues as I can
today.  Thank you for your contribution and for your patience.

-Jeff


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Jeff McCune  
View profile  
 More options Oct 15 2012, 2:22 pm
From: Jeff McCune <j...@puppetlabs.com>
Date: Mon, 15 Oct 2012 11:21:24 -0700
Local: Mon, Oct 15 2012 2:21 pm
Subject: Re: [Puppet-dev] my bugs & fixes

On Fri, Oct 12, 2012 at 11:58 AM, Jeff McCune <j...@puppetlabs.com> wrote:
> On Fri, Oct 12, 2012 at 3:05 AM, Alex Harvey <alexharv...@gmail.com> wrote:

>> Hello all,

>> I am sure people are busy but I thought I'd put it out there that I've
>> been waiting quite a while for a number of bugs & some code to be reviewed -

> Alex,

> We sure have been, it was nice to finally get 3.0.0 released during Puppet
> Conf this year.  I'll take a look at as many of these issues as I can today.
> Thank you for your contribution and for your patience.

Alex,

I'm sorry I didn't make any progress on these issues on Friday or over
the weekend.  I'm currently reviewing them and will be working through
them in the order listed.  I'm jmccune on #puppet and #puppet-dev, if
there's anything that comes up that you think will be better worked
out via direct communication, please mention my nick directly.

Thanks,
-Jeff


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Alex Harvey  
View profile  
 More options Oct 15 2012, 8:30 pm
From: Alex Harvey <alexharv...@gmail.com>
Date: Mon, 15 Oct 2012 17:30:52 -0700 (PDT)
Local: Mon, Oct 15 2012 8:30 pm
Subject: Re: [Puppet-dev] my bugs & fixes

Hi Jeff,

I've seen all your updates - thanks!  In general I already have fixes ready
for quite a few of them - I just needed them accepted/reviewed before I
could proceed to submit.  In a few other cases I'll update the tickets with
more specific comments.

Best regards,
Alex


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Jeff McCune  
View profile  
 More options Nov 5 2012, 10:32 pm
From: Jeff McCune <j...@puppetlabs.com>
Date: Mon, 5 Nov 2012 19:32:03 -0800
Local: Mon, Nov 5 2012 10:32 pm
Subject: Re: [Puppet-dev] my bugs & fixes

Alex,

Thanks again for pinging us about these issues.  Doing so really helps me
make sure I'm not letting valuable contributions slip through the cracks.

At this point, I think all of these issues are resolved and are going to be
released in the next versions of Puppet and Facter.  Is this the case, or
is there something I've overlooked and need to address at this time?

Thanks again,
-Jeff


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Alex Harvey  
View profile  
 More options Nov 6 2012, 8:29 pm
From: Alex Harvey <alexharv...@gmail.com>
Date: Tue, 6 Nov 2012 17:29:19 -0800 (PST)
Local: Tues, Nov 6 2012 8:29 pm
Subject: Re: [Puppet-dev] my bugs & fixes

Hi Jeff,

Thanks for all your hard work and also for patiently explaining so much of
the development process to me.  All of the issues I raised are resolved.

Keep in mind however that #11612 is really a ticket about multiple issues
and adding processorX facts was only one part.  Maybe it should be closed
and raised as separate tickets?  Still to do, add physicalprocessorcount
(this is also a headache on HP-UX) and add Hongbo Hu's bugfix for dealing
with HP-UX NICs that have an asterisk after them.  This could probably be
put in straight away - but the question is are we going to use this
opportunity to write proper unit tests for ip.rb?  That might take me,
personally, too far afield.

See my comment at
https://projects.puppetlabs.com/issues/11612#note-31

Best regards,
Alex


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Jeff McCune  
View profile  
 More options Nov 7 2012, 4:27 pm
From: Jeff McCune <j...@puppetlabs.com>
Date: Wed, 7 Nov 2012 13:26:57 -0800
Local: Wed, Nov 7 2012 4:26 pm
Subject: Re: [Puppet-dev] my bugs & fixes

On Tue, Nov 6, 2012 at 5:29 PM, Alex Harvey <alexharv...@gmail.com> wrote:
> Hi Jeff,

> Thanks for all your hard work and also for patiently explaining so much of
> the development process to me.  All of the issues I raised are resolved.

> Keep in mind however that #11612 is really a ticket about multiple issues
> and adding processorX facts was only one part.  Maybe it should be closed
> and raised as separate tickets?

Yes, I think we should leave 11612 as it is.  Merged pending release is a
state that is considered "closed," but it's a soft form of being closed.
 The ticket changes to the closed state when the change is actually
released.  Would you mind creating additional tickets for the following
"still to do" items?  One ticket for each actionable issue will help me
streamline the changes through our system.

> Still to do, add physicalprocessorcount (this is also a headache on HP-UX)
> and add Hongbo Hu's bugfix for dealing with HP-UX NICs that have an
> asterisk after them.  This could probably be put in straight away - but the
> question is are we going to use this opportunity to write proper unit tests
> for ip.rb?  That might take me, personally, too far afield.

I'd be happy to write the unit tests for ip.rb, but I do this sort of work
when I have the opportunity, which is not all that frequently.  If you
could isolate the potential blocker of unit tests in it's own issue, it'll
help keep the other issues streamlined.

I'm also happy to file these tickets, but I think it will be faster and
more clear if they come from you since I'm doing quite a bit of context
switching across facter, puppet and stdlib at the moment.

-Jeff


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Alex Harvey  
View profile  
 More options Nov 8 2012, 1:12 am
From: Alex Harvey <alexharv...@gmail.com>
Date: Wed, 7 Nov 2012 22:12:25 -0800 (PST)
Local: Thurs, Nov 8 2012 1:12 am
Subject: Re: [Puppet-dev] my bugs & fixes

On Thursday, November 8, 2012 8:27:39 AM UTC+11, Jeff McCune wrote:
> Yes, I think we should leave 11612 as it is.  Merged pending release is a
> state that is considered "closed," but it's a soft form of being closed.
>  The ticket changes to the closed state when the change is actually
> released.  Would you mind creating additional tickets for the following
> "still to do" items?  One ticket for each actionable issue will help me
> streamline the changes through our system.

Will do.

> Still to do, add physicalprocessorcount (this is also a headache on HP-UX)
>> and add Hongbo Hu's bugfix for dealing with HP-UX NICs that have an
>> asterisk after them.  This could probably be put in straight away - but the
>> question is are we going to use this opportunity to write proper unit tests
>> for ip.rb?  That might take me, personally, too far afield.

> I'd be happy to write the unit tests for ip.rb, but I do this sort of work
> when I have the opportunity, which is not all that frequently.  If you
> could isolate the potential blocker of unit tests in it's own issue, it'll
> help keep the other issues streamlined.

Happy to help out where I can.   I'm still new to this so here's the
problem as I see it -

The spec test for the interface list on HP-UX is -

  it "should return a list three interfaces on HP-UX with three interfaces
multiply reporting" do
    hpux_netstat = my_fixture_read("hpux_netstat_all_interfaces")
    Facter::Util::IP.stubs(:get_all_interface_output).returns(hpux_netstat)
    Facter::Util::IP.get_interfaces().should == ["lan1", "lan0", "lo0"]
  end

The fixture hpux_netstat_all_interfaces is, surprisingly, not the output of
netstat -in on HP-UX, but rather what the author believed the
get_all_interface_output method would return.

Now, here is the get_all_interface_output method -

  def self.get_all_interface_output
    case Facter.value(:kernel)
    when 'Linux', 'OpenBSD', 'NetBSD', 'FreeBSD', 'Darwin', 'GNU/kFreeBSD',
'DragonFly'
      output = %x{/sbin/ifconfig -a 2>/dev/null}
    when 'SunOS'
      output = %x{/usr/sbin/ifconfig -a}
    when 'HP-UX'
      output = %x{/bin/netstat -in | sed -e 1d}
    when 'windows'
      output = %x|#{ENV['SYSTEMROOT']}/system32/netsh.exe interface ip show
interface|
      output += %x|#{ENV['SYSTEMROOT']}/system32/netsh.exe interface ipv6
show interface|
    end
    output
  end

The supplied fixture for HP-UX is the output of netstat -in |sed -e 1d -

root@myhost:(ip)> cat hpux_netstat_all_interfaces
lan1      1500 192.168.100.0   192.168.100.182 12964   0     900     0     0
lan0      1500 192.168.100.0   192.168.100.181 12964   0     715     0     0
lo0       4136 127.0.0.0       127.0.0.1       98      0     98      0     0

However the author has not considered the case of netstat -in output that
has asterisks after the interface as in -

root@myhost:()> netstat -in |sed -e 's/[0-9]/X/g'
Name      Mtu  Network         Address         Ipkts   Ierrs Opkts   Oerrs
Coll
lanX*     XXXX XX.XX.XX.X      XX.XX.XX.X      XXX     X     XXX     X     X
lanX      XXXX XXX.XX.X.X      XXX.XX.X.X      XXXXXXXXXX X     XXXXXXXXX
X     X
loX       XXXX XXX.X.X.X       XXX.X.X.X       XXXXXXX X     XXXXXXX X     X

And as Hongbo Hu showed, you can solve the problem easily enough by simply
extending the sed command to delete not only the first line, but also any
asterisks.

From a unit test perspective, however, the code would need to be changed in
order to reproduce the failing behaviour.

My feeling is we would need to rewrite this code with shim methods for the
commands that are executed externally, collect a good sample of outputs
from the various platforms that the code executes on, and then stub all
these calls to external commands in completely new unit tests.  

Next problem is that the code uses a big case statement of the kind Andy
said he doesn't like.  So, I guess we would also want to completely rewrite
the method - and that would affect all platforms.

Finally, the whole of ip.rb and ip_spec.rb is written in the same way.  So,
my conclusion is - since the code's working it's probably low priority and
when we really have lots of spare time then the whole thing needs to be
rewritten, code, unit tests and all.  So it's not obvious to me that it's
worth the effort of changing this method and implementing spec tests if,
really, the whole thing needs to be rewritten.

People with more experience on the project might come to a different
conclusion of course.


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Alex Harvey  
View profile  
 More options Nov 8 2012, 8:58 am
From: Alex Harvey <alexharv...@gmail.com>
Date: Thu, 8 Nov 2012 05:58:31 -0800 (PST)
Local: Thurs, Nov 8 2012 8:58 am
Subject: Re: [Puppet-dev] my bugs & fixes

On Thursday, November 8, 2012 5:12:25 PM UTC+11, Alex Harvey wrote:

> Finally, the whole of ip.rb and ip_spec.rb is written in the same way.  
> So, my conclusion is - since the code's working it's probably low priority
> and when we really have lots of spare time then the whole thing needs to be
> rewritten, code, unit tests and all.  [snip]

On having another look at this I must say that 'whole of ip.rb and
ip_spec.rb' is probably a harsh and unfair overstatement. :)

 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »