Merge ~sylvain-pineau/checkbox-ng:allow-gzip-trailing-garbage into checkbox-ng:master
Status: | Merged |
---|---|
Approved by: | Sylvain Pineau |
Approved revision: | b18e56c26d3680365e6597a57051d54d27d9365c |
Merged at revision: | 71c8403c88cc6f42c2880cb39317b6825887c937 |
Proposed branch: | ~sylvain-pineau/checkbox-ng:allow-gzip-trailing-garbage |
Merge into: | checkbox-ng:master |
Diff against target: |
16 lines (+4/-1) 1 file modified
plainbox/impl/result.py (+4/-1) |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Jonathan Cave (community) | Approve | ||
Review via email:
|
Description of the change
For unknown reasons, the record.gz files used to store job DiskResults can contain trailing garbage:
Betty encountered such issue and was unable to generate reports:
https:/
The gzip archive was not actually corrupted since zcat was able to show the base64 content but it displayed a warning:
gzip: com.canonical.
Actually there's a lot of issues reported against the gzip python module and currently there's no option to mimic a less strict mode as other gzip tools do (like gzip or zcat).
In such cases, our best option to continue processing results and finally create reports is simply to ignore such trailing garbage. This patch fixes our result.py module to allow this.
Looks fine