RESOLVED FIXED 31513
Refactor bugzilla-tool to allow for multiple queues
https://bugs.webkit.org/show_bug.cgi?id=31513
Summary Refactor bugzilla-tool to allow for multiple queues
Adam Barth
Reported 2009-11-14 18:07:34 PST
We should implement some infrastructure changes before settling on exactly what the other bots will do.
Attachments
Patch (14.65 KB, patch)
2009-11-14 18:09 PST, Adam Barth
no flags
Arise WorkQueue (14.69 KB, patch)
2009-11-15 23:42 PST, Adam Barth
eric: review+
Adam Barth
Comment 1 2009-11-14 18:09:07 PST
Darin Adler
Comment 2 2009-11-15 17:05:20 PST
Comment on attachment 43236 [details] Patch r=me While I'm not enough of a Python expert to spot every last thing, this all looks right to me. Please let me know if you'd prefer that someone more engaged with the process of making the new tools review patches like this one.
Eric Seidel (no email)
Comment 3 2009-11-15 18:35:59 PST
Comment on attachment 43236 [details] Patch I'm confused by this: 350 if options.try_queue: 351 pass # FIXME: Implement me! 352 else: 353 comment_text = WebKitLandingScripts.build_test_and_commit(tool.scm(), options) It seems that that should just be factored out into its own method which is not call for hte try-queue. LIkewise: 365 tool.bugs.reject_patch_from_commit_queue(patch['id'], e.message_with_output()) 366 elif options.try_queue: 367 pass # FIXME: Implement me! Why do you have: 809 def reject_patch(self, patch_id, message): 810 return tool.bugs.reject_patch_from_commit_queue(patch_id, message) If you're not using it? Again here? 364376 if options.commit_queue: 365377 patches = tool.bugs.fetch_commit_queue_patches_from_bug(bug_id, reject_invalid_patches=True) 378 elif options.try_queue: 379 patches = [] # FIXME: Implement me! 366380 else: 367381 patches = tool.bugs.fetch_reviewed_patches_from_bug(bug_id) 368382 Seems like you had one design idea, then you changed your mind, and then never went back to clean up the first idea...
Adam Barth
Comment 4 2009-11-15 20:49:32 PST
Comment on attachment 43236 [details] Patch Ok. Let me try this again.
Adam Barth
Comment 5 2009-11-15 23:42:01 PST
Created attachment 43270 [details] Arise WorkQueue
Eric Seidel (no email)
Comment 6 2009-11-15 23:56:37 PST
Comment on attachment 43270 [details] Arise WorkQueue safe_to_proceed_with_work_item maybe "should_proceed_with_work_item" would be better. 862 # We don't have a patch id at this point, so try to grab the first patch off of the bug in question. Would be better to update that comment to indicate that we plan to update the commit-queue to opearate off of patch ids in the near future. 819 make_option("--status-host", action="store", type="string", dest="status_host", default=StatusBot.default_host, help="Do not ask the user for confirmation before running the queue. Dangerous!"), should probably move up into WorkQueue since it's used there. _ensure_bug_log_closed Seems like the wrong name for a generic queue. _ensure_work_item_log_closed ? This should eventually move to a new file. It also eventually needs unit tests. I trust you to make those edits before commit.
Adam Barth
Comment 7 2009-11-16 00:08:29 PST
M WebKitTools/ChangeLog M WebKitTools/Scripts/bugzilla-tool Committed r51012
Note You need to log in before you can comment on or make changes to this bug.