Changeset 52180 in webkit
- Timestamp:
- Dec 15, 2009 3:47:58 PM (14 years ago)
- Location:
- trunk/WebKitTools
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/WebKitTools/ChangeLog
r52150 r52180 1 2009-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 1 18 2009-12-15 Andras Becsi <abecsi@inf.u-szeged.hu> 2 19 -
trunk/WebKitTools/QueueStatusServer/queue_status.py
r52147 r52180 148 148 queue_status.results_file = db.Blob(str(results_file)) 149 149 queue_status.put() 150 self.re direct('/')150 self.response.out.write(queue_status.key().id()) 151 151 152 152 -
trunk/WebKitTools/Scripts/modules/commands/queues.py
r52147 r52180 146 146 # StepSequenceErrorHandler methods 147 147 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 148 155 @classmethod 149 156 def handle_script_error(cls, tool, state, script_error): 150 157 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)) 153 160 154 161 -
trunk/WebKitTools/Scripts/modules/statusbot.py
r52145 r52180 63 63 self.statusbot_server_url = "http://%s" % self.statusbot_host 64 64 65 def results_url_for_status(self, status_id): 66 return "%s/results/%s" % (self.statusbot_server_url, status_id) 67 65 68 def update_status(self, queue_name, status, patch=None, results_file=None): 66 69 # During unit testing, statusbot_host is None … … 81 84 if results_file: 82 85 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. 84 88 85 89 def patch_status(self, queue_name, patch_id):
Note: See TracChangeset
for help on using the changeset viewer.