Merge lp:~bladernr/checkbox-legacy/fix-network-test-output-fail into lp:checkbox-legacy

Proposed by Jeff Lane 
Status: Merged
Approved by: Daniel Manrique
Approved revision: 2822
Merged at revision: 2825
Proposed branch: lp:~bladernr/checkbox-legacy/fix-network-test-output-fail
Merge into: lp:checkbox-legacy
Diff against target: 13 lines (+3/-0)
1 file modified
checkbox-old/scripts/network (+3/-0)
To merge this branch: bzr merge lp:~bladernr/checkbox-legacy/fix-network-test-output-fail
Reviewer Review Type Date Requested Status
Daniel Manrique (community) Approve
Review via email: mp+233379@code.launchpad.net

Description of the change

We're still doing 12.04 certs for server, and this just makes the output on fail a little better as the current output captured by checkbox is useless for debugging the test results.

To post a comment you must log in.
Revision history for this message
Daniel Manrique (roadmr) wrote :

+1, simple enough, I could think of a way to avoid code duplication (from the print statements above) but that will actually be more code than this.

review: Approve
Revision history for this message
Daniel Manrique (roadmr) wrote :

Actually, wait a second... which one should I approve, this or https://code.launchpad.net/~bladernr/checkbox/1229435-network-script-output-improvement/+merge/233380 ?

Let me know.

review: Needs Information
Revision history for this message
Jeff Lane  (bladernr) wrote :

Daniel, that depends... both? This started because of 12.04.5 testing
(which uses checkbox-certification-server/checkbox). I modified the
script in lp:checkbox and pushed that, then remembered that "checkbox"
checkbox is now build out of the base in checkbox-legacy.

So I modified checkbox-legacy thinking that would get the changes into
the PPA for precise packages, since we're using the following:

14.04+ = checkbox-ng/plainbox providers
12.04 = checkbox/checkbox-certification

I don't expect to really do many changes at all to checkbox-legacy,
but since we're still actively using it and I've seen a couple systems
with questionable results we couldn't debug due to lack of useful
output, here we are.

Out of curiosity, what is the process for updating legacy, in case I'm
doing it wrong? Update lp:checkbox and then cherry-pick into legacy?
or treat them as separate code bases?

Also, per your other comment, there are better ways, but since this is
old code, and the change is innocuous, I just did it the quick and
dirty way.

On Thu, Sep 4, 2014 at 11:44 AM, Daniel Manrique
<email address hidden> wrote:
> Review: Needs Information
>
> Actually, wait a second... which one should I approve, this or https://code.launchpad.net/~bladernr/checkbox/1229435-network-script-output-improvement/+merge/233380 ?
>
> Let me know.
> --
> https://code.launchpad.net/~bladernr/checkbox-legacy/fix-network-test-output-fail/+merge/233379
> You are the owner of lp:~bladernr/checkbox-legacy/fix-network-test-output-fail.

--
"Entropy isn't what it used to be."

Jeff Lane - Server Certification Team Lead, Tools Developer, Warrior
Poet, Lover of Pie
Phone: 919-442-8649
Ubuntu Ham: W4KDH Freenode IRC: bladernr or bladernr_
gpg: 1024D/3A14B2DD 8C88 B076 0DD7 B404 1417 C466 4ABD 3635 3A14 B2DD

Revision history for this message
Daniel Manrique (roadmr) wrote :

Oh right, this is me being dumb and not paying attention to the target branches :/

Thanks!

review: Approve
Revision history for this message
Zygmunt Krynicki (zyga) wrote :

Jeff, quick question: why are you still using checkbox-legacy?

Revision history for this message
Jeff Lane  (bladernr) wrote :

Because it's the tool in place for 12.04, so mostly because I'm
squeamish about switching the entire testing system mid-stream from
the established one. It's one thing to make a drastic tooling change
between releases, but my preference is to stay consistent across an
LTS.

I could be convinced otherwise, but to be honest, 12.04 certs are so
few for us now that changing all the docs and re-training everyone to
use checkbox-ng wouldn't be worth it, IMO.

