Merge lp://qastaging/~danilo/lp2kanban/skip-over-wip-errors into lp://qastaging/lp2kanban

Proposed by Данило Шеган
Status: Merged
Merged at revision: 132
Proposed branch: lp://qastaging/~danilo/lp2kanban/skip-over-wip-errors
Merge into: lp://qastaging/lp2kanban
Diff against target: 88 lines (+35/-5)
4 files modified
src/lp2kanban/bugs2cards.py (+11/-4)
src/lp2kanban/kanban.py (+7/-1)
src/lp2kanban/tests/common.py (+1/-0)
src/lp2kanban/tests/test_bugs2cards.py (+16/-0)
To merge this branch: bzr merge lp://qastaging/~danilo/lp2kanban/skip-over-wip-errors
Reviewer Review Type Date Requested Status
Chad Smith Approve
Alberto Donato (community) Approve
Review via email: mp+286786@code.qastaging.launchpad.net

Description of the change

Ignore card save errors and continue processing other cards

We've started hitting WIP limits when attempting to create cards (WIP limits are used on the bug squad's Next lane).

This causes lp2kanban to stop processing any other cards, so we decided to ignore errors on such cards as a quick work-around.

This is not the perfect approach, and a similar change might be required in the _moveCard around the post(). Note that post() throws IOError, so we catch that, even though we could pass in handle_errors=False and handle each individual error separately, but that would be a bit more work than just this.

There are no tests for this code, so I am not starting them here either.

Sample test run with this branch:

  https://ci.lscape.net/job/kanban-sync/158976/

Run before that that failed

  https://ci.lscape.net/job/kanban-sync/158975/

To post a comment you must log in.
Revision history for this message
Alberto Donato (ack) wrote :

LGTM, +1

review: Approve
132. By Данило Шеган

Do not drop "kanban" tag when creating a card fails.

Revision history for this message
Chad Smith (chad.smith) wrote :

+1 on this. No unit tests are reasonable as this is not our primary product and we have plenty of feedback from jenkins on every run.
Minor nit/question.

Revision history for this message
Chad Smith (chad.smith) :
review: Approve
Revision history for this message
Chad Smith (chad.smith) wrote :

Unit test fixes and a request for additional print data so we can see about WIP hit.

review: Approve
133. By Данило Шеган

Fix tests, address more review comments from Chad.

134. By Данило Шеган

Add a test to ensure "kanban" tag stays on the LP bug when saving a card fails.

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
The diff is not available at this time. You can reload the page or download it.

Subscribers

People subscribed via source and target branches