Merge ~sylvain-pineau/plainbox-provider-sru:more-nested-parts into plainbox-provider-sru:master

Proposed by Sylvain Pineau
Status: Merged
Approved by: Sylvain Pineau
Approved revision: 215f2d2ef892e8d35531c98797c5adf7fd0bee3d
Merged at revision: de62b7b5190268d832ad3e065be2ce7ecd031bbe
Proposed branch: ~sylvain-pineau/plainbox-provider-sru:more-nested-parts
Merge into: plainbox-provider-sru:master
Diff against target: 137 lines (+50/-53)
1 file modified
units/sru.pxu (+50/-53)
Reviewer Review Type Date Requested Status
Sylvain Pineau (community) Approve
Review via email: mp+381832@code.launchpad.net

Description of the change

Update the sru (desktop variant) test plan to rely more on nested parts when possible.

Reminder: Include jobs list is run **before** all nested parts !!

Since the previous version was including suspend_advanced_auto, nested parts assuming a fresh boot where running actually after suspend. This commit reorders everything.

Tested using list-bootstrap before and after to ensure no jobs got removed (only additions, mainly attachments).

old version: https://pastebin.ubuntu.com/p/sn4B7dwG4N/
new version: https://pastebin.ubuntu.com/p/rQGKWcJbTN/

Note: sort the previous listings before using diff.

To post a comment you must log in.
Revision history for this message
Sylvain Pineau (sylvain-pineau) wrote :

New test with sd and usb key plugged in:

https://pastebin.ubuntu.com/p/dx5H8W8CxQ/

Note the new templated tests:

com.canonical.certification::mediacard/storage-preinserted-disk/by-uuid/e7da8d1b-74d7-4007-9418-13013621fe6d

com.canonical.certification::usb/storage-preinserted-disk/by-uuid/2019-07-20-15-27-07-00
com.canonical.certification::usb/storage-preinserted-disk/by-uuid/044E-AC17

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

self-approved

review: Approve

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1diff --git a/units/sru.pxu b/units/sru.pxu
2index af31086..6c5ef30 100644
3--- a/units/sru.pxu
4+++ b/units/sru.pxu
5@@ -41,6 +41,27 @@ command: [ -f ${PLAINBOX_SESSION_SHARE}/screenshot_opencv_validation.jpg ] && ca
6 _description: Attaches the screenshot captured in graphics/screenshot_opencv_validation.
7 _summary: Attach the screenshot captured for the automatically validated screenshot test
8
9+id: after-suspend-sru
10+_name: All SRU Tests (Ubuntu Desktop) to run after suspend
11+unit: test plan
12+_description:
13+ After suspend SRU jobs
14+include:
15+ suspend/suspend-single-log-attach
16+ suspend/audio_after_suspend_auto
17+ suspend/network_resume_time_auto
18+ suspend/wifi_resume_time_auto
19+ suspend/usb_storage_preinserted_after_suspend
20+ suspend/record_playback_after_suspend_auto
21+ after-suspend-bluetooth4/beacon_eddystone_url_.*
22+ suspend/cpu_after_suspend_auto
23+ suspend/memory_after_suspend_auto
24+ suspend/gpu_lockup_after_suspend
25+ suspend/screenshot_after_suspend
26+ screenshot_after_suspend.jpg
27+ disk/disk_stress_ng_.*
28+ stress/cpu_stress_ng_test
29+
30 id: sru
31 _name: All SRU Tests (Ubuntu Desktop)
32 unit: test plan
33@@ -48,36 +69,14 @@ _description:
34 This test plan contains tests that are useful for validating a Stable
35 Release Update (SRU) on Ubuntu Certified systems. This test plan is not
36 recommended for, nor will it be accepted for self-testing purposes.
37-nested_part:
38- com.canonical.certification::pts
39- com.canonical.certification::stress-pm-graph
40- ethernet-automated
41- wireless-automated
42- usb-automated
43 include:
44+ # Following jobs all run first before the nested parts
45+ # Please keep it short and avoid jobs triggering suspend or reboots
46+ # Whenever possible prefer the use of nested parts instead
47 miscellanea/submission-resources
48- acpi_sleep_attachment
49- codecs_attachment
50- cpuinfo_attachment
51- dmesg_attachment
52- dmidecode_attachment
53- efi_attachment
54- lspci_attachment
55- meminfo_attachment
56- modprobe_attachment
57- modules_attachment
58+ info/systemd-analyze
59 net_if_management_attachment
60- sysctl_attachment
61- lsmod_attachment
62 audio/alsa_record_playback_automated
63- bluetooth/detect-output
64- camera/detect
65- camera/multiple-resolution-images_.*
66- cpu/scaling_test
67- cpu/scaling_test-log-attach
68- cpu/offlining_test
69- cpu/topology
70- disk/read_performance_.*
71 graphics/xorg-version
72 graphics/1_compiz_check_.*
73 graphics/xorg-failsafe
74@@ -87,38 +86,36 @@ include:
75 graphics/1_screenshot_fullscreen_video_.*
76 1_screenshot_fullscreen_video_.*.jpg
77 install/apt-get-gets-updates
78- mediacard/sd-preinserted
79- memory/info
80 miscellanea/dkms_build_validation
81+ miscellanea/fan_stress_reaction
82 networking/http
83 networking/gateway_ping
84- power-management/tickless_idle
85- power-management/rtc
86- power-management/fwts_wakealarm
87- power-management/fwts_wakealarm-log-attach
88- bluetooth4/beacon_eddystone_url_.*
89- miscellanea/fan_stress_reaction
90- suspend/audio_before_suspend
91- suspend/cpu_before_suspend
92- suspend/network_before_suspend
93- suspend/memory_before_suspend
94- suspend/suspend_advanced_auto
95- suspend/suspend-single-log-attach
96- suspend/audio_after_suspend_auto
97- suspend/network_resume_time_auto
98- suspend/wifi_resume_time_auto
99- suspend/usb_storage_preinserted_after_suspend
100- suspend/record_playback_after_suspend_auto
101- after-suspend-bluetooth4/beacon_eddystone_url_.*
102- suspend/cpu_after_suspend_auto
103- suspend/memory_after_suspend_auto
104+nested_part:
105+ info-attachment-cert-full
106+ bluetooth-cert-automated
107+ camera-cert-automated
108+ cpu-cert-automated
109+ disk-automated
110+ ethernet-automated
111+ mediacard-automated
112+ memory-automated
113+ power-management-precheck-cert-automated
114+ usb-automated
115+ wireless-automated
116+ before-suspend-reference-cert-automated
117+ suspend-tp
118+ after-suspend-sru
119 after-suspend-wireless-automated
120- suspend/gpu_lockup_after_suspend
121- suspend/screenshot_after_suspend
122- screenshot_after_suspend.jpg
123- disk/disk_stress_ng_.*
124- stress/cpu_stress_ng_test
125+ pts
126+ stress-pm-graph
127 bootstrap_include:
128 device
129 graphics_card
130 net_if_management
131+exclude:
132+ cpu/clocktest
133+ disk/stats_.*
134+ disk/storage_device_.*
135+ suspend/bluetooth_obex_send_before_suspend
136+ graphics/1_auto_switch_card_.*
137+ installer_debug.gz

Subscribers

People subscribed via source and target branches