Merge lp:~robru/cupstream2distro/add-ticket-system-support into lp:cupstream2distro
| Status: | Rejected |
|---|---|
| Rejected by: | Robert Bruce Park on 2015-04-14 |
| Proposed branch: | lp:~robru/cupstream2distro/add-ticket-system-support |
| Merge into: | lp:cupstream2distro |
| Diff against target: |
299 lines (+125/-1) 2 files modified
cupstream2distro/silomanager.py (+41/-0) tests/unit/test_silomanager.py (+84/-1) |
| To merge this branch: | bzr merge lp:~robru/cupstream2distro/add-ticket-system-support |
| Related bugs: |
| Reviewer | Review Type | Date Requested | Status |
|---|---|---|---|
| Robert Bruce Park (community) | Disapprove on 2015-04-14 | ||
| PS Jenkins bot | continuous-integration | 2014-12-17 | Approve on 2014-12-19 |
| Ursula Junque (community) | 2014-12-18 | Approve on 2014-12-19 | |
| Francis Ginther | 2014-12-18 | Pending | |
|
Review via email:
|
|||
Commit Message
Teach CI Train how to push statuses to the ticket system.
Description of the Change
This can be tested locally in an interactive python session by pasting the following lines one by one into a terminal after cd'ing into the branch dir:
BUILD_URL=http://
from cupstream2distr
s = SiloState.
s.set_
s.set_
The output is expected to look something like this:
http://
(the env spew at the import step is expected, don't worry about that)
And you can see the results reflected at:
http://
| Robert Bruce Park (robru) wrote : | # |
| Robert Bruce Park (robru) wrote : | # |
Hey guys, so most of this is pretty uncontroversial, however the ticket system seems to be missing a good analog for 'Silo merging', so I substituted 'Completed' instead, which is probably wrong but I'm not sure what else to do there.
Also, during the next phase when the ticket system grows to absorb the dashboard, there'll need to be a way to inject arbitrary status messages for the ticket system to display. As you can see in this merge there are many failure messages that get saved into the dashboard but not pushed into the ticket system, which is fine for now, but will need to get fixed later on.
- 865. By Robert Bruce Park on 2014-12-18
-
Better mocks.
| Robert Bruce Park (robru) wrote : | # |
One thing we should probably discuss is the potential for redundancy here since there isn't a clear distinction between our steps and our statuses. So we've got two kinds of methods here, some go 'self.set_
I suspect that those two are always called in pairs, I'll have to check the jobs for any cases where a config_step might get called without a set_config_status equivalent at the same time. If that's the case then I'm really making two PATCH requests every time something changes, so I should probably check if those can be removed.
- 866. By Robert Bruce Park on 2014-12-18
-
Tweak variable names.
| Robert Bruce Park (robru) wrote : | # |
Ok yeah, I audited the citrain/ scripts and the steps are totally redundant to the statuses. I'll drop those in order to reduce redundant calls into the ticket system.
- 867. By Robert Bruce Park on 2014-12-18
-
Drop redundant calls to set_ticket_step().
- 868. By Robert Bruce Park on 2014-12-18
-
Rename set_ticket_step to set_ticket_status for consistency.
| PS Jenkins bot (ps-jenkins) wrote : | # |
FAILED: Continuous integration, rev:
http://
Executed test runs:
FAILURE: http://
FAILURE: http://
Click here to trigger a rebuild:
http://
| PS Jenkins bot (ps-jenkins) wrote : | # |
FAILED: Continuous integration, rev:
http://
Executed test runs:
Click here to trigger a rebuild:
http://
| PS Jenkins bot (ps-jenkins) wrote : | # |
FAILED: Continuous integration, rev:868
http://
Executed test runs:
Click here to trigger a rebuild:
http://
| PS Jenkins bot (ps-jenkins) wrote : | # |
FAILED: Continuous integration, rev:868
http://
Executed test runs:
Click here to trigger a rebuild:
http://
| PS Jenkins bot (ps-jenkins) wrote : | # |
PASSED: Continuous integration, rev:868
http://
Executed test runs:
Click here to trigger a rebuild:
http://
- 869. By Robert Bruce Park on 2014-12-18
-
Use new Silo merging ticket step.
- 870. By Robert Bruce Park on 2014-12-18
-
Ignore exceptions from requests.patch in case ticket system unreachable.
| PS Jenkins bot (ps-jenkins) wrote : | # |
PASSED: Continuous integration, rev:869
http://
Executed test runs:
Click here to trigger a rebuild:
http://
| PS Jenkins bot (ps-jenkins) wrote : | # |
PASSED: Continuous integration, rev:870
http://
Executed test runs:
Click here to trigger a rebuild:
http://
- 871. By Robert Bruce Park on 2014-12-18
-
Refactor set_ticket_status() into patch() for better reusability.
| PS Jenkins bot (ps-jenkins) wrote : | # |
PASSED: Continuous integration, rev:871
http://
Executed test runs:
Click here to trigger a rebuild:
http://
- 872. By Robert Bruce Park on 2014-12-18
-
HTTP PATCH ticket system once build_ppa is known.
| PS Jenkins bot (ps-jenkins) wrote : | # |
PASSED: Continuous integration, rev:872
http://
Executed test runs:
Click here to trigger a rebuild:
http://
- 873. By Robert Bruce Park on 2014-12-18
-
Include job_url with step & status info.
| PS Jenkins bot (ps-jenkins) wrote : | # |
PASSED: Continuous integration, rev:873
http://
Executed test runs:
Click here to trigger a rebuild:
http://
| Ursula Junque (ursinha) wrote : | # |
Looks good! Thanks for adding the silo PPA and job url, it's more useful now.
| Robert Bruce Park (robru) wrote : | # |
I'm also quite happy with this, I just don't want to merge it (or deploy it to production) until we get a public IP for the ticket system.
- 874. By Robert Bruce Park on 2014-12-19
-
Rebase on trunk.
| PS Jenkins bot (ps-jenkins) wrote : | # |
PASSED: Continuous integration, rev:874
http://
Executed test runs:
Click here to trigger a rebuild:
http://
| Robert Bruce Park (robru) wrote : | # |
Rejecting because we decided in Austin not to proceed with "CI Engine as Spreadsheet Replacement"
Unmerged revisions
- 874. By Robert Bruce Park on 2014-12-19
-
Rebase on trunk.
- 873. By Robert Bruce Park on 2014-12-18
-
Include job_url with step & status info.
- 872. By Robert Bruce Park on 2014-12-18
-
HTTP PATCH ticket system once build_ppa is known.
- 871. By Robert Bruce Park on 2014-12-18
-
Refactor set_ticket_status() into patch() for better reusability.
- 870. By Robert Bruce Park on 2014-12-18
-
Ignore exceptions from requests.patch in case ticket system unreachable.
- 869. By Robert Bruce Park on 2014-12-18
-
Use new Silo merging ticket step.
- 868. By Robert Bruce Park on 2014-12-18
-
Rename set_ticket_step to set_ticket_status for consistency.
- 867. By Robert Bruce Park on 2014-12-18
-
Drop redundant calls to set_ticket_step().
- 866. By Robert Bruce Park on 2014-12-18
-
Tweak variable names.
- 865. By Robert Bruce Park on 2014-12-18
-
Better mocks.

We don't seem to have access to bootstack from production:
https:/ /ci-train. ubuntu. com/job/ cyphermox- test/511/ console