Merge lp:~bladernr/checkbox/network-fail-value-opton into lp:checkbox

Proposed by Jeff Lane 
Status: Merged
Approved by: Daniel Manrique
Approved revision: 2670
Merged at revision: 2670
Proposed branch: lp:~bladernr/checkbox/network-fail-value-opton
Merge into: lp:checkbox
Diff against target: 70 lines (+14/-3)
3 files modified
checkbox-old/CHANGELOG (+3/-0)
checkbox-old/jobs/ethernet.txt.in (+1/-1)
checkbox-old/scripts/network (+10/-2)
To merge this branch: bzr merge lp:~bladernr/checkbox/network-fail-value-opton
Reviewer Review Type Date Requested Status
Daniel Manrique (community) Approve
Jeff Lane  Needs Resubmitting
Review via email: mp+203372@code.launchpad.net

Description of the change

This addresses the issue of bumping the fail rate to 80% for crappy client systems that can't seem to do better than 40% ;-)

Make fail threshold an option and sets the default to 40% and changes the server multi-nic tests to fail at 80% instead (well, anything that runs ethernet/multi-nic will fail at 80%)

This is a follow on to a previous checkbox merge that changed fail rate without making it optional and the optional route is at request of roadmr.

To post a comment you must log in.
2614. By Zygmunt Krynicki

"automatic merge by tarmac [r=roadmr][bug=][author=zkrynicki]"

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

Jeff is aware of a couple of needed fixes, just marking this as needs fixing to avoid review duplication, details:

