Merge lp:~robru/cupstream2distro/dont-publish-invalid-packagelist into lp:cupstream2distro
| Status: | Merged |
|---|---|
| Approved by: | Łukasz Zemczak on 2015-03-04 |
| Approved revision: | 933 |
| Merged at revision: | 932 |
| Proposed branch: | lp:~robru/cupstream2distro/dont-publish-invalid-packagelist |
| Merge into: | lp:cupstream2distro |
| Diff against target: |
54 lines (+22/-3) 2 files modified
citrain/publisher.py (+11/-3) tests/unit/test_script_publisher.py (+11/-0) |
| To merge this branch: | bzr merge lp:~robru/cupstream2distro/dont-publish-invalid-packagelist |
| Related bugs: |
| Reviewer | Review Type | Date Requested | Status |
|---|---|---|---|
| Łukasz Zemczak | 2015-03-04 | Approve on 2015-03-04 | |
| PS Jenkins bot | continuous-integration | Approve on 2015-03-04 | |
|
Review via email:
|
|||
Commit Message
Raise a PublishError in PackageList.
Description of the Change
I've seen this problem a couple times now where the publish job succeeds but the dest package version field is missing, so copy2distro refuses to copy, but no indication is given to the user anywhere. In a later branch I'll fix this problem from happening, but at least for now we need the publish job to fail loudly if it's generating an invalid packagelist.
| Łukasz Zemczak (sil2100) wrote : | # |
Ok, I'm normally not +1 on hiding issues with quick-fixes, but sometimes when the bug is critical enough this makes sense. And I believe that you won't forget getting the root cause fixed ;) The workaround looks fine - and, come to think of it, it might help us with identifying any other possible issues with the rsync file! Besides, this makes sense as it's basically proper error-handling.
Anyway, thanks and +1!

PASSED: Continuous integration, rev:933 jenkins. qa.ubuntu. com/job/ cu2d-choo- choo-ci/ 577/
http://
Executed test runs:
Click here to trigger a rebuild: s-jenkins. ubuntu- ci:8080/ job/cu2d- choo-choo- ci/577/ rebuild
http://