Changeset 70374 in webkit


Ignore:
Timestamp:
Oct 22, 2010 5:41:07 PM (14 years ago)
Author:
eric@webkit.org
Message:

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

Reviewed by Adam Barth.

commit-queue should not pass --quiet to subcommands now that the parent command does the reporting
https://bugs.webkit.org/show_bug.cgi?id=48165

  • Scripts/webkitpy/tool/bot/commitqueuetask.py:
  • Scripts/webkitpy/tool/bot/commitqueuetask_unittest.py:
  • Scripts/webkitpy/tool/commands/queues_unittest.py:
Location:
trunk/WebKitTools
Files:
5 edited

Legend:

Unmodified
Added
Removed
  • trunk/WebKitTools/ChangeLog

    r70371 r70374  
     12010-10-22  Eric Seidel  <eric@webkit.org>
     2
     3        Reviewed by Adam Barth.
     4
     5        commit-queue should not pass --quiet to subcommands now that the parent command does the reporting
     6        https://bugs.webkit.org/show_bug.cgi?id=48165
     7
     8        * Scripts/webkitpy/tool/bot/commitqueuetask.py:
     9        * Scripts/webkitpy/tool/bot/commitqueuetask_unittest.py:
     10        * Scripts/webkitpy/tool/commands/queues_unittest.py:
     11
    1122010-10-22  Mario Sanchez Prada  <msanchez@igalia.com>
    213
  • trunk/WebKitTools/Scripts/webkitpy/tool/bot/commitqueuetask.py

    r69829 r70374  
    8686            "--force-clean",
    8787            "--non-interactive",
    88             "--quiet",
    8988            self._patch.id(),
    9089        ],
     
    9897            "--no-update",
    9998            "--build-style=both",
    100             "--quiet",
    10199        ],
    102100        "Built patch",
     
    109107            "--no-update",
    110108            "--build-style=both",
    111             "--quiet",
    112109        ],
    113110        "Able to build without patch",
     
    121118            # Notice that we don't pass --build, which means we won't build!
    122119            "--test",
    123             "--quiet",
    124120            "--non-interactive",
    125121        ],
     
    134130            "--build",
    135131            "--test",
    136             "--quiet",
    137132            "--non-interactive",
    138133        ],
     
    147142
    148143    def _land(self):
     144        # Unclear if this should pass --quiet or not.  If --parent-command always does the reporting, then it should.
    149145        return self._run_command([
    150146            "land-attachment",
    151147            "--force-clean",
    152148            "--ignore-builders",
    153             "--quiet",
    154149            "--non-interactive",
    155150            "--parent-command=commit-queue",
  • trunk/WebKitTools/Scripts/webkitpy/tool/bot/commitqueuetask_unittest.py

    r69829 r70374  
    7676    def test_success_case(self):
    7777        commit_queue = MockCommitQueue([])
    78         expected_stderr = """run_webkit_patch: ['apply-attachment', '--force-clean', '--non-interactive', '--quiet', 197]
    79 command_passed: success_message='Applied patch' patch='197'
    80 run_webkit_patch: ['build', '--no-clean', '--no-update', '--build-style=both', '--quiet']
    81 command_passed: success_message='Built patch' patch='197'
    82 run_webkit_patch: ['build-and-test', '--no-clean', '--no-update', '--test', '--quiet', '--non-interactive']
     78        expected_stderr = """run_webkit_patch: ['apply-attachment', '--force-clean', '--non-interactive', 197]
     79command_passed: success_message='Applied patch' patch='197'
     80run_webkit_patch: ['build', '--no-clean', '--no-update', '--build-style=both']
     81command_passed: success_message='Built patch' patch='197'
     82run_webkit_patch: ['build-and-test', '--no-clean', '--no-update', '--test', '--non-interactive']
    8383command_passed: success_message='Passed tests' patch='197'
    84 run_webkit_patch: ['land-attachment', '--force-clean', '--ignore-builders', '--quiet', '--non-interactive', '--parent-command=commit-queue', 197]
     84run_webkit_patch: ['land-attachment', '--force-clean', '--ignore-builders', '--non-interactive', '--parent-command=commit-queue', 197]
    8585command_passed: success_message='Landed patch' patch='197'
    8686"""
     
    9191            ScriptError("MOCK apply failure"),
    9292        ])
    93         expected_stderr = """run_webkit_patch: ['apply-attachment', '--force-clean', '--non-interactive', '--quiet', 197]
     93        expected_stderr = """run_webkit_patch: ['apply-attachment', '--force-clean', '--non-interactive', 197]
    9494command_failed: failure_message='Patch does not apply' script_error='MOCK apply failure' patch='197'
    9595"""
     
    101101            ScriptError("MOCK build failure"),
    102102        ])
    103         expected_stderr = """run_webkit_patch: ['apply-attachment', '--force-clean', '--non-interactive', '--quiet', 197]
    104 command_passed: success_message='Applied patch' patch='197'
    105 run_webkit_patch: ['build', '--no-clean', '--no-update', '--build-style=both', '--quiet']
     103        expected_stderr = """run_webkit_patch: ['apply-attachment', '--force-clean', '--non-interactive', 197]
     104command_passed: success_message='Applied patch' patch='197'
     105run_webkit_patch: ['build', '--no-clean', '--no-update', '--build-style=both']
    106106command_failed: failure_message='Patch does not build' script_error='MOCK build failure' patch='197'
    107 run_webkit_patch: ['build', '--force-clean', '--no-update', '--build-style=both', '--quiet']
     107run_webkit_patch: ['build', '--force-clean', '--no-update', '--build-style=both']
    108108command_passed: success_message='Able to build without patch' patch='197'
    109109"""
     
    116116            ScriptError("MOCK clean build failure"),
    117117        ])
    118         expected_stderr = """run_webkit_patch: ['apply-attachment', '--force-clean', '--non-interactive', '--quiet', 197]
    119 command_passed: success_message='Applied patch' patch='197'
    120 run_webkit_patch: ['build', '--no-clean', '--no-update', '--build-style=both', '--quiet']
     118        expected_stderr = """run_webkit_patch: ['apply-attachment', '--force-clean', '--non-interactive', 197]
     119command_passed: success_message='Applied patch' patch='197'
     120run_webkit_patch: ['build', '--no-clean', '--no-update', '--build-style=both']
    121121command_failed: failure_message='Patch does not build' script_error='MOCK build failure' patch='197'
    122 run_webkit_patch: ['build', '--force-clean', '--no-update', '--build-style=both', '--quiet']
     122run_webkit_patch: ['build', '--force-clean', '--no-update', '--build-style=both']
    123123command_failed: failure_message='Unable to build without patch' script_error='MOCK clean build failure' patch='197'
    124124"""
     
    131131            ScriptError("MOCK tests failure"),
    132132        ])
    133         expected_stderr = """run_webkit_patch: ['apply-attachment', '--force-clean', '--non-interactive', '--quiet', 197]
    134 command_passed: success_message='Applied patch' patch='197'
    135 run_webkit_patch: ['build', '--no-clean', '--no-update', '--build-style=both', '--quiet']
    136 command_passed: success_message='Built patch' patch='197'
    137 run_webkit_patch: ['build-and-test', '--no-clean', '--no-update', '--test', '--quiet', '--non-interactive']
     133        expected_stderr = """run_webkit_patch: ['apply-attachment', '--force-clean', '--non-interactive', 197]
     134command_passed: success_message='Applied patch' patch='197'
     135run_webkit_patch: ['build', '--no-clean', '--no-update', '--build-style=both']
     136command_passed: success_message='Built patch' patch='197'
     137run_webkit_patch: ['build-and-test', '--no-clean', '--no-update', '--test', '--non-interactive']
    138138command_failed: failure_message='Patch does not pass tests' script_error='MOCK tests failure' patch='197'
    139 run_webkit_patch: ['build-and-test', '--no-clean', '--no-update', '--test', '--quiet', '--non-interactive']
     139run_webkit_patch: ['build-and-test', '--no-clean', '--no-update', '--test', '--non-interactive']
    140140command_passed: success_message='Passed tests' patch='197'
    141141report_flaky_tests: patch='197' flaky_tests='None'
    142 run_webkit_patch: ['land-attachment', '--force-clean', '--ignore-builders', '--quiet', '--non-interactive', '--parent-command=commit-queue', 197]
     142run_webkit_patch: ['land-attachment', '--force-clean', '--ignore-builders', '--non-interactive', '--parent-command=commit-queue', 197]
    143143command_passed: success_message='Landed patch' patch='197'
    144144"""
     
    152152            ScriptError("MOCK test failure again"),
    153153        ])
    154         expected_stderr = """run_webkit_patch: ['apply-attachment', '--force-clean', '--non-interactive', '--quiet', 197]
    155 command_passed: success_message='Applied patch' patch='197'
    156 run_webkit_patch: ['build', '--no-clean', '--no-update', '--build-style=both', '--quiet']
    157 command_passed: success_message='Built patch' patch='197'
    158 run_webkit_patch: ['build-and-test', '--no-clean', '--no-update', '--test', '--quiet', '--non-interactive']
     154        expected_stderr = """run_webkit_patch: ['apply-attachment', '--force-clean', '--non-interactive', 197]
     155command_passed: success_message='Applied patch' patch='197'
     156run_webkit_patch: ['build', '--no-clean', '--no-update', '--build-style=both']
     157command_passed: success_message='Built patch' patch='197'
     158run_webkit_patch: ['build-and-test', '--no-clean', '--no-update', '--test', '--non-interactive']
    159159command_failed: failure_message='Patch does not pass tests' script_error='MOCK test failure' patch='197'
    160 run_webkit_patch: ['build-and-test', '--no-clean', '--no-update', '--test', '--quiet', '--non-interactive']
     160run_webkit_patch: ['build-and-test', '--no-clean', '--no-update', '--test', '--non-interactive']
    161161command_failed: failure_message='Patch does not pass tests' script_error='MOCK test failure again' patch='197'
    162 run_webkit_patch: ['build-and-test', '--force-clean', '--no-update', '--build', '--test', '--quiet', '--non-interactive']
     162run_webkit_patch: ['build-and-test', '--force-clean', '--no-update', '--build', '--test', '--non-interactive']
    163163command_passed: success_message='Able to pass tests without patch' patch='197'
    164164"""
     
    173173            ScriptError("MOCK clean test failure"),
    174174        ])
    175         expected_stderr = """run_webkit_patch: ['apply-attachment', '--force-clean', '--non-interactive', '--quiet', 197]
    176 command_passed: success_message='Applied patch' patch='197'
    177 run_webkit_patch: ['build', '--no-clean', '--no-update', '--build-style=both', '--quiet']
    178 command_passed: success_message='Built patch' patch='197'
    179 run_webkit_patch: ['build-and-test', '--no-clean', '--no-update', '--test', '--quiet', '--non-interactive']
     175        expected_stderr = """run_webkit_patch: ['apply-attachment', '--force-clean', '--non-interactive', 197]
     176command_passed: success_message='Applied patch' patch='197'
     177run_webkit_patch: ['build', '--no-clean', '--no-update', '--build-style=both']
     178command_passed: success_message='Built patch' patch='197'
     179run_webkit_patch: ['build-and-test', '--no-clean', '--no-update', '--test', '--non-interactive']
    180180command_failed: failure_message='Patch does not pass tests' script_error='MOCK test failure' patch='197'
    181 run_webkit_patch: ['build-and-test', '--no-clean', '--no-update', '--test', '--quiet', '--non-interactive']
     181run_webkit_patch: ['build-and-test', '--no-clean', '--no-update', '--test', '--non-interactive']
    182182command_failed: failure_message='Patch does not pass tests' script_error='MOCK test failure again' patch='197'
    183 run_webkit_patch: ['build-and-test', '--force-clean', '--no-update', '--build', '--test', '--quiet', '--non-interactive']
     183run_webkit_patch: ['build-and-test', '--force-clean', '--no-update', '--build', '--test', '--non-interactive']
    184184command_failed: failure_message='Unable to pass tests without patch (tree is red?)' script_error='MOCK clean test failure' patch='197'
    185185"""
     
    193193            ScriptError("MOCK land failure"),
    194194        ])
    195         expected_stderr = """run_webkit_patch: ['apply-attachment', '--force-clean', '--non-interactive', '--quiet', 197]
    196 command_passed: success_message='Applied patch' patch='197'
    197 run_webkit_patch: ['build', '--no-clean', '--no-update', '--build-style=both', '--quiet']
    198 command_passed: success_message='Built patch' patch='197'
    199 run_webkit_patch: ['build-and-test', '--no-clean', '--no-update', '--test', '--quiet', '--non-interactive']
     195        expected_stderr = """run_webkit_patch: ['apply-attachment', '--force-clean', '--non-interactive', 197]
     196command_passed: success_message='Applied patch' patch='197'
     197run_webkit_patch: ['build', '--no-clean', '--no-update', '--build-style=both']
     198command_passed: success_message='Built patch' patch='197'
     199run_webkit_patch: ['build-and-test', '--no-clean', '--no-update', '--test', '--non-interactive']
    200200command_passed: success_message='Passed tests' patch='197'
    201 run_webkit_patch: ['land-attachment', '--force-clean', '--ignore-builders', '--quiet', '--non-interactive', '--parent-command=commit-queue', 197]
     201run_webkit_patch: ['land-attachment', '--force-clean', '--ignore-builders', '--non-interactive', '--parent-command=commit-queue', 197]
    202202command_failed: failure_message='Unable to land patch' script_error='MOCK land failure' patch='197'
    203203"""
  • trunk/WebKitTools/Scripts/webkitpy/tool/commands/queues.py

    r70254 r70374  
    8888            webkit_patch_args += ["--port=%s" % self._options.port]
    8989        webkit_patch_args.extend(args)
     90        # FIXME: There is probably no reason to use run_and_throw_if_fail anymore.
     91        # run_and_throw_if_fail was invented to support tee'd output
     92        # (where we write both to a log file and to the console at once),
     93        # but the queues don't need live-progress, a dump-of-output at the
     94        # end should be sufficient.
    9095        return self._tool.executive.run_and_throw_if_fail(webkit_patch_args)
    9196
  • trunk/WebKitTools/Scripts/webkitpy/tool/commands/queues_unittest.py

    r70328 r70374  
    240240            "should_proceed_with_work_item": "MOCK: update_status: commit-queue Processing patch\n",
    241241            "next_work_item": "",
    242             "process_work_item": """MOCK run_and_throw_if_fail: ['echo', '--status-host=example.com', 'apply-attachment', '--force-clean', '--non-interactive', '--quiet', 197]
     242            "process_work_item": """MOCK run_and_throw_if_fail: ['echo', '--status-host=example.com', 'apply-attachment', '--force-clean', '--non-interactive', 197]
    243243MOCK: update_status: commit-queue Applied patch
    244 MOCK run_and_throw_if_fail: ['echo', '--status-host=example.com', 'build', '--no-clean', '--no-update', '--build-style=both', '--quiet']
     244MOCK run_and_throw_if_fail: ['echo', '--status-host=example.com', 'build', '--no-clean', '--no-update', '--build-style=both']
    245245MOCK: update_status: commit-queue Built patch
    246 MOCK run_and_throw_if_fail: ['echo', '--status-host=example.com', 'build-and-test', '--no-clean', '--no-update', '--test', '--quiet', '--non-interactive']
     246MOCK run_and_throw_if_fail: ['echo', '--status-host=example.com', 'build-and-test', '--no-clean', '--no-update', '--test', '--non-interactive']
    247247MOCK: update_status: commit-queue Passed tests
    248 MOCK run_and_throw_if_fail: ['echo', '--status-host=example.com', 'land-attachment', '--force-clean', '--ignore-builders', '--quiet', '--non-interactive', '--parent-command=commit-queue', 197]
     248MOCK run_and_throw_if_fail: ['echo', '--status-host=example.com', 'land-attachment', '--force-clean', '--ignore-builders', '--non-interactive', '--parent-command=commit-queue', 197]
    249249MOCK: update_status: commit-queue Landed patch
    250250MOCK: update_status: commit-queue Pass
     
    265265            "should_proceed_with_work_item": "MOCK: update_status: commit-queue Processing rollout patch\n",
    266266            "next_work_item": "",
    267             "process_work_item": """MOCK run_and_throw_if_fail: ['echo', '--status-host=example.com', 'apply-attachment', '--force-clean', '--non-interactive', '--quiet', 106]
     267            "process_work_item": """MOCK run_and_throw_if_fail: ['echo', '--status-host=example.com', 'apply-attachment', '--force-clean', '--non-interactive', 106]
    268268MOCK: update_status: commit-queue Applied patch
    269 MOCK run_and_throw_if_fail: ['echo', '--status-host=example.com', 'build', '--no-clean', '--no-update', '--build-style=both', '--quiet']
     269MOCK run_and_throw_if_fail: ['echo', '--status-host=example.com', 'build', '--no-clean', '--no-update', '--build-style=both']
    270270MOCK: update_status: commit-queue Built patch
    271 MOCK run_and_throw_if_fail: ['echo', '--status-host=example.com', 'land-attachment', '--force-clean', '--ignore-builders', '--quiet', '--non-interactive', '--parent-command=commit-queue', 106]
     271MOCK run_and_throw_if_fail: ['echo', '--status-host=example.com', 'land-attachment', '--force-clean', '--ignore-builders', '--non-interactive', '--parent-command=commit-queue', 106]
    272272MOCK: update_status: commit-queue Landed patch
    273273MOCK: update_status: commit-queue Pass
Note: See TracChangeset for help on using the changeset viewer.