Changeset 70731 in webkit


Ignore:
Timestamp:
Oct 27, 2010 5:05:07 PM (13 years ago)
Author:
eric@webkit.org
Message:

2010-10-27 Eric Seidel <eric@webkit.org>

Reviewed by Ojan Vafai.

EWS bots should not use --quiet when running build-webkit
https://bugs.webkit.org/show_bug.cgi?id=48482

--quiet is only correct when the sub-process does the error reporting.
In the case of _can_build() the parent process is reporting the error.
We'd like the full build log at queues.webkit.org so someone can look
at the log and understand why the EWS is failing to build trunk.

  • Scripts/webkitpy/layout_tests/port/chromium_win_unittest.py:
  • Scripts/webkitpy/tool/commands/earlywarningsystem.py:
  • Scripts/webkitpy/tool/commands/earlywarningsystem_unittest.py:
  • Scripts/webkitpy/tool/mocktool.py:
Location:
trunk/WebKitTools
Files:
5 edited

Legend:

Unmodified
Added
Removed
  • trunk/WebKitTools/ChangeLog

    r70728 r70731  
     12010-10-27  Eric Seidel  <eric@webkit.org>
     2
     3        Reviewed by Ojan Vafai.
     4
     5        EWS bots should not use --quiet when running build-webkit
     6        https://bugs.webkit.org/show_bug.cgi?id=48482
     7
     8        --quiet is only correct when the sub-process does the error reporting.
     9        In the case of _can_build() the parent process is reporting the error.
     10        We'd like the full build log at queues.webkit.org so someone can look
     11        at the log and understand why the EWS is failing to build trunk.
     12
     13        * Scripts/webkitpy/layout_tests/port/chromium_win_unittest.py:
     14        * Scripts/webkitpy/tool/commands/earlywarningsystem.py:
     15        * Scripts/webkitpy/tool/commands/earlywarningsystem_unittest.py:
     16        * Scripts/webkitpy/tool/mocktool.py:
     17
    1182010-10-27  Brian Weinstein  <bweinstein@apple.com>
    219
  • trunk/WebKitTools/Scripts/webkitpy/layout_tests/port/chromium_win_unittest.py

    r59666 r70731  
    5252    def test_setup_environ_for_server(self):
    5353        port = chromium_win.ChromiumWinPort()
    54         port._executive = mocktool.MockExecute(True)
     54        port._executive = mocktool.MockExecutive(should_log=True)
    5555        port.path_from_chromium_base = self._mock_path_from_chromium_base
    5656        output = outputcapture.OutputCapture()
     
    6464        port = chromium_win.ChromiumWinPort(
    6565            options=ChromiumWinTest.RegisterCygwinOption())
    66         port._executive = mocktool.MockExecute(True)
     66        port._executive = mocktool.MockExecutive(should_log=True)
    6767        port.path_from_chromium_base = self._mock_path_from_chromium_base
    6868        setup_mount = self._mock_path_from_chromium_base("third_party",
  • trunk/WebKitTools/Scripts/webkitpy/tool/commands/earlywarningsystem.py

    r70328 r70731  
    5151                "--build-style=%s" % self._build_style,
    5252                "--force-clean",
    53                 "--no-update",
    54                 "--quiet"])
     53                "--no-update"])
    5554            return True
    5655        except ScriptError, e:
  • trunk/WebKitTools/Scripts/webkitpy/tool/commands/earlywarningsystem_unittest.py

    r70382 r70731  
    3434from webkitpy.tool.commands.earlywarningsystem import *
    3535from webkitpy.tool.commands.queuestest import QueuesTest
    36 from webkitpy.tool.mocktool import MockTool
     36from webkitpy.tool.mocktool import MockTool, MockOptions
    3737
    3838
    3939class AbstractEarlyWarningSystemTest(QueuesTest):
     40    def test_can_build(self):
     41        # Needed to define port_name, used in AbstractEarlyWarningSystem.__init__
     42        class TestEWS(AbstractEarlyWarningSystem):
     43            port_name = "win"  # Needs to be a port which port/factory understands.
     44
     45        queue = TestEWS()
     46        queue.bind_to_tool(MockTool(log_executive=True))
     47        queue._options = MockOptions(port=None)
     48        expected_stderr = "MOCK run_and_throw_if_fail: ['echo', '--status-host=example.com', 'build', '--port=win', '--build-style=release', '--force-clean', '--no-update']\n"
     49        OutputCapture().assert_outputs(self, queue._can_build, [], expected_stderr=expected_stderr)
     50
     51        def mock_run_webkit_patch(args):
     52            raise ScriptError("MOCK script error")
     53
     54        queue.run_webkit_patch = mock_run_webkit_patch
     55        expected_stderr = "MOCK: update_status: None Unable to perform a build\n"
     56        OutputCapture().assert_outputs(self, queue._can_build, [], expected_stderr=expected_stderr)
     57
     58    # FIXME: This belongs on an AbstractReviewQueueTest object in queues_unittest.py
    4059    def test_subprocess_handled_error(self):
    4160        queue = AbstractReviewQueue()
  • trunk/WebKitTools/Scripts/webkitpy/tool/mocktool.py

    r70570 r70731  
    569569
    570570# FIXME: This should not inherit from Mock
    571 class MockExecute(Mock):
     571class MockExecutive(Mock):
    572572    def __init__(self, should_log):
    573573        self._should_log = should_log
     
    628628        self.bugs = MockBugzilla()
    629629        self.buildbot = MockBuildBot()
    630         self.executive = MockExecute(should_log=log_executive)
     630        self.executive = MockExecutive(should_log=log_executive)
    631631        self._irc = None
    632632        self.user = MockUser()
Note: See TracChangeset for help on using the changeset viewer.