Merge lp:~allenap/launchpad/twisted-threading-bug-491870 into lp:launchpad
Status: | Merged |
---|---|
Approved by: | Gavin Panella |
Approved revision: | no longer in the source branch. |
Merged at revision: | not available |
Proposed branch: | lp:~allenap/launchpad/twisted-threading-bug-491870 |
Merge into: | lp:launchpad |
Prerequisite: | lp:~allenap/launchpad/isolate-tests |
Diff against target: |
516 lines (+266/-143) 5 files modified
lib/lp/bugs/doc/checkwatches-cli-switches.txt (+1/-1) lib/lp/bugs/doc/externalbugtracker.txt (+0/-107) lib/lp/bugs/scripts/checkwatches.py (+88/-32) lib/lp/bugs/scripts/tests/test_checkwatches.py (+176/-3) lib/lp/scripts/utilities/importfascist.py (+1/-0) |
To merge this branch: | bzr merge lp:~allenap/launchpad/twisted-threading-bug-491870 |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Eleanor Berger (community) | code | Approve | |
Review via email: mp+21376@code.launchpad.net |
Commit message
In checkwatches, use Twisted to manage threading instead of the threading module.
Description of the change
checkwatches can update bug watches for different remote trackers in parallel. Currently that's implemented using threads via the threading module. This branch continues to use threads, but does so with a Twisted ThreadPool.
To make testing easier, and to make the design more elegant, it's possible to pass in a scheduler to BugWatchUpdate.
Getting Twisted in there also opens the door for using more async code in the future.
A previous review <https:/