Changeset 70254 in webkit
- Timestamp:
- Oct 21, 2010 12:19:38 PM (14 years ago)
- Location:
- trunk/WebKitTools
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/WebKitTools/ChangeLog
r70253 r70254 1 2010-10-21 Eric Seidel <eric@webkit.org> 2 3 Reviewed by Adam Barth. 4 5 mac-ews is not properly releasing patches 6 https://bugs.webkit.org/show_bug.cgi?id=48076 7 8 mac-ews overrides process_work_item, so it was not calling 9 release_work_item like the default process_work_item would. 10 To fix this I made all the status-reporting methods just 11 release the patch. I expect we'll iterate on this design further. 12 13 * Scripts/webkitpy/common/net/statusserver.py: 14 * Scripts/webkitpy/tool/commands/earlywarningsystem_unittest.py: 15 * Scripts/webkitpy/tool/commands/queues.py: 16 * Scripts/webkitpy/tool/commands/queues_unittest.py: 17 1 18 2010-10-18 Martin Robinson <mrobinson@igalia.com> 2 19 -
trunk/WebKitTools/Scripts/webkitpy/common/net/statusserver.py
r70193 r70254 128 128 129 129 def release_work_item(self, queue_name, patch): 130 _log. debug("Releasing work item %s from %s" % (patch.id(), queue_name))130 _log.info("Releasing work item %s from %s" % (patch.id(), queue_name)) 131 131 return NetworkTransaction(convert_404_to_None=True).run(lambda: self._post_release_work_item(queue_name, patch)) 132 132 -
trunk/WebKitTools/Scripts/webkitpy/tool/commands/earlywarningsystem_unittest.py
r70171 r70254 81 81 ews = MacEWS() 82 82 expected_stderr = self._default_expected_stderr(ews) 83 expected_stderr["process_work_item"] = "MOCK: update_status: mac-ews Error: mac-ews cannot process patches from non-committers :(\n "83 expected_stderr["process_work_item"] = "MOCK: update_status: mac-ews Error: mac-ews cannot process patches from non-committers :(\nMOCK: release_work_item: mac-ews 197\n" 84 84 expected_exceptions = { 85 85 "handle_script_error": SystemExit, … … 90 90 ews = ChromiumMacEWS() 91 91 expected_stderr = self._default_expected_stderr(ews) 92 expected_stderr["process_work_item"] = "MOCK: update_status: cr-mac-ews Error: cr-mac-ews cannot process patches from non-committers :(\n "92 expected_stderr["process_work_item"] = "MOCK: update_status: cr-mac-ews Error: cr-mac-ews cannot process patches from non-committers :(\nMOCK: release_work_item: cr-mac-ews 197\n" 93 93 expected_exceptions = { 94 94 "handle_script_error": SystemExit, -
trunk/WebKitTools/Scripts/webkitpy/tool/commands/queues.py
r70228 r70254 205 205 def _did_pass(self, patch): 206 206 self._update_status(self._pass_status, patch) 207 self._release_work_item(patch) 207 208 208 209 def _did_fail(self, patch): 209 210 self._update_status(self._fail_status, patch) 211 self._release_work_item(patch) 210 212 211 213 def _did_retry(self, patch): 212 214 self._update_status(self._retry_status, patch) 215 self._release_work_item(patch) 213 216 214 217 def _did_error(self, patch, reason): 215 218 message = "%s: %s" % (self._error_status, reason) 216 219 self._update_status(message, patch) 220 self._release_work_item(patch) 217 221 218 222 def work_item_log_path(self, patch): … … 252 256 validator.reject_patch_from_commit_queue(patch.id(), self._error_message_for_bug(task.failure_status_id, e)) 253 257 self._did_fail(patch) 254 self._release_work_item(patch)255 258 256 259 def _error_message_for_bug(self, status_id, script_error): … … 406 409 self._did_fail(patch) 407 410 raise e 408 finally:409 self._release_work_item(patch)410 411 411 412 def handle_unexpected_error(self, patch, message): -
trunk/WebKitTools/Scripts/webkitpy/tool/commands/queues_unittest.py
r70228 r70254 210 210 MOCK: update_status: commit-queue Landed patch 211 211 MOCK: update_status: commit-queue Pass 212 MOCK: release_work_item: commit-queue 197 212 213 """, 213 214 "handle_unexpected_error": "MOCK setting flag 'commit-queue' to '-' on attachment '197' with comment 'Rejecting patch 197 from commit-queue.' and additional comment 'Mock error message'\n", … … 253 254 MOCK: update_status: commit-queue Landed patch 254 255 MOCK: update_status: commit-queue Pass 256 MOCK: release_work_item: commit-queue 197 255 257 """, 256 258 "handle_unexpected_error": "MOCK setting flag 'commit-queue' to '-' on attachment '197' with comment 'Rejecting patch 197 from commit-queue.' and additional comment 'Mock error message'\n", … … 276 278 MOCK: update_status: commit-queue Landed patch 277 279 MOCK: update_status: commit-queue Pass 280 MOCK: release_work_item: commit-queue 197 278 281 """, 279 282 "handle_unexpected_error": "MOCK setting flag 'commit-queue' to '-' on attachment '197' with comment 'Rejecting patch 197 from commit-queue.' and additional comment 'Mock error message'\n", … … 339 342 "begin_work_queue": self._default_begin_work_queue_stderr("rietveld-upload-queue", MockSCM.fake_checkout_root), 340 343 "should_proceed_with_work_item": "MOCK: update_status: rietveld-upload-queue Uploading patch\n", 341 "process_work_item": "MOCK: update_status: rietveld-upload-queue Pass\n ",344 "process_work_item": "MOCK: update_status: rietveld-upload-queue Pass\nMOCK: release_work_item: rietveld-upload-queue 197\n", 342 345 "handle_unexpected_error": "Mock error message\nMOCK setting flag 'in-rietveld' to '-' on attachment '197' with comment 'None' and additional comment 'None'\n", 343 346 "handle_script_error": "ScriptError error message\nMOCK: update_status: rietveld-upload-queue ScriptError error message\nMOCK setting flag 'in-rietveld' to '-' on attachment '197' with comment 'None' and additional comment 'None'\n",
Note: See TracChangeset
for help on using the changeset viewer.