Merge lp:~sylvain-pineau/checkbox/fwts_test_split into lp:checkbox

Proposed by Sylvain Pineau
Status: Merged
Approved by: Zygmunt Krynicki
Approved revision: 3929
Merged at revision: 3927
Proposed branch: lp:~sylvain-pineau/checkbox/fwts_test_split
Merge into: lp:checkbox
Diff against target: 129 lines (+31/-17)
3 files modified
providers/plainbox-provider-certification-client/units/client-cert-14-04-3.pxu (+1/-0)
providers/plainbox-provider-checkbox/bin/fwts_test (+20/-15)
providers/plainbox-provider-checkbox/jobs/firmware.txt.in (+10/-2)
To merge this branch: bzr merge lp:~sylvain-pineau/checkbox/fwts_test_split
Reviewer Review Type Date Requested Status
Zygmunt Krynicki (community) Approve
Sylvain Pineau (community) Needs Resubmitting
Review via email: mp+266331@code.launchpad.net

Description of the change

This MR updates the fwts_tests based on HWE recommendations for certification.

The major change is the use of the new option --acpitests, selecting automatically all ACPI related tests.

To ease log review, the logs from firmware/fwts_desktop_diagnosis are split into attachments:

    - firmware/fwts_desktop_diagnosis_results.log
    - firmware/fwts_desktop_diagnosis_results_hwe.log

Again following the HWE recommendation. S3 and S4 were also part of the HWE selection but already log
in dedicated files.

To post a comment you must log in.
3922. By Maciej Kisielewski

"automatic merge of lp:~kissiel/checkbox/error-logging-in-cbt-fixes/ by tarmac [r=zyga][bug=][author=kissiel]"

3923. By Christopher Lee

"Remove question comment from Transports (certificate and launchpad) [r=zyga][bug=][author=veebers]"

3924. By Christopher Lee

"Assign to settings once to avoid conditional memory leak [r=sylvain-pineau][bug=][author=veebers]"

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

Just one small thing

3925. By Sylvain Pineau

providers:checkbox:fwts_test: Update test selection based on HWE recommendations

Select all ACPI test with --acpitests, removing doubled values from the initial
list. The --acpitests is exposed as just acpitests with the -l option as some
jobs used the --list output as variable name to create new jobs.
Remove the deprecated test hpet_check.
Add dmicheck and uefibootpath based on recommendations.

3926. By Sylvain Pineau

providers:checkbox:fwts_test: Save logs meant for HWE analysis into a different file

The selection is mtrr, virt, apicedge, klog, oops and uefibootpath.
S3 and S4 are already saved in dedicated logs.

3927. By Sylvain Pineau

providers:checkbox:firmware.txt.in: Remove fwts_desktop_diagnosis selection

The tests to run are defined in fwts_test.
By default all cert test are selected.

3928. By Sylvain Pineau

providers:checkbox:firmware.txt.in: Add the fwts logs for HWE.

3929. By Sylvain Pineau

providers:certification-client: Add the new fwts log for HWE to 14.04.3 testplan

Revision history for this message
Sylvain Pineau (sylvain-pineau) wrote :

I've removed the unneeded braces, reposting

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

This looks good, thanks, +1