On Thu, Sep 4, 2014 at 12:44 PM, Zygmunt Krynicki
<email address hidden> wrote:
> Jeff, quick question: why are you still using checkbox-legacy?
> --
> https://code.launchpad.net/~bladernr/checkbox-legacy/fix-network-test-output-fail/+merge/233379
> You are the owner of lp:~bladernr/checkbox-legacy/fix-network-test-output-fail.

--
"Entropy isn't what it used to be."

Jeff Lane - Server Certification Team Lead, Tools Developer, Warrior
Poet, Lover of Pie
Phone: 919-442-8649
Ubuntu Ham: W4KDH Freenode IRC: bladernr or bladernr_
gpg: 1024D/3A14B2DD 8C88 B076 0DD7 B404 1417 C466 4ABD 3635 3A14 B2DD

Revision history for this message
Zygmunt Krynicki (zyga) wrote :

Thanks for explaining that.

I wonder about training costs given that (I hope) you are also using
checkbox-ng in parallel with other releases. Am I missing something?

On Thu, Sep 4, 2014 at 7:00 PM, Jeff Lane <email address hidden> wrote:
> Because it's the tool in place for 12.04, so mostly because I'm
> squeamish about switching the entire testing system mid-stream from
> the established one. It's one thing to make a drastic tooling change
> between releases, but my preference is to stay consistent across an
> LTS.
>
> I could be convinced otherwise, but to be honest, 12.04 certs are so
> few for us now that changing all the docs and re-training everyone to
> use checkbox-ng wouldn't be worth it, IMO.
>
> On Thu, Sep 4, 2014 at 12:44 PM, Zygmunt Krynicki
> <email address hidden> wrote:
>> Jeff, quick question: why are you still using checkbox-legacy?
>> --
>> https://code.launchpad.net/~bladernr/checkbox-legacy/fix-network-test-output-fail/+merge/233379
>> You are the owner of lp:~bladernr/checkbox-legacy/fix-network-test-output-fail.
>
>
>
> --
> "Entropy isn't what it used to be."
>
> Jeff Lane - Server Certification Team Lead, Tools Developer, Warrior
> Poet, Lover of Pie
> Phone: 919-442-8649
> Ubuntu Ham: W4KDH Freenode IRC: bladernr or bladernr_
> gpg: 1024D/3A14B2DD 8C88 B076 0DD7 B404 1417 C466 4ABD 3635 3A14 B2DD
>
> https://code.launchpad.net/~bladernr/checkbox-legacy/fix-network-test-output-fail/+merge/233379
> You are subscribed to branch lp:checkbox-legacy.

Revision history for this message
Jeff Lane  (bladernr) wrote :

On Thu, Sep 4, 2014 at 1:06 PM, Zygmunt Krynicki
<email address hidden> wrote:
> Thanks for explaining that.
>
> I wonder about training costs given that (I hope) you are also using
> checkbox-ng in parallel with other releases. Am I missing something?

Well, the upside is that legacy checkbox is ONLY used for 12.04 certs,
of which there are very few, with Cisco and IBM being the only ones
showing interest in that now that 14.04 is out.

For 14.04 and everything beyond, we ONLY use checkbox-ng tooling.

The actual training costs are fairly low because at this point, the
testers have all been testing since pre-14.04, and the only real
training necessary was in using MAAS and in using checkbox-ng stuff.
The ONLY legacy training that I've had to do was for the IBM TSTL lab
in Taiwan because they were completely new to Ubuntu Training. There
MAY be others in the near future, but doubtful because I do not
believe we are pushing or encouraging 12.04 certs for anyone (we're
trying to avoid it, actually, except in cases where paying customers
are demanding it).

