Merge ~fourdollars/plainbox-provider-checkbox:master into plainbox-provider-checkbox:master

Proposed by Shih-Yuan Lee
Status: Merged
Approved by: Sylvain Pineau
Approved revision: 42ab4a05a6ec7c6d371bf9075f4ca6baaf8931c1
Merged at revision: f27d3bec726b6d5626818dff6ed64e2fc7009848
Proposed branch: ~fourdollars/plainbox-provider-checkbox:master
Merge into: plainbox-provider-checkbox:master
Diff against target: 38 lines (+14/-0)
3 files modified
units/miscellanea/jobs.pxu (+10/-0)
units/miscellanea/packaging.pxu (+3/-0)
units/miscellanea/test-plan.pxu (+1/-0)
Reviewer Review Type Date Requested Status
Alex Tu (community) Needs Information
Sylvain Pineau Approve
Review via email: mp+385732@code.launchpad.net
To post a comment you must log in.
Revision history for this message
Jonathan Cave (jocave) wrote :

The job looks good to me, thanks! Two comments:

1) A very minor point, but it looks nice if the summary first word is capitalised s/check/Check/
2) Your commit message contains links to trello boards which might be considered an internal tool and so possibly not all that suitable for linking in this public project.

Revision history for this message
Shih-Yuan Lee (fourdollars) wrote :

I have revised the commit.
Please help to review it again. Thx.

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

Job looks good to me too and indeed it does not take too long to run so it could be a good candidate to run as part of:

https://git.launchpad.net/plainbox-provider-checkbox/tree/units/miscellanea/test-plan.pxu#n21

Moreover debsums is not listed in the LTS manifests, so please create the following packaging meta data unit to add the dependency (in a units/miscellanea/packaging.pxu):

unit: packaging meta-data
os-id: debian
Depends: debsums

review: Needs Fixing
Revision history for this message
Shih-Yuan Lee (fourdollars) wrote :

Submitted more commits.
Please help to review it again. Thx.

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

LGTM, +1

review: Approve
Revision history for this message
Alex Tu (alextu) wrote :

@ sylvain-pineau and FourDollars

Is this the better category that we can add test cases for environment checking? e.g. debsum .. etc ? https://git.launchpad.net/plainbox-provider-checkbox/tree/units/info

I'm a bit confused on units/info and units/miscellanea

review: Needs Information

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1diff --git a/units/miscellanea/jobs.pxu b/units/miscellanea/jobs.pxu
2index 95d781e..59a66b4 100644
3--- a/units/miscellanea/jobs.pxu
4+++ b/units/miscellanea/jobs.pxu
5@@ -460,3 +460,13 @@ id: miscellanea/fan_stress_reaction
6 command: fan_reaction_test.py
7 _summary: Check if system fans react to CPU load
8 _description: Check if system fans react to CPU load
9+
10+plugin: shell
11+category_id: com.canonical.plainbox::miscellanea
12+estimated_duration: 60
13+id: miscellanea/debsums
14+user: root
15+requires: package.name == 'debsums'
16+command: debsums -c
17+_summary: Check the MD5 sums of installed Debian packages
18+_description: Verify installed Debian package files against MD5 checksum lists from /var/lib/dpkg/info/*.md5sums.
19diff --git a/units/miscellanea/packaging.pxu b/units/miscellanea/packaging.pxu
20new file mode 100644
21index 0000000..8c6cc4a
22--- /dev/null
23+++ b/units/miscellanea/packaging.pxu
24@@ -0,0 +1,3 @@
25+unit: packaging meta-data
26+os-id: debian
27+Depends: debsums
28diff --git a/units/miscellanea/test-plan.pxu b/units/miscellanea/test-plan.pxu
29index 5b23880..40b4d5f 100644
30--- a/units/miscellanea/test-plan.pxu
31+++ b/units/miscellanea/test-plan.pxu
32@@ -33,6 +33,7 @@ include:
33 miscellanea/oops certification-status=blocker
34 miscellanea/oops_results.log
35 miscellanea/fan_stress_reaction
36+ miscellanea/debsums
37 bootstrap_include:
38 fwts
39

Subscribers

People subscribed via source and target branches