review: Approve

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'providers/plainbox-provider-certification-client/units/client-cert-14-04-3.pxu'
2--- providers/plainbox-provider-certification-client/units/client-cert-14-04-3.pxu 2015-07-22 12:46:21 +0000
3+++ providers/plainbox-provider-certification-client/units/client-cert-14-04-3.pxu 2015-07-30 12:20:04 +0000
4@@ -367,6 +367,7 @@
5 firmware/fwts_logs
6 firmware/fwts_desktop_diagnosis
7 firmware/fwts_desktop_diagnosis_results.log
8+ firmware/fwts_desktop_diagnosis_results_hwe.log
9 firmware/fwts_wakealarm.* certification-status=blocker
10 firmware/fwts_uefirtvariable.* certification-status=blocker
11 firmware/no_ACPI_REV_interface certification-status=blocker
12
13=== modified file 'providers/plainbox-provider-checkbox/bin/fwts_test'
14--- providers/plainbox-provider-checkbox/bin/fwts_test 2014-10-07 08:47:52 +0000
15+++ providers/plainbox-provider-checkbox/bin/fwts_test 2015-07-30 12:20:04 +0000
16@@ -19,38 +19,31 @@
17 'brightness',
18 'lid']
19 # These are usually performed on normal certification runs
20-CERT_TESTS = ['acpidump',
21+CERT_TESTS = ['acpitests',
22+ 'acpidump',
23 'acpitables',
24 'apicedge',
25 'apicinstance',
26 'aspm',
27 'bios32',
28- 'checksum',
29- 'cstates',
30- 'dmar',
31+ 'dmicheck',
32 'ebda',
33- 'fadt',
34- 'hpet_check',
35 'klog',
36- 'mcfg',
37- 'method',
38 'mpcheck',
39 'msr',
40 'mtrr',
41 'nx',
42 'oops',
43+ 'uefibootpath',
44 'uefirtvariable',
45 'version',
46- 'virt',
47- 'wmi']
48+ 'virt']
49 # These are advanced tests that shouldn't affect certification status
50-NON_CERT_TESTS = ['acpiinfo',
51- 'bios_info',
52+NON_CERT_TESTS = ['bios_info',
53 'cmosdump',
54 'crs',
55 'crsdump',
56 'csm',
57- 'dmicheck',
58 'ebdadump',
59 'fan',
60 'gpedump',
61@@ -62,7 +55,6 @@
62 'mpdump',
63 'os2gap',
64 'osilinux',
65- 'pcc',
66 'pciirq',
67 'plddump',
68 'pnp',
69@@ -77,6 +69,13 @@
70 ]
71 TESTS = sorted(CERT_TESTS + NON_CERT_TESTS)
72
73+# The following tests will record logs in a separate file for the HWE team
74+HWE_TESTS = ['mtrr',
75+ 'virt',
76+ 'apicedge',
77+ 'klog',
78+ 'oops',
79+ 'uefibootpath']
80
81 def get_sleep_times(start_marker, end_marker, sleep_time, resume_time):
82 logfile = '/var/log/syslog'
83@@ -380,8 +379,14 @@
84 results['sleep'] = 'FAILED_CRITICAL'
85 else:
86 for test in tests:
87+ # ACPI tests can now be run with --acpitests (fwts >= 15.07.00)
88+ log = args.log
89+ if test in HWE_TESTS:
90+ log = log.replace('.log', '_hwe.log')
91+ if test == 'acpitests':
92+ test = '--acpitests'
93 command = ('fwts -q --stdout-summary -r %s %s'
94- % (args.log, test))
95+ % (log, test))
96 results[test] = (Popen(command, stdout=PIPE, shell=True)
97 .communicate()[0].strip()).decode()
98
99
100=== modified file 'providers/plainbox-provider-checkbox/jobs/firmware.txt.in'
101--- providers/plainbox-provider-checkbox/jobs/firmware.txt.in 2015-07-16 21:25:01 +0000
102+++ providers/plainbox-provider-checkbox/jobs/firmware.txt.in 2015-07-30 12:20:04 +0000
103@@ -45,16 +45,24 @@
104 _summary: Run FWTS desktop-specific diagnosis tests.
105 environ: PLAINBOX_SESSION_SHARE
106 command:
107- fwts_test -l $PLAINBOX_SESSION_SHARE/fwts_desktop_diagnosis_results.log -t acpidump -t version -t acpitables -t apicinstance -t hpet_check -t mcfg -t method -t mpcheck -t msr -t mtrr -t apicedge -t klog
108+ fwts_test -l $PLAINBOX_SESSION_SHARE/fwts_desktop_diagnosis_results.log
109
110 plugin: attachment
111 estimated_duration: 0.5
112 id: firmware/fwts_desktop_diagnosis_results.log
113 command:
114- [ -e ${PLAINBOX_SESSION_SHARE}/fwts_desktop_diagnosis_results.log ] && gzip -c ${PLAINBOX_SESSION_SHARE}/fwts_desktop_diagnosis_results.log
115+ [ -e $PLAINBOX_SESSION_SHARE/fwts_desktop_diagnosis_results.log ] && gzip -c $PLAINBOX_SESSION_SHARE/fwts_desktop_diagnosis_results.log
116 _description: Attaches the FWTS desktop diagnosis results log to the submission
117 _summary: Attach FWTS desktop diagnosis log to submission
118
119+plugin: attachment
120+estimated_duration: 0.5
121+id: firmware/fwts_desktop_diagnosis_results_hwe.log
122+command:
123+ [ -e $PLAINBOX_SESSION_SHARE/fwts_desktop_diagnosis_results_hwe.log ] && gzip -c $PLAINBOX_SESSION_SHARE/fwts_desktop_diagnosis_results_hwe.log
124+_description: Attaches the FWTS desktop diagnosis results log to the submission (to HWE)
125+_summary: Attach FWTS desktop diagnosis log to submission (to HWE)
126+
127 plugin: shell
128 id: firmware/no_ACPI_REV_interface
129 _summary: No _REV interface in ACPI [DS]SDT tables

Subscribers

People subscribed via source and target branches