>
> On Thu, Sep 4, 2014 at 7:00 PM, Jeff Lane <email address hidden> wrote:
>> Because it's the tool in place for 12.04, so mostly because I'm
>> squeamish about switching the entire testing system mid-stream from
>> the established one. It's one thing to make a drastic tooling change
>> between releases, but my preference is to stay consistent across an
>> LTS.
>>
>> I could be convinced otherwise, but to be honest, 12.04 certs are so
>> few for us now that changing all the docs and re-training everyone to
>> use checkbox-ng wouldn't be worth it, IMO.
>>
>> On Thu, Sep 4, 2014 at 12:44 PM, Zygmunt Krynicki
>> <email address hidden> wrote:
>>> Jeff, quick question: why are you still using checkbox-legacy?
>>> --
>>> https://code.launchpad.net/~bladernr/checkbox-legacy/fix-network-test-output-fail/+merge/233379
>>> You are the owner of lp:~bladernr/checkbox-legacy/fix-network-test-output-fail.
>>
>>
>>
>> --
>> "Entropy isn't what it used to be."
>>
>> Jeff Lane - Server Certification Team Lead, Tools Developer, Warrior
>> Poet, Lover of Pie
>> Phone: 919-442-8649
>> Ubuntu Ham: W4KDH Freenode IRC: bladernr or bladernr_
>> gpg: 1024D/3A14B2DD 8C88 B076 0DD7 B404 1417 C466 4ABD 3635 3A14 B2DD
>>
>> https://code.launchpad.net/~bladernr/checkbox-legacy/fix-network-test-output-fail/+merge/233379
>> You are subscribed to branch lp:checkbox-legacy.
>
> --
> https://code.launchpad.net/~bladernr/checkbox-legacy/fix-network-test-output-fail/+merge/233379
> You are the owner of lp:~bladernr/checkbox-legacy/fix-network-test-output-fail.

--
"Entropy isn't what it used to be."

Jeff Lane - Server Certification Team Lead, Tools Developer, Warrior
Poet, Lover of Pie
Phone: 919-442-8649
Ubuntu Ham: W4KDH Freenode IRC: bladernr or bladernr_
gpg: 1024D/3A14B2DD 8C88 B076 0DD7 B404 1417 C466 4ABD 3635 3A14 B2DD

Revision history for this message
Daniel Manrique (roadmr) wrote :

The attempt to merge lp:~bladernr/checkbox-legacy/fix-network-test-output-fail into lp:checkbox-legacy failed. Below is the output from the failed tests.

[precise] Bringing VM 'up'
[precise] Unable to 'up' VM!
[precise] stdout: http://paste.ubuntu.com/8459912/
[precise] stderr: http://paste.ubuntu.com/8459913/
[precise] NOTE: unable to execute tests, marked as failed
[precise] Destroying failed VM to reclaim resources
[precise] Forcing shutdown of VM...
[precise] Destroying VM and associated drives...
[precise] Running cleanup tasks for 'shell' provisioner...
[precise] Running cleanup tasks for 'shell' provisioner...
[trusty] Bringing VM 'up'
[trusty] Unable to 'up' VM!
[trusty] stdout: http://paste.ubuntu.com/8459950/
[trusty] stderr: http://paste.ubuntu.com/8459951/
[trusty] NOTE: unable to execute tests, marked as failed
[trusty] Destroying failed VM to reclaim resources
[trusty] Forcing shutdown of VM...
[trusty] Destroying VM and associated drives...
[trusty] Running cleanup tasks for 'shell' provisioner...
[trusty] Running cleanup tasks for 'shell' provisioner...

Revision history for this message
Daniel Manrique (roadmr) wrote :

OHH, since we're now doing tarmac tests using lxc, and checkbox-legacy wasn't updated for that, this doesn't work....

Revision history for this message
Daniel Manrique (roadmr) wrote :

OK, I fixed the tarmac tester, let's reapprove.

review: Approve

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'checkbox-old/scripts/network'
2--- checkbox-old/scripts/network 2014-03-14 17:36:52 +0000
3+++ checkbox-old/scripts/network 2014-09-04 15:28:37 +0000
4@@ -124,6 +124,9 @@
5
6 if percent < self.fail_threshold:
7 logging.warn("Poor network performance detected")
8+ logging.warn(" Transfer speed: {} {}b/s".format(
9+ throughput, units))
10+ logging.warn(" %3.2f%% of " % percent, end="")
11 return 30
12
13 logging.debug("Passed benchmark")

Subscribers

People subscribed via source and target branches