Click review rejects multi-arch clicks
| Affects | Status | Importance | Assigned to | Milestone | |
|---|---|---|---|---|---|
| | Canonical Click Reviewers tools |
High
|
Daniel Holbach | ||
Bug Description
The click review tools reject the valid syntax for multi-arch clicks. Attached is an example click which fails review with
Errors
------
- lint_control_
Architecture=multi does not match manifest architecture=
- security_
(MANUAL REVIEW) reserved policy group 'calendar': vetted applications only
Warnings
--------
- lint_click_
found unofficial extensions: x-source, x-test
com.ubuntu.
*******
I'm including the manifest inline for ease of reference as well:
{
"name": "com.ubuntu.
"description": "A sophisticated clock app for Ubuntu Touch",
"framework": "ubuntu-sdk-14.10",
"architecture": ["armhf", "i386", "amd64"],
"title": "Clock",
"icon": "clock@30.png",
"hooks": {
"clock": {
"urls": "share/
}
},
"version": "3.2.169.3",
"maintainer": "Nicholas Skaggs <email address hidden>",
"x-test": {
},
"x-source": {
"vcs-bzr": "lp:ubuntu-clock-app",
}
}
Related branches
- Martin Albisetti (community): Approve on 2015-01-20
-
Diff: 67 lines (+32/-5)2 files modifiedclickreviews/cr_lint.py (+18/-5)
clickreviews/tests/test_cr_lint.py (+14/-0)
| Nicholas Skaggs (nskaggs) wrote : | #1 |
| Changed in click-reviewers-tools: | |
| importance: | Undecided → High |
| Daniel Holbach (dholbach) wrote : | #2 |
| Changed in click-reviewers-tools: | |
| assignee: | nobody → Jamie Strandboge (jdstrand) |
| status: | New → Triaged |
| Nicholas Skaggs (nskaggs) wrote : | #3 |
Daniel. yes I would say you are correct.
| Daniel Holbach (dholbach) wrote : | #4 |
I pushed a branch which might serve as a basis. I know that additional tests would need to be added - maybe this is going to help though.
| Jamie Strandboge (jdstrand) wrote : | #5 |
I keep meaning to get to this, but it keeps getting pushed back. If someone wants to do an MP for a full implementation with test cases, then we can probably find someone to review it. Thanks and sorry for not being able to get to it.
| Changed in click-reviewers-tools: | |
| assignee: | Jamie Strandboge (jdstrand) → nobody |
| Daniel Holbach (dholbach) wrote : | #6 |
AFAICS the branch is just missing tests at this stage.
| Changed in click-reviewers-tools: | |
| assignee: | nobody → Daniel Holbach (dholbach) |
| status: | Triaged → In Progress |
| Daniel Holbach (dholbach) wrote : | #7 |
With r356:
daniel@daydream:~$ click-review com.ubuntu.
Errors
------
- security_
(MANUAL REVIEW) reserved policy group 'calendar': vetted applications only
Warnings
--------
- lint_click_
found unofficial extensions: x-source, x-test
com.ubuntu.
daniel@daydream:~$
| Changed in click-reviewers-tools: | |
| status: | In Progress → Fix Released |

Do I assume correctly that multi-arch files are supposed to be named <namespace> _<version> _multi. click and have architecture in the manifest be
1) != multi
2) a list of valid_architectures
3) have the list of arches not contain 'all'
?