Home | History | Annotate | Download | only in commands

Lines Matching refs:patch

164         return tool.status_server.update_status(cls.name, message, state["patch"], failure_log)
204 def _update_status(self, message, patch=None, results_file=None):
205 return self._tool.status_server.update_status(self.name, message, patch, results_file)
211 patch = self._tool.bugs.fetch_attachment(patch_id)
212 if not patch:
213 # FIXME: Using a fake patch because release_work_item has the wrong API.
215 # mostly we just need to remove this bogus patch from our queue.
217 patch = Attachment({'id': patch_id}, None)
218 self._release_work_item(patch)
220 return patch
222 def _release_work_item(self, patch):
223 self._tool.status_server.release_work_item(self.name, patch)
225 def _did_pass(self, patch):
226 self._update_status(self._pass_status, patch)
227 self._release_work_item(patch)
229 def _did_fail(self, patch):
230 self._update_status(self._fail_status, patch)
231 self._release_work_item(patch)
233 def _did_retry(self, patch):
234 self._update_status(self._retry_status, patch)
235 self._release_work_item(patch)
237 def _did_error(self, patch, reason):
239 self._update_status(message, patch)
240 self._release_work_item(patch)
242 def work_item_log_path(self, patch):
243 return os.path.join(self._log_directory(), "%s.log" % patch.bug_id())
258 def should_proceed_with_work_item(self, patch):
259 patch_text = "rollout patch" if patch.is_rollout() else "patch"
260 self._update_status("Processing %s" % patch_text, patch)
264 def _upload_results_archive_for_patch(self, patch, results_archive_zip):
275 self._tool.bugs.add_attachment_to_bug(patch.bug_id(), results_archive_file, description, filename="layout-test-results.zip", comment_text=comment_text)
277 def process_work_item(self, patch):
278 self._cc_watchers(patch.bug_id())
279 task = CommitQueueTask(self, patch)
282 self._did_pass(patch)
284 self._did_retry(patch)
287 validator.reject_patch_from_commit_queue(patch.id(), self._error_message_for_bug(task.failure_status_id, e))
288 results_archive = task.results_archive_from_patch_test_run(patch)
290 self._upload_results_archive_for_patch(patch, results_archive)
291 self._did_fail(patch)
299 def handle_unexpected_error(self, patch, message):
300 self.committer_validator.reject_patch_from_commit_queue(patch.id(), message)
307 def command_passed(self, message, patch):
308 self._update_status(message, patch=patch)
310 def command_failed(self, message, script_error, patch):
312 return self._update_status(message, patch=patch, results_file=failure_log)
349 def archive_last_layout_test_results(self, patch):
353 zip_path = self._tool.workspace.find_unused_filename(self._log_directory(), "%s-%s" % (patch.bug_id(), results_name), "zip")
362 def refetch_patch(self, patch):
363 return self._tool.bugs.fetch_attachment(patch
365 def report_flaky_tests(self, patch, flaky_test_results, results_archive=None):
367 reporter.report_flaky_tests(patch, flaky_test_results, results_archive)
373 # however, when a patch no longer applies to top-of-tree in the final
380 tool.status_server.update_status(cls.name, message, state["patch"])
382 # when we were ready to actually pull the trigger and land the patch.
396 def review_patch(self, patch):
407 def should_proceed_with_work_item(self, patch):
410 def process_work_item(self, patch):
412 if not self.review_patch(patch):
414 self._did_pass(patch)
418 self._did_fail(patch)
420 # The subprocess handled the error, but won't have released the patch, so we do.
422 self._release_work_item(patch)
425 def handle_unexpected_error(self, patch, message):
440 def should_proceed_with_work_item(self, patch):
441 self._update_status("Checking style", patch)
444 def review_patch(self, patch):
445 self.run_webkit_patch(["check-style", "--force-clean", "--non-interactive", "--parent-command=style-queue", patch.id()])
454 message = "Attachment %s did not pass %s:\n\n%s\n\nIf any of these errors are false positives, please file a bug against check-webkit-style." % (state["patch"].id(), cls.name, script_error.message_with_output(output_limit=3*1024))
455 tool.bugs.post_comment_to_bug(state["patch"].bug_id(), message, cc=cls.watchers)