Merge ~rickwu4444/plainbox-provider-checkbox:add-fw-diagnosis into plainbox-provider-checkbox:master

Proposed by Rick Wu
Status: Merged
Approved by: Rick Wu
Approved revision: d828c49630655d1cc957141ca63622d17bd0258a
Merged at revision: f667217098b4322d10fba3d5f66ad8f50110a87f
Proposed branch: ~rickwu4444/plainbox-provider-checkbox:add-fw-diagnosis
Merge into: plainbox-provider-checkbox:master
Diff against target: 35 lines (+27/-0)
1 file modified
units/firmware/test-plan.pxu (+27/-0)
Reviewer Review Type Date Requested Status
Sylvain Pineau Approve
Rick Wu Needs Resubmitting
Jonathan Cave (community) Needs Information
Kristin Chuang (community) Approve
Vic Liu Approve
Review via email: mp+396888@code.launchpad.net

Commit message

Add fwts diagnosis test plan to IOT

Description of the change

Add fwts diagnosis test to IOT due to follow:

1. Based on the UC coverage guide[1], fwts is a part of the cert whitelist and should be added into the test scope.

2. There are 26 out 42 projects[2] were use amd64 cpu. It means over half of projects can do fwts. In the other hand, we have more and more upcoming projects especially we like to work with Intel, it may be a good timing to add this kinds of test for iot.

[1] http://certification-static.canonical.com/docs/UC18Coverage.pdf
[2] https://sites.google.com/canonical.com/ceqa-portal/projects/iot-projects?authuser=0

To post a comment you must log in.
Revision history for this message
Vic Liu (zongminl) wrote :

I found the plan name firmware-ubuntucore a bit ambiguous, I'd like to propose to have:

id: iot-firmware-full
nested_part:
    iot-firmware-automated
    iot-firmware-manual

id: iot-firmware-automated
nested_part:
    iot-fwts

id:iot-firmware-manual

id: iot-fwts
nested_part:
    firmware/fwts_desktop_diagnosis
    firmware/fwts_desktop_diagnosis_results.log.gz

review: Needs Fixing
Revision history for this message
Rick Wu (rickwu4444) wrote :

Fixed!
1.add iot-fwts plan for fwts diagnosis test
2.add iot-firmware and nested iot-fwts into it.

Revision history for this message
Rick Wu (rickwu4444) wrote :

> I found the plan name firmware-ubuntucore a bit ambiguous, I'd like to propose
> to have:
>
> id: iot-firmware-full
> nested_part:
> iot-firmware-automated
> iot-firmware-manual
>
> id: iot-firmware-automated
> nested_part:
> iot-fwts
>
> id:iot-firmware-manual
>
> id: iot-fwts

> nested_part:
> firmware/fwts_desktop_diagnosis
> firmware/fwts_desktop_diagnosis_results.log.gz

review: Needs Resubmitting
Revision history for this message
Rick Wu (rickwu4444) wrote :

> > I found the plan name firmware-ubuntucore a bit ambiguous, I'd like to
> propose
> > to have:
> >
> > id: iot-firmware-full
> > nested_part:
> > iot-firmware-automated
> > iot-firmware-manual
> >
> > id: iot-firmware-automated
> > nested_part:
> > iot-fwts
> >
> > id:iot-firmware-manual
> >
> > id: iot-fwts
>
> > nested_part:
> > firmware/fwts_desktop_diagnosis
> > firmware/fwts_desktop_diagnosis_results.log.gz

Fixed!
1.add iot-fwts plan for fwts diagnosis test
2.add iot-firmware and nested iot-fwts into it.

Revision history for this message
Vic Liu (zongminl) wrote :

LGTM, +1

review: Approve
Revision history for this message
Kristin Chuang (kristinchuang) wrote :

+1

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

I don't follow why there is two sets of test plans one called iot-fwts-* and one called iot-firmware-*

review: Needs Information
Revision history for this message
Maciej Kisielewski (kissiel) wrote :

Looks like the MR is stale, either requires fix or an answer. I'm marking it as "Work in progress".

Revision history for this message
Rick Wu (rickwu4444) wrote :

> I don't follow why there is two sets of test plans one called iot-fwts-* and
> one called iot-firmware-*

Hi @Jonathan,
Sorry for late reply.
We'd like to make iot-firmware test more modularization and in case there are future tests that go into this group but is not using fwts. Therefore, we separate into iot-fwts-* and iot-firmware-*.

Revision history for this message
Maciej Kisielewski (kissiel) wrote :

I think the split could be done once the need arises. Then we'll have a clearer view on what's needed and how to split and name things. For now I'll keep it simple.

