Merge lp:~cprov/uci-engine/ts-artifact-constraints into lp:uci-engine
Status: | Merged |
---|---|
Approved by: | Evan |
Approved revision: | 832 |
Merged at revision: | 830 |
Proposed branch: | lp:~cprov/uci-engine/ts-artifact-constraints |
Merge into: | lp:uci-engine |
Diff against target: |
354 lines (+212/-31) 7 files modified
branch-source-builder/bsbuilder/run_worker.py (+8/-2) branch-source-builder/bsbuilder/tests/test_worker.py (+62/-0) juju-deployer/branch-source-builder.yaml.tmpl (+1/-1) ticket_system/ticket/api.py (+4/-3) ticket_system/ticket/migrations/0014_auto__chg_field_ticketartifact_ticket__chg_field_subticketartifact_sub.py (+120/-0) ticket_system/ticket/models.py (+2/-2) ticket_system/ticket/tests/test_write_api.py (+15/-23) |
To merge this branch: | bzr merge lp:~cprov/uci-engine/ts-artifact-constraints |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Ursula Junque (community) | Approve | ||
PS Jenkins bot (community) | continuous-integration | Approve | |
Review via email: mp+237178@code.launchpad.net |
Commit message
Fixes TS to prevent orphan artifacts to be stored and the misleading error messages related with processing empty subtickets.
Description of the change
Fixes TS to prevent orphan artifacts to be stored and the misleading error messages related with processing empty subtickets.
Fixes SubTicketArtifact resource in TS, removing a stray (landed by mistake with my ticket-conflicts MP) 'readonly' attribute for 'subticket' FK which leads to empty (no SPU artifacts) subtickets. The underlying problem, in fact, is that artifact FKs to Ticket and SubTicket were nullable for no reason. This MP makes them NOT NULL, since it makes no sense to have a subticket-artifact for no subticket ...
CLI doesn't identify this problem because the TS request succeeds, although subticket.artifacts is empty by the time the ticket is queued. We theoretically could extend CLI checks ...
A further problem is that BSB intermediary steps work, despite of the fact they operate on an empty filelist, up to the point it tries to re-sign the upload(s).
Re-signing upload was failing, just because it has valid keys, but was returning very poor tracing (bare exception on handle_request). This is fixed in this MP too.
PASSED: Continuous integration, rev:830 s-jenkins. ubuntu- ci:8080/ job/uci- engine- ci/1528/
http://
Executed test runs:
Click here to trigger a rebuild: s-jenkins. ubuntu- ci:8080/ job/uci- engine- ci/1528/ rebuild
http://