Changeset 95543 in webkit
- Timestamp:
- Sep 20, 2011 8:43:07 AM (13 years ago)
- Location:
- trunk/Tools
- Files:
-
- 16 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Tools/ChangeLog
r95541 r95543 1 2011-09-20 Tom Zakrajsek <tomz@codeaurora.org> 2 3 Fix patch and bug numbering in the mocktool simulation code 4 https://bugs.webkit.org/show_bug.cgi?id=68374 5 6 Reviewed by Adam Barth. 7 8 * Scripts/webkitpy/tool/bot/commitqueuetask_unittest.py: 9 * Scripts/webkitpy/tool/bot/feeders_unittest.py: 10 * Scripts/webkitpy/tool/bot/flakytestreporter_unittest.py: 11 * Scripts/webkitpy/tool/bot/irc_command_unittest.py: 12 * Scripts/webkitpy/tool/bot/layouttestresultsreader_unittest.py: 13 * Scripts/webkitpy/tool/bot/queueengine_unittest.py: 14 * Scripts/webkitpy/tool/commands/download_unittest.py: 15 * Scripts/webkitpy/tool/commands/earlywarningsystem_unittest.py: 16 * Scripts/webkitpy/tool/commands/queries_unittest.py: 17 * Scripts/webkitpy/tool/commands/queues_unittest.py: 18 * Scripts/webkitpy/tool/commands/queuestest.py: 19 * Scripts/webkitpy/tool/commands/upload_unittest.py: 20 * Scripts/webkitpy/tool/mocktool.py: 21 * Scripts/webkitpy/tool/steps/steps_unittest.py: 22 * Scripts/webkitpy/tool/steps/updatechangelogswithreview_unittest.py: 23 1 24 2011-09-20 Tor Arne Vestbø <tor.arne.vestbo@nokia.com> 2 25 -
trunk/Tools/Scripts/webkitpy/tool/bot/commitqueuetask_unittest.py
r94978 r95543 119 119 def _run_through_task(self, commit_queue, expected_stderr, expected_exception=None, expect_retry=False): 120 120 tool = MockTool(log_executive=True) 121 patch = tool.bugs.fetch_attachment(1 97)121 patch = tool.bugs.fetch_attachment(10000) 122 122 task = CommitQueueTask(commit_queue, patch) 123 123 success = OutputCapture().assert_outputs(self, task.run, expected_stderr=expected_stderr, expected_exception=expected_exception) … … 129 129 commit_queue = MockCommitQueue([]) 130 130 expected_stderr = """run_webkit_patch: ['clean'] 131 command_passed: success_message='Cleaned working directory' patch='1 97'132 run_webkit_patch: ['update'] 133 command_passed: success_message='Updated working directory' patch='1 97'134 run_webkit_patch: ['apply-attachment', '--no-update', '--non-interactive', 1 97]135 command_passed: success_message='Applied patch' patch='1 97'136 run_webkit_patch: ['build', '--no-clean', '--no-update', '--build-style=both'] 137 command_passed: success_message='Built patch' patch='1 97'138 run_webkit_patch: ['build-and-test', '--no-clean', '--no-update', '--test', '--non-interactive'] 139 command_passed: success_message='Passed tests' patch='1 97'140 run_webkit_patch: ['land-attachment', '--force-clean', '--non-interactive', '--parent-command=commit-queue', 1 97]141 command_passed: success_message='Landed patch' patch='1 97'131 command_passed: success_message='Cleaned working directory' patch='10000' 132 run_webkit_patch: ['update'] 133 command_passed: success_message='Updated working directory' patch='10000' 134 run_webkit_patch: ['apply-attachment', '--no-update', '--non-interactive', 10000] 135 command_passed: success_message='Applied patch' patch='10000' 136 run_webkit_patch: ['build', '--no-clean', '--no-update', '--build-style=both'] 137 command_passed: success_message='Built patch' patch='10000' 138 run_webkit_patch: ['build-and-test', '--no-clean', '--no-update', '--test', '--non-interactive'] 139 command_passed: success_message='Passed tests' patch='10000' 140 run_webkit_patch: ['land-attachment', '--force-clean', '--non-interactive', '--parent-command=commit-queue', 10000] 141 command_passed: success_message='Landed patch' patch='10000' 142 142 """ 143 143 self._run_through_task(commit_queue, expected_stderr) … … 148 148 ]) 149 149 expected_stderr = """run_webkit_patch: ['clean'] 150 command_failed: failure_message='Unable to clean working directory' script_error='MOCK clean failure' patch='1 97'150 command_failed: failure_message='Unable to clean working directory' script_error='MOCK clean failure' patch='10000' 151 151 """ 152 152 self._run_through_task(commit_queue, expected_stderr, expect_retry=True) … … 158 158 ]) 159 159 expected_stderr = """run_webkit_patch: ['clean'] 160 command_passed: success_message='Cleaned working directory' patch='1 97'161 run_webkit_patch: ['update'] 162 command_failed: failure_message='Unable to update working directory' script_error='MOCK update failure' patch='1 97'160 command_passed: success_message='Cleaned working directory' patch='10000' 161 run_webkit_patch: ['update'] 162 command_failed: failure_message='Unable to update working directory' script_error='MOCK update failure' patch='10000' 163 163 """ 164 164 self._run_through_task(commit_queue, expected_stderr, expect_retry=True) … … 171 171 ]) 172 172 expected_stderr = """run_webkit_patch: ['clean'] 173 command_passed: success_message='Cleaned working directory' patch='1 97'174 run_webkit_patch: ['update'] 175 command_passed: success_message='Updated working directory' patch='1 97'176 run_webkit_patch: ['apply-attachment', '--no-update', '--non-interactive', 1 97]177 command_failed: failure_message='Patch does not apply' script_error='MOCK apply failure' patch='1 97'173 command_passed: success_message='Cleaned working directory' patch='10000' 174 run_webkit_patch: ['update'] 175 command_passed: success_message='Updated working directory' patch='10000' 176 run_webkit_patch: ['apply-attachment', '--no-update', '--non-interactive', 10000] 177 command_failed: failure_message='Patch does not apply' script_error='MOCK apply failure' patch='10000' 178 178 """ 179 179 self._run_through_task(commit_queue, expected_stderr, GoldenScriptError) … … 187 187 ]) 188 188 expected_stderr = """run_webkit_patch: ['clean'] 189 command_passed: success_message='Cleaned working directory' patch='1 97'190 run_webkit_patch: ['update'] 191 command_passed: success_message='Updated working directory' patch='1 97'192 run_webkit_patch: ['apply-attachment', '--no-update', '--non-interactive', 1 97]193 command_passed: success_message='Applied patch' patch='1 97'194 run_webkit_patch: ['build', '--no-clean', '--no-update', '--build-style=both'] 195 command_failed: failure_message='Patch does not build' script_error='MOCK build failure' patch='1 97'189 command_passed: success_message='Cleaned working directory' patch='10000' 190 run_webkit_patch: ['update'] 191 command_passed: success_message='Updated working directory' patch='10000' 192 run_webkit_patch: ['apply-attachment', '--no-update', '--non-interactive', 10000] 193 command_passed: success_message='Applied patch' patch='10000' 194 run_webkit_patch: ['build', '--no-clean', '--no-update', '--build-style=both'] 195 command_failed: failure_message='Patch does not build' script_error='MOCK build failure' patch='10000' 196 196 run_webkit_patch: ['build', '--force-clean', '--no-update', '--build-style=both'] 197 command_passed: success_message='Able to build without patch' patch='1 97'197 command_passed: success_message='Able to build without patch' patch='10000' 198 198 """ 199 199 self._run_through_task(commit_queue, expected_stderr, GoldenScriptError) … … 208 208 ]) 209 209 expected_stderr = """run_webkit_patch: ['clean'] 210 command_passed: success_message='Cleaned working directory' patch='1 97'211 run_webkit_patch: ['update'] 212 command_passed: success_message='Updated working directory' patch='1 97'213 run_webkit_patch: ['apply-attachment', '--no-update', '--non-interactive', 1 97]214 command_passed: success_message='Applied patch' patch='1 97'215 run_webkit_patch: ['build', '--no-clean', '--no-update', '--build-style=both'] 216 command_failed: failure_message='Patch does not build' script_error='MOCK build failure' patch='1 97'210 command_passed: success_message='Cleaned working directory' patch='10000' 211 run_webkit_patch: ['update'] 212 command_passed: success_message='Updated working directory' patch='10000' 213 run_webkit_patch: ['apply-attachment', '--no-update', '--non-interactive', 10000] 214 command_passed: success_message='Applied patch' patch='10000' 215 run_webkit_patch: ['build', '--no-clean', '--no-update', '--build-style=both'] 216 command_failed: failure_message='Patch does not build' script_error='MOCK build failure' patch='10000' 217 217 run_webkit_patch: ['build', '--force-clean', '--no-update', '--build-style=both'] 218 command_failed: failure_message='Unable to build without patch' script_error='MOCK clean build failure' patch='1 97'218 command_failed: failure_message='Unable to build without patch' script_error='MOCK clean build failure' patch='10000' 219 219 """ 220 220 self._run_through_task(commit_queue, expected_stderr, expect_retry=True) … … 232 232 commit_queue.layout_test_results = lambda: LayoutTestResults([]) 233 233 expected_stderr = """run_webkit_patch: ['clean'] 234 command_passed: success_message='Cleaned working directory' patch='1 97'235 run_webkit_patch: ['update'] 236 command_passed: success_message='Updated working directory' patch='1 97'237 run_webkit_patch: ['apply-attachment', '--no-update', '--non-interactive', 1 97]238 command_passed: success_message='Applied patch' patch='1 97'239 run_webkit_patch: ['build', '--no-clean', '--no-update', '--build-style=both'] 240 command_passed: success_message='Built patch' patch='1 97'241 run_webkit_patch: ['build-and-test', '--no-clean', '--no-update', '--test', '--non-interactive'] 242 command_failed: failure_message='Patch does not pass tests' script_error='MOCK tests failure' patch='1 97'243 archive_last_layout_test_results: patch='1 97'244 run_webkit_patch: ['build-and-test', '--no-clean', '--no-update', '--test', '--non-interactive'] 245 command_passed: success_message='Passed tests' patch='1 97'246 report_flaky_tests: patch='1 97' flaky_tests='[]' archive='mock-archive-197.zip'247 run_webkit_patch: ['land-attachment', '--force-clean', '--non-interactive', '--parent-command=commit-queue', 1 97]248 command_passed: success_message='Landed patch' patch='1 97'234 command_passed: success_message='Cleaned working directory' patch='10000' 235 run_webkit_patch: ['update'] 236 command_passed: success_message='Updated working directory' patch='10000' 237 run_webkit_patch: ['apply-attachment', '--no-update', '--non-interactive', 10000] 238 command_passed: success_message='Applied patch' patch='10000' 239 run_webkit_patch: ['build', '--no-clean', '--no-update', '--build-style=both'] 240 command_passed: success_message='Built patch' patch='10000' 241 run_webkit_patch: ['build-and-test', '--no-clean', '--no-update', '--test', '--non-interactive'] 242 command_failed: failure_message='Patch does not pass tests' script_error='MOCK tests failure' patch='10000' 243 archive_last_layout_test_results: patch='10000' 244 run_webkit_patch: ['build-and-test', '--no-clean', '--no-update', '--test', '--non-interactive'] 245 command_passed: success_message='Passed tests' patch='10000' 246 report_flaky_tests: patch='10000' flaky_tests='[]' archive='mock-archive-10000.zip' 247 run_webkit_patch: ['land-attachment', '--force-clean', '--non-interactive', '--parent-command=commit-queue', 10000] 248 command_passed: success_message='Landed patch' patch='10000' 249 249 """ 250 250 self._run_through_task(commit_queue, expected_stderr) … … 263 263 commit_queue.archive_last_layout_test_results = lambda patch: None 264 264 expected_stderr = """run_webkit_patch: ['clean'] 265 command_passed: success_message='Cleaned working directory' patch='1 97'266 run_webkit_patch: ['update'] 267 command_passed: success_message='Updated working directory' patch='1 97'268 run_webkit_patch: ['apply-attachment', '--no-update', '--non-interactive', 1 97]269 command_passed: success_message='Applied patch' patch='1 97'270 run_webkit_patch: ['build', '--no-clean', '--no-update', '--build-style=both'] 271 command_passed: success_message='Built patch' patch='1 97'272 run_webkit_patch: ['build-and-test', '--no-clean', '--no-update', '--test', '--non-interactive'] 273 command_failed: failure_message='Patch does not pass tests' script_error='MOCK tests failure' patch='1 97'274 run_webkit_patch: ['build-and-test', '--no-clean', '--no-update', '--test', '--non-interactive'] 275 command_passed: success_message='Passed tests' patch='1 97'276 run_webkit_patch: ['land-attachment', '--force-clean', '--non-interactive', '--parent-command=commit-queue', 1 97]277 command_passed: success_message='Landed patch' patch='1 97'265 command_passed: success_message='Cleaned working directory' patch='10000' 266 run_webkit_patch: ['update'] 267 command_passed: success_message='Updated working directory' patch='10000' 268 run_webkit_patch: ['apply-attachment', '--no-update', '--non-interactive', 10000] 269 command_passed: success_message='Applied patch' patch='10000' 270 run_webkit_patch: ['build', '--no-clean', '--no-update', '--build-style=both'] 271 command_passed: success_message='Built patch' patch='10000' 272 run_webkit_patch: ['build-and-test', '--no-clean', '--no-update', '--test', '--non-interactive'] 273 command_failed: failure_message='Patch does not pass tests' script_error='MOCK tests failure' patch='10000' 274 run_webkit_patch: ['build-and-test', '--no-clean', '--no-update', '--test', '--non-interactive'] 275 command_passed: success_message='Passed tests' patch='10000' 276 run_webkit_patch: ['land-attachment', '--force-clean', '--non-interactive', '--parent-command=commit-queue', 10000] 277 command_passed: success_message='Landed patch' patch='10000' 278 278 """ 279 279 self._run_through_task(commit_queue, expected_stderr) … … 296 296 # Note also that there is no attempt to run the tests w/o the patch. 297 297 expected_stderr = """run_webkit_patch: ['clean'] 298 command_passed: success_message='Cleaned working directory' patch='1 97'299 run_webkit_patch: ['update'] 300 command_passed: success_message='Updated working directory' patch='1 97'301 run_webkit_patch: ['apply-attachment', '--no-update', '--non-interactive', 1 97]302 command_passed: success_message='Applied patch' patch='1 97'303 run_webkit_patch: ['build', '--no-clean', '--no-update', '--build-style=both'] 304 command_passed: success_message='Built patch' patch='1 97'305 run_webkit_patch: ['build-and-test', '--no-clean', '--no-update', '--test', '--non-interactive'] 306 command_failed: failure_message='Patch does not pass tests' script_error='MOCK test failure' patch='1 97'307 archive_last_layout_test_results: patch='1 97'308 run_webkit_patch: ['build-and-test', '--no-clean', '--no-update', '--test', '--non-interactive'] 309 command_failed: failure_message='Patch does not pass tests' script_error='MOCK test failure again' patch='1 97'298 command_passed: success_message='Cleaned working directory' patch='10000' 299 run_webkit_patch: ['update'] 300 command_passed: success_message='Updated working directory' patch='10000' 301 run_webkit_patch: ['apply-attachment', '--no-update', '--non-interactive', 10000] 302 command_passed: success_message='Applied patch' patch='10000' 303 run_webkit_patch: ['build', '--no-clean', '--no-update', '--build-style=both'] 304 command_passed: success_message='Built patch' patch='10000' 305 run_webkit_patch: ['build-and-test', '--no-clean', '--no-update', '--test', '--non-interactive'] 306 command_failed: failure_message='Patch does not pass tests' script_error='MOCK test failure' patch='10000' 307 archive_last_layout_test_results: patch='10000' 308 run_webkit_patch: ['build-and-test', '--no-clean', '--no-update', '--test', '--non-interactive'] 309 command_failed: failure_message='Patch does not pass tests' script_error='MOCK test failure again' patch='10000' 310 310 """ 311 311 tool = MockTool(log_executive=True) 312 patch = tool.bugs.fetch_attachment(1 97)312 patch = tool.bugs.fetch_attachment(10000) 313 313 task = CommitQueueTask(commit_queue, patch) 314 314 success = OutputCapture().assert_outputs(self, task.run, expected_stderr=expected_stderr) … … 325 325 ]) 326 326 expected_stderr = """run_webkit_patch: ['clean'] 327 command_passed: success_message='Cleaned working directory' patch='1 97'328 run_webkit_patch: ['update'] 329 command_passed: success_message='Updated working directory' patch='1 97'330 run_webkit_patch: ['apply-attachment', '--no-update', '--non-interactive', 1 97]331 command_passed: success_message='Applied patch' patch='1 97'332 run_webkit_patch: ['build', '--no-clean', '--no-update', '--build-style=both'] 333 command_passed: success_message='Built patch' patch='1 97'334 run_webkit_patch: ['build-and-test', '--no-clean', '--no-update', '--test', '--non-interactive'] 335 command_failed: failure_message='Patch does not pass tests' script_error='MOCK test failure' patch='1 97'336 archive_last_layout_test_results: patch='1 97'337 run_webkit_patch: ['build-and-test', '--no-clean', '--no-update', '--test', '--non-interactive'] 338 command_failed: failure_message='Patch does not pass tests' script_error='MOCK test failure again' patch='1 97'339 archive_last_layout_test_results: patch='1 97'327 command_passed: success_message='Cleaned working directory' patch='10000' 328 run_webkit_patch: ['update'] 329 command_passed: success_message='Updated working directory' patch='10000' 330 run_webkit_patch: ['apply-attachment', '--no-update', '--non-interactive', 10000] 331 command_passed: success_message='Applied patch' patch='10000' 332 run_webkit_patch: ['build', '--no-clean', '--no-update', '--build-style=both'] 333 command_passed: success_message='Built patch' patch='10000' 334 run_webkit_patch: ['build-and-test', '--no-clean', '--no-update', '--test', '--non-interactive'] 335 command_failed: failure_message='Patch does not pass tests' script_error='MOCK test failure' patch='10000' 336 archive_last_layout_test_results: patch='10000' 337 run_webkit_patch: ['build-and-test', '--no-clean', '--no-update', '--test', '--non-interactive'] 338 command_failed: failure_message='Patch does not pass tests' script_error='MOCK test failure again' patch='10000' 339 archive_last_layout_test_results: patch='10000' 340 340 run_webkit_patch: ['build-and-test', '--force-clean', '--no-update', '--build', '--test', '--non-interactive'] 341 command_passed: success_message='Able to pass tests without patch' patch='1 97'341 command_passed: success_message='Able to pass tests without patch' patch='10000' 342 342 """ 343 343 self._run_through_task(commit_queue, expected_stderr, GoldenScriptError) … … 361 361 # should still be able to land in this case! 362 362 expected_stderr = """run_webkit_patch: ['clean'] 363 command_passed: success_message='Cleaned working directory' patch='1 97'364 run_webkit_patch: ['update'] 365 command_passed: success_message='Updated working directory' patch='1 97'366 run_webkit_patch: ['apply-attachment', '--no-update', '--non-interactive', 1 97]367 command_passed: success_message='Applied patch' patch='1 97'368 run_webkit_patch: ['build', '--no-clean', '--no-update', '--build-style=both'] 369 command_passed: success_message='Built patch' patch='1 97'370 run_webkit_patch: ['build-and-test', '--no-clean', '--no-update', '--test', '--non-interactive'] 371 command_failed: failure_message='Patch does not pass tests' script_error='MOCK test failure' patch='1 97'372 archive_last_layout_test_results: patch='1 97'373 run_webkit_patch: ['build-and-test', '--no-clean', '--no-update', '--test', '--non-interactive'] 374 command_failed: failure_message='Patch does not pass tests' script_error='MOCK test failure again' patch='1 97'375 archive_last_layout_test_results: patch='1 97'363 command_passed: success_message='Cleaned working directory' patch='10000' 364 run_webkit_patch: ['update'] 365 command_passed: success_message='Updated working directory' patch='10000' 366 run_webkit_patch: ['apply-attachment', '--no-update', '--non-interactive', 10000] 367 command_passed: success_message='Applied patch' patch='10000' 368 run_webkit_patch: ['build', '--no-clean', '--no-update', '--build-style=both'] 369 command_passed: success_message='Built patch' patch='10000' 370 run_webkit_patch: ['build-and-test', '--no-clean', '--no-update', '--test', '--non-interactive'] 371 command_failed: failure_message='Patch does not pass tests' script_error='MOCK test failure' patch='10000' 372 archive_last_layout_test_results: patch='10000' 373 run_webkit_patch: ['build-and-test', '--no-clean', '--no-update', '--test', '--non-interactive'] 374 command_failed: failure_message='Patch does not pass tests' script_error='MOCK test failure again' patch='10000' 375 archive_last_layout_test_results: patch='10000' 376 376 run_webkit_patch: ['build-and-test', '--force-clean', '--no-update', '--build', '--test', '--non-interactive'] 377 command_failed: failure_message='Unable to pass tests without patch (tree is red?)' script_error='MOCK clean test failure' patch='1 97'378 run_webkit_patch: ['land-attachment', '--force-clean', '--non-interactive', '--parent-command=commit-queue', 1 97]379 command_passed: success_message='Landed patch' patch='1 97'377 command_failed: failure_message='Unable to pass tests without patch (tree is red?)' script_error='MOCK clean test failure' patch='10000' 378 run_webkit_patch: ['land-attachment', '--force-clean', '--non-interactive', '--parent-command=commit-queue', 10000] 379 command_passed: success_message='Landed patch' patch='10000' 380 380 """ 381 381 self._run_through_task(commit_queue, expected_stderr) … … 401 401 # just give up and retry the patch. 402 402 expected_stderr = """run_webkit_patch: ['clean'] 403 command_passed: success_message='Cleaned working directory' patch='1 97'404 run_webkit_patch: ['update'] 405 command_passed: success_message='Updated working directory' patch='1 97'406 run_webkit_patch: ['apply-attachment', '--no-update', '--non-interactive', 1 97]407 command_passed: success_message='Applied patch' patch='1 97'408 run_webkit_patch: ['build', '--no-clean', '--no-update', '--build-style=both'] 409 command_passed: success_message='Built patch' patch='1 97'410 run_webkit_patch: ['build-and-test', '--no-clean', '--no-update', '--test', '--non-interactive'] 411 command_failed: failure_message='Patch does not pass tests' script_error='MOCK test failure' patch='1 97'412 archive_last_layout_test_results: patch='1 97'413 run_webkit_patch: ['build-and-test', '--no-clean', '--no-update', '--test', '--non-interactive'] 414 command_failed: failure_message='Patch does not pass tests' script_error='MOCK test failure again' patch='1 97'415 archive_last_layout_test_results: patch='1 97'403 command_passed: success_message='Cleaned working directory' patch='10000' 404 run_webkit_patch: ['update'] 405 command_passed: success_message='Updated working directory' patch='10000' 406 run_webkit_patch: ['apply-attachment', '--no-update', '--non-interactive', 10000] 407 command_passed: success_message='Applied patch' patch='10000' 408 run_webkit_patch: ['build', '--no-clean', '--no-update', '--build-style=both'] 409 command_passed: success_message='Built patch' patch='10000' 410 run_webkit_patch: ['build-and-test', '--no-clean', '--no-update', '--test', '--non-interactive'] 411 command_failed: failure_message='Patch does not pass tests' script_error='MOCK test failure' patch='10000' 412 archive_last_layout_test_results: patch='10000' 413 run_webkit_patch: ['build-and-test', '--no-clean', '--no-update', '--test', '--non-interactive'] 414 command_failed: failure_message='Patch does not pass tests' script_error='MOCK test failure again' patch='10000' 415 archive_last_layout_test_results: patch='10000' 416 416 run_webkit_patch: ['build-and-test', '--force-clean', '--no-update', '--build', '--test', '--non-interactive'] 417 command_failed: failure_message='Unable to pass tests without patch (tree is red?)' script_error='MOCK clean test failure' patch='1 97'417 command_failed: failure_message='Unable to pass tests without patch (tree is red?)' script_error='MOCK clean test failure' patch='10000' 418 418 """ 419 419 self._run_through_task(commit_queue, expected_stderr, expect_retry=True) … … 437 437 # while the patch fails two. So we should reject the patch! 438 438 expected_stderr = """run_webkit_patch: ['clean'] 439 command_passed: success_message='Cleaned working directory' patch='1 97'440 run_webkit_patch: ['update'] 441 command_passed: success_message='Updated working directory' patch='1 97'442 run_webkit_patch: ['apply-attachment', '--no-update', '--non-interactive', 1 97]443 command_passed: success_message='Applied patch' patch='1 97'444 run_webkit_patch: ['build', '--no-clean', '--no-update', '--build-style=both'] 445 command_passed: success_message='Built patch' patch='1 97'446 run_webkit_patch: ['build-and-test', '--no-clean', '--no-update', '--test', '--non-interactive'] 447 command_failed: failure_message='Patch does not pass tests' script_error='MOCK test failure' patch='1 97'448 archive_last_layout_test_results: patch='1 97'449 run_webkit_patch: ['build-and-test', '--no-clean', '--no-update', '--test', '--non-interactive'] 450 command_failed: failure_message='Patch does not pass tests' script_error='MOCK test failure again' patch='1 97'451 archive_last_layout_test_results: patch='1 97'439 command_passed: success_message='Cleaned working directory' patch='10000' 440 run_webkit_patch: ['update'] 441 command_passed: success_message='Updated working directory' patch='10000' 442 run_webkit_patch: ['apply-attachment', '--no-update', '--non-interactive', 10000] 443 command_passed: success_message='Applied patch' patch='10000' 444 run_webkit_patch: ['build', '--no-clean', '--no-update', '--build-style=both'] 445 command_passed: success_message='Built patch' patch='10000' 446 run_webkit_patch: ['build-and-test', '--no-clean', '--no-update', '--test', '--non-interactive'] 447 command_failed: failure_message='Patch does not pass tests' script_error='MOCK test failure' patch='10000' 448 archive_last_layout_test_results: patch='10000' 449 run_webkit_patch: ['build-and-test', '--no-clean', '--no-update', '--test', '--non-interactive'] 450 command_failed: failure_message='Patch does not pass tests' script_error='MOCK test failure again' patch='10000' 451 archive_last_layout_test_results: patch='10000' 452 452 run_webkit_patch: ['build-and-test', '--force-clean', '--no-update', '--build', '--test', '--non-interactive'] 453 command_failed: failure_message='Unable to pass tests without patch (tree is red?)' script_error='MOCK clean test failure' patch='1 97'453 command_failed: failure_message='Unable to pass tests without patch (tree is red?)' script_error='MOCK clean test failure' patch='10000' 454 454 """ 455 455 task = self._run_through_task(commit_queue, expected_stderr, GoldenScriptError) … … 466 466 ]) 467 467 expected_stderr = """run_webkit_patch: ['clean'] 468 command_passed: success_message='Cleaned working directory' patch='1 97'469 run_webkit_patch: ['update'] 470 command_passed: success_message='Updated working directory' patch='1 97'471 run_webkit_patch: ['apply-attachment', '--no-update', '--non-interactive', 1 97]472 command_passed: success_message='Applied patch' patch='1 97'473 run_webkit_patch: ['build', '--no-clean', '--no-update', '--build-style=both'] 474 command_passed: success_message='Built patch' patch='1 97'475 run_webkit_patch: ['build-and-test', '--no-clean', '--no-update', '--test', '--non-interactive'] 476 command_passed: success_message='Passed tests' patch='1 97'477 run_webkit_patch: ['land-attachment', '--force-clean', '--non-interactive', '--parent-command=commit-queue', 1 97]478 command_failed: failure_message='Unable to land patch' script_error='MOCK land failure' patch='1 97'468 command_passed: success_message='Cleaned working directory' patch='10000' 469 run_webkit_patch: ['update'] 470 command_passed: success_message='Updated working directory' patch='10000' 471 run_webkit_patch: ['apply-attachment', '--no-update', '--non-interactive', 10000] 472 command_passed: success_message='Applied patch' patch='10000' 473 run_webkit_patch: ['build', '--no-clean', '--no-update', '--build-style=both'] 474 command_passed: success_message='Built patch' patch='10000' 475 run_webkit_patch: ['build-and-test', '--no-clean', '--no-update', '--test', '--non-interactive'] 476 command_passed: success_message='Passed tests' patch='10000' 477 run_webkit_patch: ['land-attachment', '--force-clean', '--non-interactive', '--parent-command=commit-queue', 10000] 478 command_failed: failure_message='Unable to land patch' script_error='MOCK land failure' patch='10000' 479 479 """ 480 480 # FIXME: This should really be expect_retry=True for a better user experiance. -
trunk/Tools/Scripts/webkitpy/tool/bot/feeders_unittest.py
r75366 r95543 39 39 def test_commit_queue_feeder(self): 40 40 feeder = CommitQueueFeeder(MockTool()) 41 expected_stderr = u"""Warning, attachment 1 28 on bug 42has invalid committer (non-committer@example.com)42 Warning, attachment 1 28 on bug 42has invalid committer (non-committer@example.com)43 MOCK setting flag 'commit-queue' to '-' on attachment '1 28' with comment 'Rejecting attachment 128from commit-queue.' and additional comment 'non-committer@example.com does not have committer permissions according to http://trac.webkit.org/browser/trunk/Tools/Scripts/webkitpy/common/config/committers.py.41 expected_stderr = u"""Warning, attachment 10001 on bug 50000 has invalid committer (non-committer@example.com) 42 Warning, attachment 10001 on bug 50000 has invalid committer (non-committer@example.com) 43 MOCK setting flag 'commit-queue' to '-' on attachment '10001' with comment 'Rejecting attachment 10001 from commit-queue.' and additional comment 'non-committer@example.com does not have committer permissions according to http://trac.webkit.org/browser/trunk/Tools/Scripts/webkitpy/common/config/committers.py. 44 44 45 45 - If you do not have committer rights please read http://webkit.org/coding/contributing.html for instructions on how to use bugzilla flags. 46 46 47 47 - If you have committer rights please correct the error in Tools/Scripts/webkitpy/common/config/committers.py by adding yourself to the file (no review needed). The commit-queue restarts itself every 2 hours. After restart the commit-queue will correctly respect your committer rights.' 48 MOCK: update_work_items: commit-queue [10 6, 197]49 Feeding commit-queue items [10 6, 197]48 MOCK: update_work_items: commit-queue [10005, 10000] 49 Feeding commit-queue items [10005, 10000] 50 50 """ 51 51 OutputCapture().assert_outputs(self, feeder.feed, expected_stderr=expected_stderr) -
trunk/Tools/Scripts/webkitpy/tool/bot/flakytestreporter_unittest.py
r91210 r95543 95 95 tool = MockTool() 96 96 reporter = FlakyTestReporter(tool, 'dummy-queue') 97 bug = tool.bugs.fetch_bug( 78)98 self.assertEqual(reporter._follow_duplicate_chain(bug).id(), 76)97 bug = tool.bugs.fetch_bug(50004) 98 self.assertEqual(reporter._follow_duplicate_chain(bug).id(), 50002) 99 99 100 100 def test_report_flaky_tests_creating_bug(self): … … 104 104 reporter = FlakyTestReporter(tool, 'dummy-queue') 105 105 reporter._lookup_bug_for_flaky_test = lambda bug_id: None 106 patch = tool.bugs.fetch_attachment(1 97)106 patch = tool.bugs.fetch_attachment(10000) 107 107 expected_stderr = """MOCK create_bug 108 108 bug_title: Flaky Test: foo/bar.html … … 113 113 http://trac.webkit.org/browser/trunk/LayoutTests/foo/bar.html 114 114 115 The dummy-queue just saw foo/bar.html flake (Text diff mismatch) while processing attachment 1 97 on bug 42.115 The dummy-queue just saw foo/bar.html flake (Text diff mismatch) while processing attachment 10000 on bug 50000. 116 116 Bot: mock-bot-id Port: MockPort Platform: MockPlatform 1.0 117 117 … … 125 125 cc: abarth@webkit.org 126 126 blocked: 50856 127 MOCK add_attachment_to_bug: bug_id= 78, description=Failure diff from mock-bot-id filename=failure.diff128 MOCK bug comment: bug_id= 42, cc=None127 MOCK add_attachment_to_bug: bug_id=50004, description=Failure diff from mock-bot-id filename=failure.diff 128 MOCK bug comment: bug_id=50000, cc=None 129 129 --- Begin comment --- 130 The dummy-queue encountered the following flaky tests while processing attachment 1 97:130 The dummy-queue encountered the following flaky tests while processing attachment 10000: 131 131 132 foo/bar.html bug 78(author: abarth@webkit.org)132 foo/bar.html bug 50004 (author: abarth@webkit.org) 133 133 The dummy-queue is continuing to process your patch. 134 134 --- End comment --- -
trunk/Tools/Scripts/webkitpy/tool/bot/irc_command_unittest.py
r95500 r95543 72 72 73 73 # MockBugzilla has a create_bug, but it logs to stderr, this avoids any logging. 74 tool.bugs.create_bug = lambda a, b, cc=None, assignee=None: 7875 self.assertEquals("tom: Created bug: http://example.com/ 78",74 tool.bugs.create_bug = lambda a, b, cc=None, assignee=None: 50004 75 self.assertEquals("tom: Created bug: http://example.com/50004", 76 76 create_bug.execute("tom", example_args, tool, None)) 77 77 -
trunk/Tools/Scripts/webkitpy/tool/bot/layouttestresultsreader_unittest.py
r91210 r95543 61 61 tool = MockTool() 62 62 reader = LayoutTestResultsReader(tool, "/var/logs") 63 patch = tool.bugs.fetch_attachment(1 28)63 patch = tool.bugs.fetch_attachment(10001) 64 64 tool.filesystem = MockFileSystem() 65 65 # Should fail because the results_directory does not exist. -
trunk/Tools/Scripts/webkitpy/tool/bot/queueengine_unittest.py
r89868 r95543 86 86 self.record("should_proceed_with_work_item") 87 87 self._test.assertEquals(work_item, "work_item") 88 fake_patch = { 'bug_id' : 42}88 fake_patch = {'bug_id': 50000} 89 89 return (True, "waiting_message", fake_patch) 90 90 -
trunk/Tools/Scripts/webkitpy/tool/commands/download_unittest.py
r94978 r95543 43 43 output = OutputCapture() 44 44 45 expected_stderr = "Preparing rollout for bug 42.\n"45 expected_stderr = "Preparing rollout for bug 50000.\n" 46 46 commit_info = output.assert_outputs(self, command._commit_info, [1234], expected_stderr=expected_stderr) 47 47 self.assertTrue(commit_info) … … 96 96 options.update = True 97 97 options.local_commit = True 98 expected_stderr = "Updating working directory\nProcessing 1 patch from 1 bug.\nProcessing patch 1 97 from bug 42.\n"99 self.assert_execute_outputs(ApplyAttachment(), [1 97], options=options, expected_stderr=expected_stderr)98 expected_stderr = "Updating working directory\nProcessing 1 patch from 1 bug.\nProcessing patch 10000 from bug 50000.\n" 99 self.assert_execute_outputs(ApplyAttachment(), [10000], options=options, expected_stderr=expected_stderr) 100 100 101 101 def test_apply_patches(self): … … 103 103 options.update = True 104 104 options.local_commit = True 105 expected_stderr = "Updating working directory\n2 reviewed patches found on bug 42.\nProcessing 2 patches from 1 bug.\nProcessing patch 197 from bug 42.\nProcessing patch 128 from bug 42.\n"106 self.assert_execute_outputs(ApplyFromBug(), [ 42], options=options, expected_stderr=expected_stderr)105 expected_stderr = "Updating working directory\n2 reviewed patches found on bug 50000.\nProcessing 2 patches from 1 bug.\nProcessing patch 10000 from bug 50000.\nProcessing patch 10001 from bug 50000.\n" 106 self.assert_execute_outputs(ApplyFromBug(), [50000], options=options, expected_stderr=expected_stderr) 107 107 108 108 def test_land(self): 109 expected_stderr = "Building WebKit\nRunning Python unit tests\nRunning Perl unit tests\nRunning Bindings tests\nRunning JavaScriptCore tests\nRunning run-webkit-tests\nCommitted r49824: <http://trac.webkit.org/changeset/49824>\nUpdating bug 42\n"109 expected_stderr = "Building WebKit\nRunning Python unit tests\nRunning Perl unit tests\nRunning Bindings tests\nRunning JavaScriptCore tests\nRunning run-webkit-tests\nCommitted r49824: <http://trac.webkit.org/changeset/49824>\nUpdating bug 50000\n" 110 110 mock_tool = MockTool() 111 111 mock_tool.scm().create_patch = Mock(return_value="Patch1\nMockPatch\n") 112 112 mock_tool.checkout().modified_changelogs = Mock(return_value=[]) 113 self.assert_execute_outputs(Land(), [ 42], options=self._default_options(), expected_stderr=expected_stderr, tool=mock_tool)113 self.assert_execute_outputs(Land(), [50000], options=self._default_options(), expected_stderr=expected_stderr, tool=mock_tool) 114 114 # Make sure we're not calling expensive calls too often. 115 115 self.assertEqual(mock_tool.scm().create_patch.call_count, 0) … … 117 117 118 118 def test_land_red_builders(self): 119 expected_stderr = 'Building WebKit\nRunning Python unit tests\nRunning Perl unit tests\nRunning Bindings tests\nRunning JavaScriptCore tests\nRunning run-webkit-tests\nCommitted r49824: <http://trac.webkit.org/changeset/49824>\nUpdating bug 42\n'119 expected_stderr = 'Building WebKit\nRunning Python unit tests\nRunning Perl unit tests\nRunning Bindings tests\nRunning JavaScriptCore tests\nRunning run-webkit-tests\nCommitted r49824: <http://trac.webkit.org/changeset/49824>\nUpdating bug 50000\n' 120 120 mock_tool = MockTool() 121 121 mock_tool.buildbot.light_tree_on_fire() 122 self.assert_execute_outputs(Land(), [ 42], options=self._default_options(), expected_stderr=expected_stderr, tool=mock_tool)122 self.assert_execute_outputs(Land(), [50000], options=self._default_options(), expected_stderr=expected_stderr, tool=mock_tool) 123 123 124 124 def test_check_style(self): … … 126 126 Updating working directory 127 127 MOCK run_and_throw_if_fail: ['mock-update-webkit'], cwd=/mock-checkout 128 Processing patch 1 97 from bug 42.128 Processing patch 10000 from bug 50000. 129 129 MOCK run_and_throw_if_fail: ['mock-check-webkit-style', '--git-commit', 'MOCK git commit', '--diff-files', 'MockFile1'], cwd=/mock-checkout 130 130 """ 131 self.assert_execute_outputs(CheckStyle(), [1 97], options=self._default_options(), expected_stderr=expected_stderr, tool=MockTool(log_executive=True))131 self.assert_execute_outputs(CheckStyle(), [10000], options=self._default_options(), expected_stderr=expected_stderr, tool=MockTool(log_executive=True)) 132 132 133 133 def test_build_attachment(self): 134 expected_stderr = "Processing 1 patch from 1 bug.\nUpdating working directory\nProcessing patch 1 97 from bug 42.\nBuilding WebKit\n"135 self.assert_execute_outputs(BuildAttachment(), [1 97], options=self._default_options(), expected_stderr=expected_stderr)134 expected_stderr = "Processing 1 patch from 1 bug.\nUpdating working directory\nProcessing patch 10000 from bug 50000.\nBuilding WebKit\n" 135 self.assert_execute_outputs(BuildAttachment(), [10000], options=self._default_options(), expected_stderr=expected_stderr) 136 136 137 137 def test_land_attachment(self): … … 139 139 expected_stderr = """Processing 1 patch from 1 bug. 140 140 Updating working directory 141 Processing patch 1 97 from bug 42.141 Processing patch 10000 from bug 50000. 142 142 Building WebKit 143 143 Running Python unit tests … … 147 147 Running run-webkit-tests 148 148 Committed r49824: <http://trac.webkit.org/changeset/49824> 149 Not closing bug 42 as attachment 197has review=+. Assuming there are more patches to land from this bug.150 """ 151 self.assert_execute_outputs(LandAttachment(), [1 97], options=self._default_options(), expected_stderr=expected_stderr)149 Not closing bug 50000 as attachment 10000 has review=+. Assuming there are more patches to land from this bug. 150 """ 151 self.assert_execute_outputs(LandAttachment(), [10000], options=self._default_options(), expected_stderr=expected_stderr) 152 152 153 153 def test_land_patches(self): 154 154 # FIXME: This expected result is imperfect, notice how it's seeing the same patch as still there after it thought it would have cleared the flags. 155 expected_stderr = """2 reviewed patches found on bug 42.155 expected_stderr = """2 reviewed patches found on bug 50000. 156 156 Processing 2 patches from 1 bug. 157 157 Updating working directory 158 Processing patch 1 97 from bug 42.158 Processing patch 10000 from bug 50000. 159 159 Building WebKit 160 160 Running Python unit tests … … 164 164 Running run-webkit-tests 165 165 Committed r49824: <http://trac.webkit.org/changeset/49824> 166 Not closing bug 42 as attachment 197has review=+. Assuming there are more patches to land from this bug.167 Updating working directory 168 Processing patch 1 28 from bug 42.166 Not closing bug 50000 as attachment 10000 has review=+. Assuming there are more patches to land from this bug. 167 Updating working directory 168 Processing patch 10001 from bug 50000. 169 169 Building WebKit 170 170 Running Python unit tests … … 174 174 Running run-webkit-tests 175 175 Committed r49824: <http://trac.webkit.org/changeset/49824> 176 Not closing bug 42 as attachment 197has review=+. Assuming there are more patches to land from this bug.177 """ 178 self.assert_execute_outputs(LandFromBug(), [ 42], options=self._default_options(), expected_stderr=expected_stderr)176 Not closing bug 50000 as attachment 10000 has review=+. Assuming there are more patches to land from this bug. 177 """ 178 self.assert_execute_outputs(LandFromBug(), [50000], options=self._default_options(), expected_stderr=expected_stderr) 179 179 180 180 def test_prepare_rollout(self): 181 expected_stderr = "Preparing rollout for bug 42.\nUpdating working directory\n"181 expected_stderr = "Preparing rollout for bug 50000.\nUpdating working directory\n" 182 182 self.assert_execute_outputs(PrepareRollout(), [852, "Reason"], options=self._default_options(), expected_stderr=expected_stderr) 183 183 184 184 def test_create_rollout(self): 185 expected_stderr = """Preparing rollout for bug 42.185 expected_stderr = """Preparing rollout for bug 50000. 186 186 Updating working directory 187 187 MOCK create_bug … … 191 191 component: MOCK component 192 192 cc: MOCK cc 193 blocked: 42194 MOCK add_patch_to_bug: bug_id= 78, description=ROLLOUT of r852, mark_for_review=False, mark_for_commit_queue=True, mark_for_landing=False193 blocked: 50000 194 MOCK add_patch_to_bug: bug_id=50004, description=ROLLOUT of r852, mark_for_review=False, mark_for_commit_queue=True, mark_for_landing=False 195 195 -- Begin comment -- 196 196 Any committer can land this patch automatically by marking it commit-queue+. The commit-queue will build and test the patch before landing to ensure that the rollout will be successful. This process takes approximately 15 minutes. … … 207 207 208 208 def test_rollout(self): 209 expected_stderr = """Preparing rollout for bug 42.209 expected_stderr = """Preparing rollout for bug 50000. 210 210 Updating working directory 211 211 MOCK: user.open_url: file://... -
trunk/Tools/Scripts/webkitpy/tool/commands/earlywarningsystem_unittest.py
r91210 r95543 49 49 ews._expected_failures.unexpected_failures_observed = lambda results: set(["foo.html", "bar.html"]) 50 50 task = Mock() 51 patch = ews._tool.bugs.fetch_attachment(1 97)51 patch = ews._tool.bugs.fetch_attachment(10000) 52 52 self.assertEqual(ews._failing_tests_message(task, patch), "New failing tests:\nbar.html\nfoo.html") 53 53 … … 63 63 "handle_unexpected_error": "Mock error message\n", 64 64 "next_work_item": "", 65 "process_work_item": "MOCK: update_status: %(name)s Pass\nMOCK: release_work_item: %(name)s 1 97\n" % string_replacemnts,65 "process_work_item": "MOCK: update_status: %(name)s Pass\nMOCK: release_work_item: %(name)s 10000\n" % string_replacemnts, 66 66 "handle_script_error": "ScriptError error message\n", 67 67 } … … 76 76 expected_stderr = self._default_expected_stderr(ews) 77 77 string_replacemnts = {"name": ews.name} 78 expected_stderr["process_work_item"] = "MOCK: update_status: %(name)s Error: %(name)s cannot process patches from non-committers :(\nMOCK: release_work_item: %(name)s 1 97\n" % string_replacemnts78 expected_stderr["process_work_item"] = "MOCK: update_status: %(name)s Error: %(name)s cannot process patches from non-committers :(\nMOCK: release_work_item: %(name)s 10000\n" % string_replacemnts 79 79 self.assert_queue_outputs(ews, expected_stderr=expected_stderr) 80 80 -
trunk/Tools/Scripts/webkitpy/tool/commands/queries_unittest.py
r68766 r95543 38 38 class QueryCommandsTest(CommandsTest): 39 39 def test_bugs_to_commit(self): 40 expected_stderr = "Warning, attachment 1 28 on bug 42has invalid committer (non-committer@example.com)\n"41 self.assert_execute_outputs(BugsToCommit(), None, " 42\n77\n", expected_stderr)40 expected_stderr = "Warning, attachment 10001 on bug 50000 has invalid committer (non-committer@example.com)\n" 41 self.assert_execute_outputs(BugsToCommit(), None, "50000\n50003\n", expected_stderr) 42 42 43 43 def test_patches_in_commit_queue(self): 44 expected_stdout = "http://example.com/1 97\nhttp://example.com/103\n"45 expected_stderr = "Warning, attachment 1 28 on bug 42has invalid committer (non-committer@example.com)\nPatches in commit queue:\n"44 expected_stdout = "http://example.com/10000\nhttp://example.com/10002\n" 45 expected_stderr = "Warning, attachment 10001 on bug 50000 has invalid committer (non-committer@example.com)\nPatches in commit queue:\n" 46 46 self.assert_execute_outputs(PatchesInCommitQueue(), None, expected_stdout, expected_stderr) 47 47 48 48 def test_patches_to_commit_queue(self): 49 expected_stdout = "http://example.com/10 4&action=edit\n"50 expected_stderr = "1 97 already has cq=+\n128 already has cq=+\n105committer = \"Eric Seidel\" <eric@webkit.org>\n"49 expected_stdout = "http://example.com/10003&action=edit\n" 50 expected_stderr = "10000 already has cq=+\n10001 already has cq=+\n10004 committer = \"Eric Seidel\" <eric@webkit.org>\n" 51 51 options = Mock() 52 52 options.bugs = False 53 53 self.assert_execute_outputs(PatchesToCommitQueue(), None, expected_stdout, expected_stderr, options=options) 54 54 55 expected_stdout = "http://example.com/ 77\n"55 expected_stdout = "http://example.com/50003\n" 56 56 options.bugs = True 57 57 self.assert_execute_outputs(PatchesToCommitQueue(), None, expected_stdout, expected_stderr, options=options) 58 58 59 59 def test_patches_to_review(self): 60 expected_stdout = "10 3\n"60 expected_stdout = "10002\n" 61 61 expected_stderr = "Patches pending review:\n" 62 62 self.assert_execute_outputs(PatchesToReview(), None, expected_stdout, expected_stderr) -
trunk/Tools/Scripts/webkitpy/tool/commands/queues_unittest.py
r94978 r95543 139 139 "should_proceed_with_work_item": "", 140 140 "next_work_item": "", 141 "process_work_item": """Warning, attachment 1 28 on bug 42has invalid committer (non-committer@example.com)142 Warning, attachment 1 28 on bug 42has invalid committer (non-committer@example.com)143 MOCK setting flag 'commit-queue' to '-' on attachment '1 28' with comment 'Rejecting attachment 128from commit-queue.' and additional comment 'non-committer@example.com does not have committer permissions according to http://trac.webkit.org/browser/trunk/Tools/Scripts/webkitpy/common/config/committers.py.141 "process_work_item": """Warning, attachment 10001 on bug 50000 has invalid committer (non-committer@example.com) 142 Warning, attachment 10001 on bug 50000 has invalid committer (non-committer@example.com) 143 MOCK setting flag 'commit-queue' to '-' on attachment '10001' with comment 'Rejecting attachment 10001 from commit-queue.' and additional comment 'non-committer@example.com does not have committer permissions according to http://trac.webkit.org/browser/trunk/Tools/Scripts/webkitpy/common/config/committers.py. 144 144 145 145 - If you do not have committer rights please read http://webkit.org/coding/contributing.html for instructions on how to use bugzilla flags. 146 146 147 147 - If you have committer rights please correct the error in Tools/Scripts/webkitpy/common/config/committers.py by adding yourself to the file (no review needed). The commit-queue restarts itself every 2 hours. After restart the commit-queue will correctly respect your committer rights.' 148 MOCK: update_work_items: commit-queue [10 6, 197]149 Feeding commit-queue items [10 6, 197]148 MOCK: update_work_items: commit-queue [10005, 10000] 149 Feeding commit-queue items [10005, 10000] 150 150 Feeding EWS (1 r? patch, 1 new) 151 MOCK: submit_to_ews: 10 3151 MOCK: submit_to_ews: 10002 152 152 """, 153 153 "handle_unexpected_error": "Mock error message\n", … … 164 164 queue._options.port = None 165 165 self.assertEquals(queue._next_patch(), None) 166 tool.status_server = MockStatusServer(work_items=[2, 1 97])166 tool.status_server = MockStatusServer(work_items=[2, 10000]) 167 167 expected_stdout = "MOCK: fetch_attachment: 2 is not a known attachment id\n" # A mock-only message to prevent us from making mistakes. 168 168 expected_stderr = "MOCK: release_work_item: None 2\n" 169 169 patch_id = OutputCapture().assert_outputs(self, queue._next_patch, expected_stdout=expected_stdout, expected_stderr=expected_stderr) 170 170 self.assertEquals(patch_id, None) # 2 is an invalid patch id 171 self.assertEquals(queue._next_patch().id(), 1 97)171 self.assertEquals(queue._next_patch().id(), 10000) 172 172 173 173 def test_upload_results_archive_for_patch(self): … … 178 178 queue._options = Mock() 179 179 queue._options.port = None 180 patch = queue._tool.bugs.fetch_attachment(1 28)181 expected_stderr = """MOCK add_attachment_to_bug: bug_id= 42, description=Archive of layout-test-results from bot filename=layout-test-results.zip180 patch = queue._tool.bugs.fetch_attachment(10001) 181 expected_stderr = """MOCK add_attachment_to_bug: bug_id=50000, description=Archive of layout-test-results from bot filename=layout-test-results.zip 182 182 -- Begin comment -- 183 183 The attached test failures were seen while running run-webkit-tests on the mock-queue. … … 247 247 MOCK: update_status: commit-queue Landed patch 248 248 MOCK: update_status: commit-queue Pass 249 MOCK: release_work_item: commit-queue 1 97249 MOCK: release_work_item: commit-queue 10000 250 250 """, 251 "handle_unexpected_error": "MOCK setting flag 'commit-queue' to '-' on attachment '1 97' with comment 'Rejecting attachment 197from commit-queue.' and additional comment 'Mock error message'\n",251 "handle_unexpected_error": "MOCK setting flag 'commit-queue' to '-' on attachment '10000' with comment 'Rejecting attachment 10000 from commit-queue.' and additional comment 'Mock error message'\n", 252 252 "handle_script_error": "ScriptError error message\n", 253 253 } … … 262 262 MOCK: update_status: commit-queue Updated working directory 263 263 MOCK: update_status: commit-queue Patch does not apply 264 MOCK setting flag 'commit-queue' to '-' on attachment '1 97' with comment 'Rejecting attachment 197from commit-queue.' and additional comment 'MOCK script error'264 MOCK setting flag 'commit-queue' to '-' on attachment '10000' with comment 'Rejecting attachment 10000 from commit-queue.' and additional comment 'MOCK script error' 265 265 MOCK: update_status: commit-queue Fail 266 MOCK: release_work_item: commit-queue 1 97266 MOCK: release_work_item: commit-queue 10000 267 267 """, 268 "handle_unexpected_error": "MOCK setting flag 'commit-queue' to '-' on attachment '1 97' with comment 'Rejecting attachment 197from commit-queue.' and additional comment 'Mock error message'\n",268 "handle_unexpected_error": "MOCK setting flag 'commit-queue' to '-' on attachment '10000' with comment 'Rejecting attachment 10000 from commit-queue.' and additional comment 'Mock error message'\n", 269 269 "handle_script_error": "ScriptError error message\n", 270 270 } … … 293 293 MOCK run_and_throw_if_fail: ['echo', '--status-host=example.com', 'update'], cwd=/mock-checkout 294 294 MOCK: update_status: commit-queue Updated working directory 295 MOCK run_and_throw_if_fail: ['echo', '--status-host=example.com', 'apply-attachment', '--no-update', '--non-interactive', 1 97], cwd=/mock-checkout295 MOCK run_and_throw_if_fail: ['echo', '--status-host=example.com', 'apply-attachment', '--no-update', '--non-interactive', 10000], cwd=/mock-checkout 296 296 MOCK: update_status: commit-queue Applied patch 297 297 MOCK run_and_throw_if_fail: ['echo', '--status-host=example.com', 'build', '--no-clean', '--no-update', '--build-style=both'], cwd=/mock-checkout … … 299 299 MOCK run_and_throw_if_fail: ['echo', '--status-host=example.com', 'build-and-test', '--no-clean', '--no-update', '--test', '--non-interactive'], cwd=/mock-checkout 300 300 MOCK: update_status: commit-queue Passed tests 301 MOCK run_and_throw_if_fail: ['echo', '--status-host=example.com', 'land-attachment', '--force-clean', '--non-interactive', '--parent-command=commit-queue', 1 97], cwd=/mock-checkout301 MOCK run_and_throw_if_fail: ['echo', '--status-host=example.com', 'land-attachment', '--force-clean', '--non-interactive', '--parent-command=commit-queue', 10000], cwd=/mock-checkout 302 302 MOCK: update_status: commit-queue Landed patch 303 303 MOCK: update_status: commit-queue Pass 304 MOCK: release_work_item: commit-queue 1 97304 MOCK: release_work_item: commit-queue 10000 305 305 """, 306 "handle_unexpected_error": "MOCK setting flag 'commit-queue' to '-' on attachment '1 97' with comment 'Rejecting attachment 197from commit-queue.' and additional comment 'Mock error message'\n",306 "handle_unexpected_error": "MOCK setting flag 'commit-queue' to '-' on attachment '10000' with comment 'Rejecting attachment 10000 from commit-queue.' and additional comment 'Mock error message'\n", 307 307 "handle_script_error": "ScriptError error message\n", 308 308 } … … 312 312 tool = MockTool(log_executive=True) 313 313 tool.buildbot.light_tree_on_fire() 314 rollout_patch = tool.bugs.fetch_attachment(10 6) # _patch6, a rollout patch.314 rollout_patch = tool.bugs.fetch_attachment(10005) # _patch6, a rollout patch. 315 315 assert(rollout_patch.is_rollout()) 316 316 expected_stderr = { … … 322 322 MOCK run_and_throw_if_fail: ['echo', '--status-host=example.com', 'update'], cwd=/mock-checkout 323 323 MOCK: update_status: commit-queue Updated working directory 324 MOCK run_and_throw_if_fail: ['echo', '--status-host=example.com', 'apply-attachment', '--no-update', '--non-interactive', 10 6], cwd=/mock-checkout324 MOCK run_and_throw_if_fail: ['echo', '--status-host=example.com', 'apply-attachment', '--no-update', '--non-interactive', 10005], cwd=/mock-checkout 325 325 MOCK: update_status: commit-queue Applied patch 326 MOCK run_and_throw_if_fail: ['echo', '--status-host=example.com', 'land-attachment', '--force-clean', '--non-interactive', '--parent-command=commit-queue', 10 6], cwd=/mock-checkout326 MOCK run_and_throw_if_fail: ['echo', '--status-host=example.com', 'land-attachment', '--force-clean', '--non-interactive', '--parent-command=commit-queue', 10005], cwd=/mock-checkout 327 327 MOCK: update_status: commit-queue Landed patch 328 328 MOCK: update_status: commit-queue Pass 329 MOCK: release_work_item: commit-queue 10 6329 MOCK: release_work_item: commit-queue 10005 330 330 """, 331 "handle_unexpected_error": "MOCK setting flag 'commit-queue' to '-' on attachment '10 6' with comment 'Rejecting attachment 106from commit-queue.' and additional comment 'Mock error message'\n",331 "handle_unexpected_error": "MOCK setting flag 'commit-queue' to '-' on attachment '10005' with comment 'Rejecting attachment 10005 from commit-queue.' and additional comment 'Mock error message'\n", 332 332 "handle_script_error": "ScriptError error message\n", 333 333 } … … 361 361 MOCK: update_status: commit-queue Passed tests 362 362 MOCK: update_status: commit-queue Retry 363 MOCK: release_work_item: commit-queue 1 97363 MOCK: release_work_item: commit-queue 10000 364 364 """ 365 365 OutputCapture().assert_outputs(self, queue.process_work_item, [QueuesTest.mock_work_item], expected_stderr=expected_stderr) … … 367 367 def test_report_flaky_tests(self): 368 368 queue = TestCommitQueue(MockTool()) 369 expected_stderr = """MOCK bug comment: bug_id= 76, cc=None369 expected_stderr = """MOCK bug comment: bug_id=50002, cc=None 370 370 --- Begin comment --- 371 The commit-queue just saw foo/bar.html flake (Text diff mismatch) while processing attachment 1 97 on bug 42.371 The commit-queue just saw foo/bar.html flake (Text diff mismatch) while processing attachment 10000 on bug 50000. 372 372 Port: MockPort Platform: MockPlatform 1.0 373 373 --- End comment --- 374 374 375 MOCK add_attachment_to_bug: bug_id= 76, description=Failure diff from bot filename=failure.diff376 MOCK bug comment: bug_id= 76, cc=None375 MOCK add_attachment_to_bug: bug_id=50002, description=Failure diff from bot filename=failure.diff 376 MOCK bug comment: bug_id=50002, cc=None 377 377 --- Begin comment --- 378 The commit-queue just saw bar/baz.html flake (Text diff mismatch) while processing attachment 1 97 on bug 42.378 The commit-queue just saw bar/baz.html flake (Text diff mismatch) while processing attachment 10000 on bug 50000. 379 379 Port: MockPort Platform: MockPlatform 1.0 380 380 --- End comment --- 381 381 382 MOCK add_attachment_to_bug: bug_id= 76, description=Archive of layout-test-results from bot filename=layout-test-results.zip383 MOCK bug comment: bug_id= 42, cc=None382 MOCK add_attachment_to_bug: bug_id=50002, description=Archive of layout-test-results from bot filename=layout-test-results.zip 383 MOCK bug comment: bug_id=50000, cc=None 384 384 --- Begin comment --- 385 The commit-queue encountered the following flaky tests while processing attachment 1 97:386 387 foo/bar.html bug 76(author: abarth@webkit.org)388 bar/baz.html bug 76(author: abarth@webkit.org)385 The commit-queue encountered the following flaky tests while processing attachment 10000: 386 387 foo/bar.html bug 50002 (author: abarth@webkit.org) 388 bar/baz.html bug 50002 (author: abarth@webkit.org) 389 389 The commit-queue is continuing to process your patch. 390 390 --- End comment --- … … 414 414 "next_work_item": "", 415 415 "should_proceed_with_work_item": "MOCK: update_status: style-queue Checking style\n", 416 "process_work_item": "MOCK: update_status: style-queue Pass\nMOCK: release_work_item: style-queue 1 97\n",416 "process_work_item": "MOCK: update_status: style-queue Pass\nMOCK: release_work_item: style-queue 10000\n", 417 417 "handle_unexpected_error": "Mock error message\n", 418 "handle_script_error": "MOCK: update_status: style-queue ScriptError error message\nMOCK bug comment: bug_id= 42, cc=[]\n--- Begin comment ---\nAttachment 197did not pass style-queue:\n\nScriptError error message\n\nIf any of these errors are false positives, please file a bug against check-webkit-style.\n--- End comment ---\n\n",418 "handle_script_error": "MOCK: update_status: style-queue ScriptError error message\nMOCK bug comment: bug_id=50000, cc=[]\n--- Begin comment ---\nAttachment 10000 did not pass style-queue:\n\nScriptError error message\n\nIf any of these errors are false positives, please file a bug against check-webkit-style.\n--- End comment ---\n\n", 419 419 } 420 420 expected_exceptions = { -
trunk/Tools/Scripts/webkitpy/tool/commands/queuestest.py
r91210 r95543 47 47 class QueuesTest(unittest.TestCase): 48 48 # This is _patch1 in mocktool.py 49 mock_work_item = MockTool().bugs.fetch_attachment(1 97)49 mock_work_item = MockTool().bugs.fetch_attachment(10000) 50 50 51 51 def assert_outputs(self, func, func_name, args, expected_stdout, expected_stderr, expected_exceptions): -
trunk/Tools/Scripts/webkitpy/tool/commands/upload_unittest.py
r84575 r95543 43 43 def test_assign_to_committer(self): 44 44 tool = MockTool() 45 expected_stderr = """Warning, attachment 1 28 on bug 42has invalid committer (non-committer@example.com)46 MOCK reassign_bug: bug_id= 42, assignee=eric@webkit.org45 expected_stderr = """Warning, attachment 10001 on bug 50000 has invalid committer (non-committer@example.com) 46 MOCK reassign_bug: bug_id=50000, assignee=eric@webkit.org 47 47 -- Begin comment -- 48 Attachment 1 28was posted by a committer and has review+, assigning to Eric Seidel for commit.48 Attachment 10001 was posted by a committer and has review+, assigning to Eric Seidel for commit. 49 49 -- End comment -- 50 Bug 77is already assigned to foo@foo.com (None).51 Bug 76has no non-obsolete patches, ignoring.50 Bug 50003 is already assigned to foo@foo.com (None). 51 Bug 50002 has no non-obsolete patches, ignoring. 52 52 """ 53 53 self.assert_execute_outputs(AssignToCommitter(), [], expected_stderr=expected_stderr, tool=tool) 54 54 55 55 def test_obsolete_attachments(self): 56 expected_stderr = "Obsoleting 2 old patches on bug 42\n"57 self.assert_execute_outputs(ObsoleteAttachments(), [ 42], expected_stderr=expected_stderr)56 expected_stderr = "Obsoleting 2 old patches on bug 50000\n" 57 self.assert_execute_outputs(ObsoleteAttachments(), [50000], expected_stderr=expected_stderr) 58 58 59 59 def test_post(self): … … 68 68 expected_stderr = """MOCK: user.open_url: file://... 69 69 Was that diff correct? 70 Obsoleting 2 old patches on bug 4271 MOCK reassign_bug: bug_id= 42, assignee=None72 MOCK add_patch_to_bug: bug_id= 42, description=MOCK description, mark_for_review=True, mark_for_commit_queue=False, mark_for_landing=False73 MOCK: user.open_url: http://example.com/ 4270 Obsoleting 2 old patches on bug 50000 71 MOCK reassign_bug: bug_id=50000, assignee=None 72 MOCK add_patch_to_bug: bug_id=50000, description=MOCK description, mark_for_review=True, mark_for_commit_queue=False, mark_for_landing=False 73 MOCK: user.open_url: http://example.com/50000 74 74 """ 75 self.assert_execute_outputs(Post(), [ 42], options=options, expected_stderr=expected_stderr)75 self.assert_execute_outputs(Post(), [50000], options=options, expected_stderr=expected_stderr) 76 76 77 77 def test_attach_to_bug(self): … … 79 79 options.comment = "extra comment" 80 80 options.description = "file description" 81 expected_stderr = """MOCK add_attachment_to_bug: bug_id= 42, description=file description filename=None81 expected_stderr = """MOCK add_attachment_to_bug: bug_id=50000, description=file description filename=None 82 82 -- Begin comment -- 83 83 extra comment 84 84 -- End comment -- 85 85 """ 86 self.assert_execute_outputs(AttachToBug(), [ 42, "path/to/file.txt", "file description"], options=options, expected_stderr=expected_stderr)86 self.assert_execute_outputs(AttachToBug(), [50000, "path/to/file.txt", "file description"], options=options, expected_stderr=expected_stderr) 87 87 88 88 def test_attach_to_bug_no_description_or_comment(self): … … 90 90 options.comment = None 91 91 options.description = None 92 expected_stderr = """MOCK add_attachment_to_bug: bug_id= 42, description=file.txt filename=None92 expected_stderr = """MOCK add_attachment_to_bug: bug_id=50000, description=file.txt filename=None 93 93 """ 94 self.assert_execute_outputs(AttachToBug(), [ 42, "path/to/file.txt"], options=options, expected_stderr=expected_stderr)94 self.assert_execute_outputs(AttachToBug(), [50000, "path/to/file.txt"], options=options, expected_stderr=expected_stderr) 95 95 96 96 def test_land_safely(self): 97 expected_stderr = "Obsoleting 2 old patches on bug 42\nMOCK add_patch_to_bug: bug_id=42, description=Patch for landing, mark_for_review=False, mark_for_commit_queue=False, mark_for_landing=True\n"98 self.assert_execute_outputs(LandSafely(), [ 42], expected_stderr=expected_stderr)97 expected_stderr = "Obsoleting 2 old patches on bug 50000\nMOCK add_patch_to_bug: bug_id=50000, description=Patch for landing, mark_for_review=False, mark_for_commit_queue=False, mark_for_landing=True\n" 98 self.assert_execute_outputs(LandSafely(), [50000], expected_stderr=expected_stderr) 99 99 100 100 def test_prepare_diff_with_arg(self): 101 self.assert_execute_outputs(Prepare(), [ 42])101 self.assert_execute_outputs(Prepare(), [50000]) 102 102 103 103 def test_prepare(self): … … 116 116 expected_stderr = """MOCK: user.open_url: file://... 117 117 Was that diff correct? 118 Obsoleting 2 old patches on bug 42119 MOCK reassign_bug: bug_id= 42, assignee=None120 MOCK add_patch_to_bug: bug_id= 42, description=MOCK description, mark_for_review=True, mark_for_commit_queue=False, mark_for_landing=False121 MOCK: user.open_url: http://example.com/ 42118 Obsoleting 2 old patches on bug 50000 119 MOCK reassign_bug: bug_id=50000, assignee=None 120 MOCK add_patch_to_bug: bug_id=50000, description=MOCK description, mark_for_review=True, mark_for_commit_queue=False, mark_for_landing=False 121 MOCK: user.open_url: http://example.com/50000 122 122 """ 123 self.assert_execute_outputs(Upload(), [ 42], options=options, expected_stderr=expected_stderr)123 self.assert_execute_outputs(Upload(), [50000], options=options, expected_stderr=expected_stderr) 124 124 125 125 def test_mark_bug_fixed(self): … … 127 127 tool._scm.last_svn_commit_log = lambda: "r9876 |" 128 128 options = Mock() 129 options.bug_id = 42129 options.bug_id = 50000 130 130 options.comment = "MOCK comment" 131 expected_stderr = """Bug: <http://example.com/ 42> Bug with two r+'d and cq+'d patches, one of which has an invalid commit-queue setter.131 expected_stderr = """Bug: <http://example.com/50000> Bug with two r+'d and cq+'d patches, one of which has an invalid commit-queue setter. 132 132 Revision: 9876 133 MOCK: user.open_url: http://example.com/ 42133 MOCK: user.open_url: http://example.com/50000 134 134 Is this correct? 135 Adding comment to Bug 42.136 MOCK bug comment: bug_id= 42, cc=None135 Adding comment to Bug 50000. 136 MOCK bug comment: bug_id=50000, cc=None 137 137 --- Begin comment --- 138 138 MOCK comment -
trunk/Tools/Scripts/webkitpy/tool/mocktool.py
r95257 r95543 48 48 # Testing 49 49 50 # FIXME: The ids should be 1, 2, 3 instead of crazy numbers.51 52 50 53 51 _patch1 = { 54 "id": 1 97,55 "bug_id": 42,56 "url": "http://example.com/1 97",52 "id": 10000, 53 "bug_id": 50000, 54 "url": "http://example.com/10000", 57 55 "name": "Patch1", 58 56 "is_obsolete": False, … … 67 65 68 66 _patch2 = { 69 "id": 1 28,70 "bug_id": 42,71 "url": "http://example.com/1 28",67 "id": 10001, 68 "bug_id": 50000, 69 "url": "http://example.com/10001", 72 70 "name": "Patch2", 73 71 "is_obsolete": False, … … 82 80 83 81 _patch3 = { 84 "id": 10 3,85 "bug_id": 75,86 "url": "http://example.com/10 3",82 "id": 10002, 83 "bug_id": 50001, 84 "url": "http://example.com/10002", 87 85 "name": "Patch3", 88 86 "is_obsolete": False, … … 94 92 95 93 _patch4 = { 96 "id": 10 4,97 "bug_id": 77,98 "url": "http://example.com/10 3",94 "id": 10003, 95 "bug_id": 50003, 96 "url": "http://example.com/10002", 99 97 "name": "Patch3", 100 98 "is_obsolete": False, … … 108 106 109 107 _patch5 = { 110 "id": 10 5,111 "bug_id": 77,112 "url": "http://example.com/10 3",108 "id": 10004, 109 "bug_id": 50003, 110 "url": "http://example.com/10002", 113 111 "name": "Patch5", 114 112 "is_obsolete": False, … … 121 119 122 120 _patch6 = { # Valid committer, but no reviewer. 123 "id": 10 6,124 "bug_id": 77,125 "url": "http://example.com/10 3",121 "id": 10005, 122 "bug_id": 50003, 123 "url": "http://example.com/10002", 126 124 "name": "ROLLOUT of r3489", 127 125 "is_obsolete": False, … … 134 132 135 133 _patch7 = { # Valid review, patch is marked obsolete. 136 "id": 10 7,137 "bug_id": 76,138 "url": "http://example.com/10 3",134 "id": 10006, 135 "bug_id": 50002, 136 "url": "http://example.com/10002", 139 137 "name": "Patch7", 140 138 "is_obsolete": True, … … 153 151 154 152 155 # FIXME: The ids should be 1, 2, 3 instead of crazy numbers.156 157 158 153 _bug1 = { 159 "id": 42,154 "id": 50000, 160 155 "title": "Bug with two r+'d and cq+'d patches, one of which has an " 161 156 "invalid commit-queue setter.", … … 168 163 169 164 _bug2 = { 170 "id": 75,165 "id": 50001, 171 166 "title": "Bug with a patch needing review.", 172 167 "reporter_email": "foo@foo.com", … … 178 173 179 174 _bug3 = { 180 "id": 76,175 "id": 50002, 181 176 "title": "The third bug", 182 177 "reporter_email": "foo@foo.com", … … 188 183 189 184 _bug4 = { 190 "id": 77,185 "id": 50003, 191 186 "title": "The fourth bug", 192 187 "reporter_email": "foo@foo.com", … … 198 193 199 194 _bug5 = { 200 "id": 78,195 "id": 50004, 201 196 "title": "The fifth bug", 202 197 "reporter_email": _commit_queue_email, … … 204 199 "attachments": [], 205 200 "bug_status": "RESOLVED", 206 "dup_id": 76,201 "dup_id": 50002, 207 202 } 208 203 … … 239 234 # test_assign_to_committer the real pending-commit query on bugzilla 240 235 # will return bugs with patches which have r+, but are also obsolete. 241 return bug_ids + [ 76]236 return bug_ids + [50002] 242 237 243 238 def fetch_patches_from_pending_commit_list(self): … … 245 240 246 241 def fetch_bugs_matching_search(self, search_string, author_email=None): 247 return [self._bugzilla.fetch_bug( 78), self._bugzilla.fetch_bug(77)]242 return [self._bugzilla.fetch_bug(50004), self._bugzilla.fetch_bug(50003)] 248 243 249 244 … … 293 288 if blocked: 294 289 log("blocked: %s" % blocked) 295 return 78290 return 50004 296 291 297 292 def quips(self): … … 539 534 if commit_id == "Commitish1": 540 535 return CommitMessage("CommitMessage1\n" \ 541 "https://bugs.example.org/show_bug.cgi?id= 42\n")536 "https://bugs.example.org/show_bug.cgi?id=50000\n") 542 537 if commit_id == "Commitish2": 543 538 return CommitMessage("CommitMessage2\n" \ 544 "https://bugs.example.org/show_bug.cgi?id= 75\n")539 "https://bugs.example.org/show_bug.cgi?id=50001\n") 545 540 raise Exception("Bogus commit_id in commit_message_for_local_commit.") 546 541 … … 585 580 return None 586 581 return CommitInfo(svn_revision, "eric@webkit.org", { 587 "bug_id": 42,582 "bug_id": 50000, 588 583 "author_name": "Adam Barth", 589 584 "author_email": "abarth@webkit.org", -
trunk/Tools/Scripts/webkitpy/tool/steps/steps_unittest.py
r91210 r95543 64 64 def test_prompt_for_bug_or_title_step(self): 65 65 tool = MockTool() 66 tool.user.prompt = lambda message: 4266 tool.user.prompt = lambda message: 50000 67 67 self._run_step(PromptForBugOrTitle, tool=tool) 68 68 -
trunk/Tools/Scripts/webkitpy/tool/steps/updatechangelogswithreview_unittest.py
r95257 r95543 37 37 capture = OutputCapture() 38 38 step = UpdateChangeLogsWithReviewer(MockTool(), MockOptions()) 39 expected_stderr = "No reviewed patches on bug 75, cannot infer reviewer.\n"40 capture.assert_outputs(self, step._guess_reviewer_from_bug, [ 75], expected_stderr=expected_stderr)39 expected_stderr = "No reviewed patches on bug 50001, cannot infer reviewer.\n" 40 capture.assert_outputs(self, step._guess_reviewer_from_bug, [50001], expected_stderr=expected_stderr) 41 41 42 42 def test_guess_reviewer_from_multipatch_bug(self): 43 43 capture = OutputCapture() 44 44 step = UpdateChangeLogsWithReviewer(MockTool(), MockOptions()) 45 expected_stderr = "Guessing \"Reviewer2\" as reviewer from attachment 1 28 on bug 42.\n"46 capture.assert_outputs(self, step._guess_reviewer_from_bug, [ 42], expected_stderr=expected_stderr)45 expected_stderr = "Guessing \"Reviewer2\" as reviewer from attachment 10001 on bug 50000.\n" 46 capture.assert_outputs(self, step._guess_reviewer_from_bug, [50000], expected_stderr=expected_stderr) 47 47 48 48 def test_empty_state(self):
Note: See TracChangeset
for help on using the changeset viewer.