Merge ~bladernr/plainbox-provider-checkbox:1865521-add-nvdimm-health-check into plainbox-provider-checkbox:master

Proposed by Jeff Lane 
Status: Merged
Approved by: Jeff Lane 
Approved revision: 137ed80dbafcf2020521be619c5f2110ee129755
Merged at revision: 68734fec65a7c1ab9e1cbfc1a2ba3d53c4ec0ef2
Proposed branch: ~bladernr/plainbox-provider-checkbox:1865521-add-nvdimm-health-check
Merge into: plainbox-provider-checkbox:master
Diff against target: 65 lines (+41/-0)
4 files modified
units/nvdimm/category.pxu (+3/-0)
units/nvdimm/jobs.pxu (+27/-0)
units/nvdimm/packaging.pxu (+4/-0)
units/nvdimm/test-plan.pxu (+7/-0)
Reviewer Review Type Date Requested Status
Jeff Lane  Approve
Devices Certification Bot Needs Fixing
Sylvain Pineau (community) Approve
Jonathan Cave (community) Approve
Review via email: mp+380100@code.launchpad.net

Commit message

Adds a new NVDIMM category and jobs for testing NVDIMMs

Description of the change

Adds a new NVDIMM category and jobs for testing NVDIMMs

To post a comment you must log in.
Revision history for this message
Jonathan Cave (jocave) wrote :

From what I can see the new package is only available in Eoan and later which will probably cause some packaging issues. Either a dummy package will need to be created in the ppa (and the test prevented from running on older releases) or the package backported.

Will mark as Needs Information as the above needs working out.

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

actually, I've already built/mirrored this for Bionic ;)

I'm also working on an actual SRU of the official build into Bionic from Eoan, but for now, the binaries do exist in both dev and stable PPAs.

Revision history for this message
Jonathan Cave (jocave) wrote :

Wonderful! I should have checked the ppa too, sorry for not doing that.

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

After a chat with Jonathan and Sylvain, the best way to ensure this doesn't break Xenial installs is to build a dummy package for ipmctl for Xenial so that the packaging metadata doesn't break Xenial installs.

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

I'll wait until that package is built and then I'll mark this as approve.

Revision history for this message
Sylvain Pineau (sylvain-pineau) wrote :
review: Approve
Revision history for this message
Jeff Lane  (bladernr) wrote :

Merci!

Revision history for this message
Devices Certification Bot (ce-certification-qa) wrote :

The merge was fine but running tests failed.

[xenial] [15:06:14] starting container
Device project added to xenial-testing
[bionic] [15:06:18] starting container
Device project added to bionic-testing
[xenial] [15:06:24] provisioning container
[bionic] [15:06:34] provisioning container
[xenial] [15:06:46] Starting tests...
[xenial] Found a test script: ./requirements/container-tests-provider-checkbox
[bionic] [15:06:50] Starting tests...
[bionic] Found a test script: ./requirements/container-tests-provider-checkbox
[bionic] [15:08:04] container-tests-provider-checkbox: FAIL
[xenial] [15:08:07] container-tests-provider-checkbox: FAIL
[bionic] output: https://paste.ubuntu.com/p/jCQpBZgWHS/
[bionic] [15:08:07] Fixing file permissions in source directory
[bionic] [15:08:07] Destroying container
[xenial] output: https://paste.ubuntu.com/p/gqdJdx9z9q/
[xenial] [15:08:10] Fixing file permissions in source directory
[xenial] [15:08:10] Destroying container

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

Trying again after applying corrections

review: Approve

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1diff --git a/units/nvdimm/category.pxu b/units/nvdimm/category.pxu
2new file mode 100644
3index 0000000..84d724e
4--- /dev/null
5+++ b/units/nvdimm/category.pxu
6@@ -0,0 +1,3 @@
7+unit: category
8+id: nvdimm
9+_name: NVDIMM device tests
10diff --git a/units/nvdimm/jobs.pxu b/units/nvdimm/jobs.pxu
11new file mode 100644
12index 0000000..6db1b66
13--- /dev/null
14+++ b/units/nvdimm/jobs.pxu
15@@ -0,0 +1,27 @@
16+plugin: shell
17+category_id: com.canonical.certification::nvdimm
18+id: nvdimm/info
19+estimated_duration: 1.0
20+user: root
21+requires:
22+ executable.name == "ipmctl"
23+ lsb.release >= "18.04"
24+command: ipmctl show -dimm
25+_summary:
26+ Verify that NVDIMMs are discovered
27+_description:
28+ This test will probe any installed NVDIMMs and list them and their capacities.
29+
30+plugin: shell
31+category_id: com.canonical.certification::nvdimm
32+id: nvdimm/health
33+estimated_duration: 1.0
34+user: root
35+requires:
36+ executable.name == "ipmctl"
37+ lsb.release >= "18.04"
38+command: ipmctl show -d CurrentValue,CurrentState -sensor Health
39+_summary:
40+ Report health state of installed NVDIMM devices
41+_description:
42+ This test will do a quick health check of installed NVDIMM devices.
43diff --git a/units/nvdimm/packaging.pxu b/units/nvdimm/packaging.pxu
44new file mode 100644
45index 0000000..fe9cfb2
46--- /dev/null
47+++ b/units/nvdimm/packaging.pxu
48@@ -0,0 +1,4 @@
49+# nvdimms require ipmctl for health check jobs
50+unit: packaging meta-data
51+os-id: debian
52+Depends: ipmctl
53diff --git a/units/nvdimm/test-plan.pxu b/units/nvdimm/test-plan.pxu
54new file mode 100644
55index 0000000..9951039
56--- /dev/null
57+++ b/units/nvdimm/test-plan.pxu
58@@ -0,0 +1,7 @@
59+id: nvdimm-full
60+unit: test plan
61+_name: NVDIM Specific Tests
62+_description: NVDIMM related tests
63+include:
64+ nvidmm/info
65+ nvdimm/health

Subscribers

People subscribed via source and target branches