Merge lp://staging/~allenap/launchpad/stop-checkwatches-hammering-bug-506158-devel into lp://staging/launchpad
Proposed by
Gavin Panella
Status: | Merged |
---|---|
Approved by: | Graham Binns |
Approved revision: | not available |
Merged at revision: | not available |
Proposed branch: | lp://staging/~allenap/launchpad/stop-checkwatches-hammering-bug-506158-devel |
Merge into: | lp://staging/launchpad |
Diff against target: |
225 lines (+168/-17) 3 files modified
lib/lp/bugs/doc/checkwatches-batching.txt (+134/-0) lib/lp/bugs/doc/externalbugtracker.txt (+3/-0) lib/lp/bugs/scripts/checkwatches.py (+31/-17) |
To merge this branch: | bzr merge lp://staging/~allenap/launchpad/stop-checkwatches-hammering-bug-506158-devel |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Graham Binns (community) | code | Approve | |
Review via email:
|
Commit message
Query remote bug trackers about recently modified bugs in limited batches. Previously, queries were made for all bugs, which could result in such large XML-RPC requests that the remote system would become overloaded.
To post a comment you must log in.
[The same code has already reviewed in https:/ /code.launchpad .net/~allenap/ launchpad/ stop-checkwatch es-hammering- bug-506158/ +merge/ 17306]
This batches up calls to getModifiedRemo teBugs( ) so that we don't maim remote trackers. I put some tests in a new file, checkwatches- batching. txt, and have added an XXX to externalbugtrac ker.txt to suggest that some of the tests in there should be moved to this new file.
The code in _getRemoteIdsTo Check() is still a bit back to front - it should probably identify the new bug watches first, then fill with old ones - but that's beyond the scope of this branch.