Beispiel #1
0
 def begin_work_queue(self):
     # FIXME: This violates abstraction
     self._tool._deprecated_port = self.port
     AbstractPatchQueue.begin_work_queue(self)
     self.committer_validator = CommitterValidator(self._tool)
     self._expected_failures = ExpectedFailures()
     self._layout_test_results_reader = LayoutTestResultsReader(self._tool, self._log_directory())
Beispiel #2
0
 def process_work_item(self, patch):
     self._cc_watchers(patch.bug_id())
     task = CommitQueueTask(self, patch)
     try:
         if task.run():
             self._did_pass(patch)
             return True
         self._did_retry(patch)
     except ScriptError, e:
         validator = CommitterValidator(self._tool.bugs)
         validator.reject_patch_from_commit_queue(
             patch.id(),
             self._error_message_for_bug(task.failure_status_id, e))
         self._did_fail(patch)
Beispiel #3
0
 def process_work_item(self, patch):
     self._cc_watchers(patch.bug_id())
     task = CommitQueueTask(self, patch)
     try:
         if task.run():
             self._did_pass(patch)
             return True
         self._did_retry(patch)
     except ScriptError, e:
         validator = CommitterValidator(self._tool)
         validator.reject_patch_from_commit_queue(patch.id(), self._error_message_for_bug(task, patch, e))
         results_archive = task.results_archive_from_patch_test_run(patch)
         if results_archive:
             self._upload_results_archive_for_patch(patch, results_archive)
         self._did_fail(patch)
Beispiel #4
0
 def process_work_item(self, patch):
     self._cc_watchers(patch.bug_id())
     task = self._commit_queue_task_class(self, patch)
     try:
         if task.run():
             self._did_pass(patch)
             return True
         self._unlock_patch(patch)
         return False
     except PatchIsNotValid as error:
         self._did_error(patch, "%s did not process patch. Reason: %s" % (self.name, error.failure_message))
         return False
     except ScriptError, e:
         validator = CommitterValidator(self._tool)
         validator.reject_patch_from_commit_queue(patch.id(), self._error_message_for_bug(task, patch, e))
         results_archive = task.results_archive_from_patch_test_run(patch)
         if results_archive:
             self._upload_results_archive_for_patch(patch, results_archive)
         self._did_fail(patch)
         return False
Beispiel #5
0
 def begin_work_queue(self):
     PatchProcessingQueue.begin_work_queue(self)
     self.committer_validator = CommitterValidator(self._tool)
     self._layout_test_results_reader = LayoutTestResultsReader(
         self._tool, self._port.results_directory(), self._log_directory())
Beispiel #6
0
 def begin_work_queue(self):
     AbstractPatchQueue.begin_work_queue(self)
     self.committer_validator = CommitterValidator(self._tool.bugs)
Beispiel #7
0
 def __init__(self, tool):
     AbstractFeeder.__init__(self, tool)
     self.committer_validator = CommitterValidator(self._tool)
Beispiel #8
0
 def begin_work_queue(self):
     AbstractPatchQueue.begin_work_queue(self)
     self.committer_validator = CommitterValidator(self._tool)
     self._expected_failures = ExpectedFailures()
     self._layout_test_results_reader = LayoutTestResultsReader(
         self._tool, self._log_directory())