Revision history for this message
Maciej Kisielewski (kissiel) wrote :

> I think the split could be done once the need arises. Then we'll have a
> clearer view on what's needed and how to split and name things. For now I'll
> keep it simple.

s/I'll/I'd/

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

I think running firmware/fwts_desktop_diagnosis which was originally targeting amd64/desktop iso will lead to more questions in the context of iot. worth noting that on arm64, the compatible set of tests is really restricted/minimal.

I'm questioning here the benefit of adding fwts to iot test plans

review: Needs Information
Revision history for this message
Rick Wu (rickwu4444) wrote :

> I think running firmware/fwts_desktop_diagnosis which was originally targeting
> amd64/desktop iso will lead to more questions in the context of iot. worth
> noting that on arm64, the compatible set of tests is really
> restricted/minimal.
>
> I'm questioning here the benefit of adding fwts to iot test plans

Hi @Sylvain,
If you please looks into this site[1] which is record our iot project since 2016. There are 26 out 42 projects were use amd64 cpu. It means over half projects can do fwts. In the other hand, we have more and more upcoming projects especially we like to work with Intel, it may be a good timing to add this kinds of test for iot.
[1] https://sites.google.com/canonical.com/ceqa-portal/projects/iot-projects?authuser=0

Revision history for this message
Rick Wu (rickwu4444) wrote :

> I think the split could be done once the need arises. Then we'll have a
> clearer view on what's needed and how to split and name things. For now I'll
> keep it simple.

According to @Maciej's suggestion, leave only iot-fwts to keep it simple

review: Needs Resubmitting
Revision history for this message
Rick Wu (rickwu4444) wrote :

> > I think running firmware/fwts_desktop_diagnosis which was originally
> targeting
> > amd64/desktop iso will lead to more questions in the context of iot. worth
> > noting that on arm64, the compatible set of tests is really
> > restricted/minimal.
> >
> > I'm questioning here the benefit of adding fwts to iot test plans
>
> Hi @Sylvain,
> If you please looks into this site[1] which is record our iot project since
> 2016. There are 26 out 42 projects were use amd64 cpu. It means over half
> projects can do fwts. In the other hand, we have more and more upcoming
> projects especially we like to work with Intel, it may be a good timing to add
> this kinds of test for iot.
> [1] https://sites.google.com/canonical.com/ceqa-portal/projects/iot-
> projects?authuser=0

And also based on the UC coverage guide[1], fwts is a part of the cert whitelist and should be added into the test scope.
[1] http://certification-static.canonical.com/docs/UC18Coverage.pdf

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

@Rick the indication for this to be reviewed again should be to set the top status back to Needs Review. This is not what a comment with "review: Resubmit" is for.

Before you do could you change the commit message to meet the recommendations in the Checkbox Contribution guide.

Thanks

Revision history for this message
Rick Wu (rickwu4444) wrote :

> @Rick the indication for this to be reviewed again should be to set the top
> status back to Needs Review. This is not what a comment with "review:
> Resubmit" is for.
>
> Before you do could you change the commit message to meet the recommendations
> in the Checkbox Contribution guide.
>
> Thanks

@Jonathan, Many thanks for reminding. :)

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

For me this specific MR is ok to land - the question remaining is Sylvain's about whether these jobs should be run on IoT devices.

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

Thanks for the amd64 stats, make senses to bring such test plan to iot.

review: Approve

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1diff --git a/units/firmware/test-plan.pxu b/units/firmware/test-plan.pxu
2index 1765ced..7db724d 100644
3--- a/units/firmware/test-plan.pxu
4+++ b/units/firmware/test-plan.pxu
5@@ -36,3 +36,30 @@ include:
6 firmware/tcglog-required-algs-sha256
7 firmware/tcglog-require-pe-image-digests
8 firmware/tcglog-dump-attachment
9+
10+
11+id: iot-fwts-full
12+unit: test plan
13+_name: Test fwts diagnosis with iot project
14+_description: Test fwts diagnosis with iot project
15+include:
16+nested_part:
17+ iot-fwts-manual
18+ iot-fwts-automated
19+
20+
21+id: iot-fwts-manual
22+unit: test plan
23+_name: Test fwts diagnosis with iot project (manual)
24+_description: Test fwts diagnosis with project (manual)
25+include:
26+
27+
28+id: iot-fwts-automated
29+unit: test plan
30+_name: Test fwts diagnosis with iot project (automated)
31+_description: Test fwts diagnosis with iot project (automated)
32+include:
33+ firmware/fwts_desktop_diagnosis
34+ firmware/fwts_desktop_diagnosis_results.log.gz
35+

Subscribers

People subscribed via source and target branches