Merge ~sylvain-pineau/checkbox-ng:no_resource_no_templates into checkbox-ng:master
Proposed by
Sylvain Pineau
Status: | Merged |
---|---|
Approved by: | Sylvain Pineau |
Approved revision: | 49f6aa4c42948470322bf32bcb5e5168ba6d2721 |
Merge reported by: | Sylvain Pineau |
Merged at revision: | 49f6aa4c42948470322bf32bcb5e5168ba6d2721 |
Proposed branch: | ~sylvain-pineau/checkbox-ng:no_resource_no_templates |
Merge into: | checkbox-ng:master |
Diff against target: |
97 lines (+39/-35) 2 files modified
checkbox_ng/launcher/subcommands.py (+36/-33) plainbox/impl/ctrl.py (+3/-2) |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Jonathan Cave (community) | Approve | ||
Sylvain Pineau (community) | Approve | ||
Review via email:
|
Description of the change
Fix the crash observed while running the sru test plan on pi2 where the graphics_card resource job returns nothing. Templates were still checked as checkbox then creates an empty record (to avoid another kind of crash ; IIRC "package.name == foo" checks on UC).
The proposed fix is to simply bypass instantiate all when such fake record is the only resource object known for this resource job.
Bonus a commit to handle KeyboardInterrrupt with the Run command.
To post a comment you must log in.
On the other MR that triggered this you say:
> The proposed solution fixes the crash and removes all those warnings about missing parameters.
So does this actually only remove the warnings when the fake record is the only resource object? i.e. there are still warnings if there is a real resource object but the key the job is using is missing? I think we want to keep those warnings as it helps debug job creation.