Changeset 84704 in webkit


Ignore:
Timestamp:
Apr 22, 2011 4:35:44 PM (13 years ago)
Author:
abarth@webkit.org
Message:

2011-04-22 Adam Barth <abarth@webkit.org>

Reviewed by Eric Seidel.

CommitQueue should remember the expected failures from patch to patch
https://bugs.webkit.org/show_bug.cgi?id=59253

Previously, we stored the set of expected failures on the task object,
which meant the commit-queue forgot about them after each patch. This
patch moves them to the CommitQueue object so they will have a longer
lifetime.

  • Scripts/webkitpy/tool/bot/commitqueuetask_unittest.py:
  • Scripts/webkitpy/tool/bot/patchanalysistask.py:
  • Scripts/webkitpy/tool/commands/queues.py:
Location:
trunk/Tools
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • trunk/Tools/ChangeLog

    r84702 r84704  
     12011-04-22  Adam Barth  <abarth@webkit.org>
     2
     3        Reviewed by Eric Seidel.
     4
     5        CommitQueue should remember the expected failures from patch to patch
     6        https://bugs.webkit.org/show_bug.cgi?id=59253
     7
     8        Previously, we stored the set of expected failures on the task object,
     9        which meant the commit-queue forgot about them after each patch.  This
     10        patch moves them to the CommitQueue object so they will have a longer
     11        lifetime.
     12
     13        * Scripts/webkitpy/tool/bot/commitqueuetask_unittest.py:
     14        * Scripts/webkitpy/tool/bot/patchanalysistask.py:
     15        * Scripts/webkitpy/tool/commands/queues.py:
     16
    1172011-04-22  Sam Weinig  <sam@webkit.org>
    218
  • trunk/Tools/Scripts/webkitpy/tool/bot/commitqueuetask_unittest.py

    r84658 r84704  
    3939from webkitpy.thirdparty.mock import Mock
    4040from webkitpy.tool.bot.commitqueuetask import *
     41from webkitpy.tool.bot.expectedfailures import ExpectedFailures
    4142from webkitpy.tool.mocktool import MockTool
    4243
     
    6465    def refetch_patch(self, patch):
    6566        return patch
     67
     68    def expected_failures(self):
     69        return ExpectedFailures()
    6670
    6771    def layout_test_results(self):
     
    377381                return patch
    378382
     383            def expected_failures(self):
     384                return ExpectedFailures()
     385
    379386        task = CommitQueueTask(MockDelegate(), patch)
    380387        self.assertEquals(task.validate(), is_valid)
  • trunk/Tools/Scripts/webkitpy/tool/bot/patchanalysistask.py

    r84658 r84704  
    2929from webkitpy.common.system.executive import ScriptError
    3030from webkitpy.common.net.layouttestresults import LayoutTestResults
    31 from webkitpy.tool.bot.expectedfailures import ExpectedFailures
    3231
    3332
     
    4645
    4746    def refetch_patch(self, patch):
     47        raise NotImplementedError("subclasses must implement")
     48
     49    def expected_failures(self):
    4850        raise NotImplementedError("subclasses must implement")
    4951
     
    6567        self._script_error = None
    6668        self._results_archive_from_patch_test_run = None
    67         self._expected_failures = ExpectedFailures()
     69        self._expected_failures = delegate.expected_failures()
     70        assert(self._expected_failures)
    6871
    6972    def _run_command(self, command, success_message, failure_message):
  • trunk/Tools/Scripts/webkitpy/tool/commands/queues.py

    r84689 r84704  
    4646from webkitpy.tool.bot.botinfo import BotInfo
    4747from webkitpy.tool.bot.commitqueuetask import CommitQueueTask, CommitQueueTaskDelegate
     48from webkitpy.tool.bot.expectedfailures import ExpectedFailures
    4849from webkitpy.tool.bot.feeders import CommitQueueFeeder, EWSFeeder
    4950from webkitpy.tool.bot.layouttestresultsreader import LayoutTestResultsReader
     
    251252        AbstractPatchQueue.begin_work_queue(self)
    252253        self.committer_validator = CommitterValidator(self._tool.bugs)
     254        self._expected_failures = ExpectedFailures()
    253255        self._layout_test_results_reader = LayoutTestResultsReader(self._tool, self._log_directory())
    254256
     
    312314        return self._update_status(message, patch=patch, results_file=failure_log)
    313315
     316    def expected_failures(self):
     317        return self._expected_failures
     318
    314319    def layout_test_results(self):
    315320        return self._layout_test_results_reader.results()
Note: See TracChangeset for help on using the changeset viewer.