Changeset 52180 in webkit


Ignore:
Timestamp:
Dec 15, 2009 3:47:58 PM (14 years ago)
Author:
eric@webkit.org
Message:

2009-12-15 Eric Seidel <eric@webkit.org>

Reviewed by Adam Barth.

bugzilla-tool / commit-queue should add results links to bugs when more results are available on the status bot
https://bugs.webkit.org/show_bug.cgi?id=32546

You can see an example of this working in:
https://bugs.webkit.org/show_bug.cgi?id=32585#c3

  • QueueStatusServer/queue_status.py:
    • Output the id of the newly created status.
  • Scripts/modules/commands/queues.py:
    • Tweak the commit-queue logging to include a full status link.
  • Scripts/modules/statusbot.py:
    • update_status should return the newly created status id.
Location:
trunk/WebKitTools
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • trunk/WebKitTools/ChangeLog

    r52150 r52180  
     12009-12-15  Eric Seidel  <eric@webkit.org>
     2
     3        Reviewed by Adam Barth.
     4
     5        bugzilla-tool / commit-queue should add results links to bugs when more results are available on the status bot
     6        https://bugs.webkit.org/show_bug.cgi?id=32546
     7
     8        You can see an example of this working in:
     9        https://bugs.webkit.org/show_bug.cgi?id=32585#c3
     10
     11        * QueueStatusServer/queue_status.py:
     12         - Output the id of the newly created status.
     13        * Scripts/modules/commands/queues.py:
     14         - Tweak the commit-queue logging to include a full status link.
     15        * Scripts/modules/statusbot.py:
     16         - update_status should return the newly created status id.
     17
    1182009-12-15  Andras Becsi  <abecsi@inf.u-szeged.hu>
    219
  • trunk/WebKitTools/QueueStatusServer/queue_status.py

    r52147 r52180  
    148148        queue_status.results_file = db.Blob(str(results_file))
    149149        queue_status.put()
    150         self.redirect('/')
     150        self.response.out.write(queue_status.key().id())
    151151
    152152
  • trunk/WebKitTools/Scripts/modules/commands/queues.py

    r52147 r52180  
    146146    # StepSequenceErrorHandler methods
    147147
     148    @staticmethod
     149    def _error_message_for_bug(tool, status_id, script_error):
     150        if not script_error.output:
     151            return script_error.message_with_output()
     152        results_link = tool.status_bot.results_url_for_status(status_id)
     153        return "%s\nFull output: %s" % (script_error.message_with_output(), results_link)
     154
    148155    @classmethod
    149156    def handle_script_error(cls, tool, state, script_error):
    150157        patch = state["patch"]
    151         tool.status_bot.update_status(cls.name, "patch %s failed: %s" % (patch['id'], script_error.message), patch, StringIO(script_error.output))
    152         tool.bugs.reject_patch_from_commit_queue(patch["id"], script_error.message_with_output())
     158        status_id = tool.status_bot.update_status(cls.name, "patch %s failed: %s" % (patch['id'], script_error.message), patch, StringIO(script_error.output))
     159        tool.bugs.reject_patch_from_commit_queue(patch["id"], cls._error_message_for_bug(tool, status_id, script_error))
    153160
    154161
  • trunk/WebKitTools/Scripts/modules/statusbot.py

    r52145 r52180  
    6363        self.statusbot_server_url = "http://%s" % self.statusbot_host
    6464
     65    def results_url_for_status(self, status_id):
     66        return "%s/results/%s" % (self.statusbot_server_url, status_id)
     67
    6568    def update_status(self, queue_name, status, patch=None, results_file=None):
    6669        # During unit testing, statusbot_host is None
     
    8184        if results_file:
    8285            self.browser.add_file(results_file, "text/plain", "results.txt", 'results_file')
    83         self.browser.submit()
     86        response = self.browser.submit()
     87        return response.read() # This is the id of the newly created status object.
    8488
    8589    def patch_status(self, queue_name, patch_id):
Note: See TracChangeset for help on using the changeset viewer.