Changeset 51248 in webkit


Ignore:
Timestamp:
Nov 20, 2009 11:22:46 AM (14 years ago)
Author:
eric@webkit.org
Message:

2009-11-20 Adam Barth <abarth@webkit.org>

Reviewed by Eric Seidel.

Implement a build-queue
https://bugs.webkit.org/show_bug.cgi?id=31725

Currently this just builds the first 10 patches in the review queue.
We'll want to do something smarter soon.

  • Scripts/bugzilla-tool:
Location:
trunk/WebKitTools
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/WebKitTools/ChangeLog

    r51244 r51248  
     12009-11-20  Adam Barth  <abarth@webkit.org>
     2
     3        Reviewed by Eric Seidel.
     4
     5        Implement a build-queue
     6        https://bugs.webkit.org/show_bug.cgi?id=31725
     7
     8        Currently this just builds the first 10 patches in the review queue.
     9        We'll want to do something smarter soon.
     10
     11        * Scripts/bugzilla-tool:
     12
    1132009-11-20  Adam Barth  <abarth@webkit.org>
    214
  • trunk/WebKitTools/Scripts/bugzilla-tool

    r51244 r51248  
    718718
    719719
    720 class StyleQueue(AbstractQueue):
    721     name = "style-queue"
     720class AbstractTryQueue(AbstractQueue):
    722721    def __init__(self):
    723722        AbstractQueue.__init__(self)
     
    736735
    737736    def should_proceed_with_work_item(self, patch):
     737        raise NotImplementedError, "subclasses must implement"
     738
     739    def process_work_item(self, patch):
     740        raise NotImplementedError, "subclasses must implement"
     741
     742    def handle_unexpected_error(self, patch, message):
     743        log(message)
     744
     745
     746class StyleQueue(AbstractTryQueue):
     747    name = "style-queue"
     748    def __init__(self):
     749        AbstractTryQueue.__init__(self)
     750
     751    def should_proceed_with_work_item(self, patch):
    738752        return (True, "Checking style for patch %s on bug %s." % (patch["id"], patch["bug_id"]), patch["bug_id"])
    739753
     
    741755        self.run_bugzilla_tool(["check-style", "--force-clean", patch["id"]])
    742756
    743     def handle_unexpected_error(self, patch, message):
    744         log(message)
     757
     758class BuildQueue(AbstractTryQueue):
     759    name = "build-queue"
     760    def __init__(self):
     761        AbstractTryQueue.__init__(self)
     762
     763    def should_proceed_with_work_item(self, patch):
     764        # FIXME: We should check whether we're currently able to build!
     765        return (True, "Building patch %s on bug %s." % (patch["id"], patch["bug_id"]), patch["bug_id"])
     766
     767    def process_work_item(self, patch):
     768        self.run_bugzilla_tool(["build-attachment", "--force-clean", patch["id"]])
    745769
    746770
Note: See TracChangeset for help on using the changeset viewer.