11:56 < roadmr> bladernr: :( changelog conflict :(
11:57 < roadmr> bladernr: would you be opposed to changing fail_speed to
                fail_threshold? fail_speed suggests, well, a speed value, so
                it's a bit confusing (what are the units? why is the default 40
                of those units? and so on)

review: Needs Fixing
Revision history for this message
Zygmunt Krynicki (zyga) wrote :
Download full text (4.3 KiB)

Conflict, please fix

On Mon, Jan 27, 2014 at 5:55 PM, Jeff Lane <email address hidden>wrote:

> Jeff Lane has proposed merging
> lp:~bladernr/checkbox/network-fail-value-opton into lp:checkbox.
>
> Requested reviews:
> Checkbox Developers (checkbox-dev)
> Related bugs:
> Bug #1267918 in checkbox: "multi-nic iperf test should fail at <80%"
> https://bugs.launchpad.net/checkbox/+bug/1267918
>
> For more details, see:
>
> https://code.launchpad.net/~bladernr/checkbox/network-fail-value-opton/+merge/203372
>
> This addresses the issue of bumping the fail rate to 80% for crappy client
> systems that can't seem to do better than 40% ;-)
>
> Make fail threshold an option and sets the default to 40% and changes the
> server multi-nic tests to fail at 80% instead (well, anything that runs
> ethernet/multi-nic will fail at 80%)
>
> This is a follow on to a previous checkbox merge that changed fail rate
> without making it optional and the optional route is at request of roadmr.
> --
>
> https://code.launchpad.net/~bladernr/checkbox/network-fail-value-opton/+merge/203372
> Your team Checkbox Developers is requested to review the proposed merge of
> lp:~bladernr/checkbox/network-fail-value-opton into lp:checkbox.
>
> === modified file 'checkbox-old/debian/changelog'
> --- checkbox-old/debian/changelog 2014-01-21 22:17:57 +0000
> +++ checkbox-old/debian/changelog 2014-01-27 16:55:02 +0000
> @@ -11,12 +11,20 @@
> [Daniel Manrique]
> * jobs/graphics.txt.in: Use grep to work around bad exit codes from
> unity_support_test (LP: #1212618)
> +<<<<<<< TREE
> * Added tests for 802.11ac networking, including environment variables
> for
> their settings, and updated whitelists accordingly.
> * scripts/sleep_test_log_check: Rewrote the parser logic to avoid
> missing
> failures due to file format changes (LP: #1201667)
> * parsers/udevadm: Added additional heuristics for video devices with
> PCI subclass "2", like newer NVidia GPUs (LP: #1270139)
> +=======
> +
> + [Jeff Lane]
> + * scripts/network: fail threshold for iperf is now an option and
> defaults to
> + 40%
> + * jobs/ethernet.txt.in: modified multinic to fail on 80% threshold
> +>>>>>>> MERGE-SOURCE
>
> -- Brendan Donegan <email address hidden> Fri, 10 Jan 2014
> 11:02:47 +0000
>
>
> === modified file 'checkbox-old/jobs/ethernet.txt.in'
> --- checkbox-old/jobs/ethernet.txt.in 2014-01-24 18:13:09 +0000
> +++ checkbox-old/jobs/ethernet.txt.in 2014-01-27 16:55:02 +0000
> @@ -45,7 +45,7 @@
> package.name == 'nmap'
> device.path == "$1"
> user: root
> - command: network test -i $2 -t iperf
> + command: network test -i $2 -t iperf --fail-speed 80
> estimated_duration: 330.0
> description:
> Testing for NIC $2
>
> === modified file 'checkbox-old/scripts/network'
> --- checkbox-old/scripts/network 2014-01-15 22:21:57 +0000
> +++ checkbox-old/scripts/network 2014-01-27 16:55:02 +0000
> @@ -53,6 +53,7 @@
> self,
> interface,
> target,
> + fail_speed,
> protocol="tcp",
> mbytes="1024M"):
>
> @@ -112,7 +113,7 @@
> print(...

Read more...

2615. By Zygmunt Krynicki

"automatic merge by tarmac [r=roadmr][bug=1236377,1236505,1243610,1254189,1254191,1255066,1255085,1265748,1267794,1273100][author=zkrynicki]"

2616. By Zygmunt Krynicki

"automatic merge by tarmac [r=roadmr][bug=][author=zkrynicki]"

2617. By Sylvain Pineau

"automatic merge by tarmac [r=sylvain-pineau,roadmr][bug=][author=sylvain-pineau]"

2618. By Zygmunt Krynicki

"automatic merge by tarmac [r=roadmr][bug=][author=zkrynicki]"

2619. By Zygmunt Krynicki

"automatic merge by tarmac [r=zkrynicki][bug=][author=zkrynicki]"

2620. By Daniel Manrique

"checkbox/scripts/audio_settings: Place/read active_profiles in an absolute, known-writable location. [r=zkrynicki][bug=1271707][author=roadmr]"

2621. By Zygmunt Krynicki

Incremented changelog

2622. By Sylvain Pineau

"automatic merge by tarmac [r=roadmr][bug=1273497][author=sylvain-pineau]"

2623. By Brendan Donegan

"automatic merge by tarmac [r=zkrynicki][bug=][author=brendan-donegan]"

2624. By Sylvain Pineau

"automatic merge by tarmac [r=sylvain-pineau][bug=1274152][author=sylvain-pineau]"

2625. By Zygmunt Krynicki

"automatic merge by tarmac [r=brendan-donegan][bug=][author=zkrynicki]"

2626. By Sylvain Pineau

"automatic merge by tarmac [r=sylvain-pineau][bug=][author=brendan-donegan]"

2627. By Zygmunt Krynicki

"automatic merge by tarmac [r=zkrynicki][bug=1236377,1236505,1243610,1254189,1254191,1255066,1255085,1265748,1267794,1273100][author=zkrynicki]"

2628. By Zygmunt Krynicki

"automatic merge by tarmac [r=zkrynicki][bug=][author=zkrynicki]"

2629. By Zygmunt Krynicki

"automatic merge by tarmac [r=brendan-donegan][bug=][author=zkrynicki]"

2630. By Zygmunt Krynicki

"automatic merge by tarmac [r=brendan-donegan][bug=][author=zkrynicki]"

2631. By Daniel Manrique

"scripts/network and scripts/virtualization can now be configured via environment variables, in addition to the existing config file mechanism and command-line parameters.

This is most useful with canonical-certification-server or other plainbox-based testing tools (i.e. in the absence of checkbox proper). In this case all configuration is centralized in the plainbox config file (/etc/xdg/plainbox.conf). These variables can be defined in the [environment] section with the familiar config file syntax.

For virtualization, the KVM_IMAGE and KVM_TIMEOUT variables are picked up.

For network, it's TEST_TARGET_FTP, TEST_TARGET_IPERF, TEST_USER and TEST_PASS. Separate variables are used for iperf and ftp to mimic the existing config file behavior (but note that a single --target command-line parameter is used in all cases).

Across the board, the preference order is command line -> environment -> config file. [r=zkrynicki][bug=1260507][author=roadmr]"

2632. By Zygmunt Krynicki

"automatic merge by tarmac [r=roadmr][bug=1236377,1236505,1243610,1254189,1254191,1255066,1255085,1265748,1267794,1273100][author=zkrynicki]"

2633. By Zygmunt Krynicki

"automatic merge by tarmac [r=roadmr][bug=1213893][author=zkrynicki]"

2634. By Sylvain Pineau

"automatic merge by tarmac [r=zkrynicki][bug=][author=sylvain-pineau]"

2635. By Launchpad Translations on behalf of checkbox-dev

Launchpad automatic translations update.

2636. By Zygmunt Krynicki

"automatic merge by tarmac [r=sylvain-pineau,apulido][bug=][author=zkrynicki]"

2637. By Zygmunt Krynicki

"automatic merge by tarmac [r=roadmr][bug=][author=zkrynicki]"

2638. By Zygmunt Krynicki

"automatic merge by tarmac [r=roadmr][bug=][author=zkrynicki]"

2639. By Brendan Donegan

"automatic merge by tarmac [r=][bug=][author=brendan-donegan]"

2640. By Zygmunt Krynicki

"automatic merge by tarmac [r=zkrynicki][bug=][author=zkrynicki]"

2641. By Daniel Manrique

"Removes the packaging directory from checkbox-old/debian. Changelog is relocated to checkbox-old/CHANGELOG for historical and procedural reasons.

 [r=zkrynicki][bug=][author=roadmr]"

2642. By Daniel Manrique

"Relocate the man page from checkbox.1 to checkbox-invocation.1. [r=zkrynicki][bug=][author=roadmr]"

2643. By Sylvain Pineau

"automatic merge by tarmac [r=zkrynicki][bug=][author=sylvain-pineau]"

2644. By Zygmunt Krynicki

"automatic merge by tarmac [r=roadmr][bug=][author=zkrynicki]"

2645. By Brendan Donegan

"automatic merge by tarmac [r=roadmr,zkrynicki][bug=][author=brendan-donegan]"

2646. By Daniel Manrique

"Fixes incorrect determination of whether to download a cloud image.

If no image is specified, the script downloads one. With recent changes, the "no image specified" value changed from None to maybe an empty string. Just using "not self.image" instead of the more strict "self.image is None" works. [r=zkrynicki][bug=][author=roadmr]"

2647. By Zygmunt Krynicki

"automatic merge by tarmac [r=sylvain-pineau][bug=1236377,1236505,1243610,1254189,1254191,1255066,1255085,1265748,1267794,1273100][author=zkrynicki]"

2648. By Sylvain Pineau

"automatic merge by tarmac [r=sylvain-pineau][bug=][author=zkrynicki]"

2649. By Daniel Manrique

"jobs/disk.txt.in: Remove max_diskspace* tests [r=zkrynicki][bug=][author=roadmr]"

2650. By Brendan Donegan

"automatic merge by tarmac [r=sylvain-pineau][bug=][author=brendan-donegan]"

2651. By Brendan Donegan

"automatic merge by tarmac [r=zkrynicki][bug=1270286][author=brendan-donegan]"

2652. By Brendan Donegan

"automatic merge by tarmac [r=zkrynicki][bug=][author=brendan-donegan]"

2653. By Ara Pulido

"automatic merge by tarmac [r=roadmr][bug=][author=apulido]"

2654. By Zygmunt Krynicki

"automatic merge by tarmac [r=roadmr][bug=][author=zkrynicki]"

2655. By Brendan Donegan

"automatic merge by tarmac [r=zkrynicki][bug=][author=brendan-donegan]"

2656. By Sylvain Pineau

"automatic merge by tarmac [r=zkrynicki][bug=][author=sylvain-pineau]"

2657. By Sylvain Pineau

"automatic merge by tarmac [r=zkrynicki][bug=][author=sylvain-pineau]"

2658. By Sylvain Pineau

"automatic merge by tarmac [r=zkrynicki][bug=][author=sylvain-pineau]"

2659. By Zygmunt Krynicki

"automatic merge by tarmac [r=zkrynicki][bug=][author=checkbox-dev]"

2660. By Zygmunt Krynicki

"automatic merge by tarmac [r=roadmr][bug=][author=zkrynicki]"

2661. By Launchpad Translations on behalf of checkbox-dev

Launchpad automatic translations update.

2662. By Zygmunt Krynicki

"automatic merge by tarmac [r=brendan-donegan][bug=][author=zkrynicki]"

2663. By Jeff Lane 

"automatic merge by tarmac [r=roadmr][bug=][author=bladernr]"

2664. By Zygmunt Krynicki

"automatic merge by tarmac [r=roadmr][bug=][author=zkrynicki]"

2665. By Po-Hsu Lin

"automatic merge by tarmac [r=zkrynicki][bug=1279222][author=cypressyew]"

2666. By Brendan Donegan

"automatic merge by tarmac [r=zkrynicki][bug=][author=brendan-donegan]"

2667. By Brendan Donegan

"automatic merge by tarmac [r=roadmr][bug=][author=brendan-donegan]"

2668. By Sylvain Pineau

"automatic merge by tarmac [r=zkrynicki][bug=][author=sylvain-pineau]"

2669. By Jeff Lane 

fixed changelog conflict and also changed fail_speed to fail_threshold to be more clear about the intention

2670. By Jeff Lane 

missed the fail-speed reference in the job description for multi-nic

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

Fixed the changelog conflict (and it'll probably happen yet again depending on when this lands). Also per my discussion with Daniel, changed fail_speed to fail_threshold which I agree is more clear about the intent of the opton.

Also just pushed a second update beause I missed a reference to fail-speed in the multi-nic job description originally.

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

Thanks! Looks OK, let's merge this.

review: Approve

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'checkbox-old/CHANGELOG'
2--- checkbox-old/CHANGELOG 2014-02-12 10:38:09 +0000
3+++ checkbox-old/CHANGELOG 2014-02-13 18:51:18 +0000
4@@ -5,6 +5,9 @@
5 12.04.4 (LP: #1279222)
6
7 [ Jeff Lane ]
8+ * scripts/network: fail threshold for iperf is now an option and defaults to
9+ 40%
10+ * jobs/ethernet.txt.in: modified multinic to fail on 80% threshold
11 * Removed server-cert.whitelist. Forked server-selftest.whitelist to have a
12 new 14.04 only version for Trusty testing. This is the foundation for 14.04
13 server cert changes.
14
15=== modified file 'checkbox-old/jobs/ethernet.txt.in'
16--- checkbox-old/jobs/ethernet.txt.in 2014-01-24 18:13:09 +0000
17+++ checkbox-old/jobs/ethernet.txt.in 2014-02-13 18:51:18 +0000
18@@ -45,7 +45,7 @@
19 package.name == 'nmap'
20 device.path == "$1"
21 user: root
22- command: network test -i $2 -t iperf
23+ command: network test -i $2 -t iperf --fail-threshold 80
24 estimated_duration: 330.0
25 description:
26 Testing for NIC $2
27
28=== modified file 'checkbox-old/scripts/network'
29--- checkbox-old/scripts/network 2014-01-30 14:27:28 +0000
30+++ checkbox-old/scripts/network 2014-02-13 18:51:18 +0000
31@@ -54,6 +54,7 @@
32 self,
33 interface,
34 target,
35+ fail_threshold,
36 protocol="tcp",
37 mbytes="1024M"):
38
39@@ -113,7 +114,7 @@
40 print("%3.2f%% of " % percent, end="")
41 print("theoretical max %sMb/s\n" % int(self.iface.max_speed))
42
43- if percent < 80:
44+ if percent < self.fail_threshold:
45 logging.warn("Poor network performance detected")
46 return 30
47
48@@ -482,7 +483,8 @@
49 result = ftp_benchmark.run()
50
51 elif args.test_type.lower() == "iperf":
52- iperf_benchmark = IPerfPerformanceTest(args.interface, test_target)
53+ iperf_benchmark = IPerfPerformanceTest(args.interface, test_target,
54+ args.fail_threshold)
55 result = iperf_benchmark.run()
56
57 elif args.test_type.lower() == "stress":
58@@ -598,6 +600,12 @@
59 '--config', type=str,
60 default="/etc/checkbox.d/network.cfg",
61 help="Supply config file for target/host network parameters")
62+ test_parser.add_argument(
63+ '--fail-threshold', type=int,
64+ default=40,
65+ help=("IPERF Test ONLY. Set the failure threshold (Percent of maximum "
66+ "theoretical bandwidth) as a number like 80. (Default is "
67+ "%(default)s)"))
68
69 # Sub info options
70 info_parser.add_argument(

Subscribers

People subscribed via source and target branches