Changeset 273030 in webkit
- Timestamp:
- Feb 17, 2021, 1:53:15 PM (5 years ago)
- Location:
- trunk/Tools
- Files:
-
- 22 edited
- 1 copied
Legend:
- Unmodified
- Added
- Removed
-
trunk/Tools/ChangeLog
r273023 r273030 1 2021-02-17 Sam Sneddon <gsnedders@apple.com> 2 3 Add deprecation notices to believed-unused commands in webkit-patch 4 https://bugs.webkit.org/show_bug.cgi?id=222058 5 6 Reviewed by Jonathan Bedard. 7 8 This only adds notices, asking any users of the commands to comment on 9 https://bugs.webkit.org/show_bug.cgi?id=221991; it doesn't in any way break the commands, 10 and the deprecation is easily undone. 11 12 * Scripts/webkitpy/tool/commands/adduserstogroups.py: 13 * Scripts/webkitpy/tool/commands/analyzechangelog.py: 14 * Scripts/webkitpy/tool/commands/applywatchlistlocal.py: 15 * Scripts/webkitpy/tool/commands/bugfortest.py: 16 * Scripts/webkitpy/tool/commands/bugsearch.py: 17 * Scripts/webkitpy/tool/commands/commandtest.py: 18 (CommandsTest.assert_execute_outputs): Strip the warnings from unittest output to avoid changing every test 19 (CommandsTest._remove_deprecated_warning): 20 * Scripts/webkitpy/tool/commands/deprecatedcommand.py: Added. Class decorator for Commands output notice. 21 * Scripts/webkitpy/tool/commands/download.py: 22 * Scripts/webkitpy/tool/commands/earlywarningsystem.py: 23 * Scripts/webkitpy/tool/commands/findusers.py: 24 * Scripts/webkitpy/tool/commands/gardenomatic.py: 25 * Scripts/webkitpy/tool/commands/openbugs.py: 26 * Scripts/webkitpy/tool/commands/queries.py: 27 * Scripts/webkitpy/tool/commands/rebaseline.py: 28 * Scripts/webkitpy/tool/commands/rebaseline_unittest.py: 29 * Scripts/webkitpy/tool/commands/rebaselineserver.py: 30 * Scripts/webkitpy/tool/commands/setupgitclone.py: 31 * Scripts/webkitpy/tool/commands/suggestnominations.py: 32 * Scripts/webkitpy/tool/commands/upload.py: 33 * Scripts/webkitpy/tool/steps/runtests.py: 34 (RunTests.run): Deprecate running tests through webkit-patch, even indirectly. 35 * Scripts/webkitpy/tool/steps/runtests_unittest.py: 36 (RunTestsTest.test_webkit_run_unit_tests): 37 * Scripts/webkitpy/tool/steps/steps_unittest.py: 38 (StepsTest.test_runtests_args): 39 1 40 2021-02-17 Brent Fulgham <bfulgham@apple.com> 2 41 -
trunk/Tools/Scripts/webkitpy/tool/commands/adduserstogroups.py
r225698 r273030 27 27 # OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 28 28 29 from webkitpy.tool.commands.deprecatedcommand import DeprecatedCommand 29 30 from webkitpy.tool.multicommandtool import Command 30 31 31 32 33 @DeprecatedCommand 32 34 class AddUsersToGroups(Command): 33 35 name = "add-users-to-groups" -
trunk/Tools/Scripts/webkitpy/tool/commands/analyzechangelog.py
r227427 r273030 32 32 import time 33 33 34 from webkitpy.common.checkout.changelog import ChangeLog 34 35 from webkitpy.common.checkout.scm.detection import SCMDetector 35 from webkitpy.common.checkout.changelog import ChangeLog36 36 from webkitpy.common.config.contributionareas import ContributionAreas 37 37 from webkitpy.common.system.filesystem import FileSystem 38 from webkitpy.tool import steps 39 from webkitpy.tool.commands.deprecatedcommand import DeprecatedCommand 38 40 from webkitpy.tool.multicommandtool import Command 39 from webkitpy.tool import steps 40 41 41 42 43 @DeprecatedCommand 42 44 class AnalyzeChangeLog(Command): 43 45 name = "analyze-changelog" -
trunk/Tools/Scripts/webkitpy/tool/commands/applywatchlistlocal.py
r96540 r273030 27 27 # OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 28 28 29 from webkitpy.tool import steps 29 30 from webkitpy.tool.commands.abstractsequencedcommand import AbstractSequencedCommand 30 from webkitpy.tool import steps31 from webkitpy.tool.commands.deprecatedcommand import DeprecatedCommand 31 32 32 33 34 @DeprecatedCommand 33 35 class ApplyWatchListLocal(AbstractSequencedCommand): 34 36 name = "apply-watchlist-local" -
trunk/Tools/Scripts/webkitpy/tool/commands/bugfortest.py
r225698 r273030 27 27 # OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 28 28 29 from webkitpy.tool.bot.flakytestreporter import FlakyTestReporter 30 from webkitpy.tool.commands.deprecatedcommand import DeprecatedCommand 29 31 from webkitpy.tool.multicommandtool import Command 30 from webkitpy.tool.bot.flakytestreporter import FlakyTestReporter31 32 32 33 … … 34 35 # it could be easily expanded to auto-create bugs, etc. if another 35 36 # command outside of webkitpy wanted to use it. 37 @DeprecatedCommand 36 38 class BugForTest(Command): 37 39 name = "bug-for-test" -
trunk/Tools/Scripts/webkitpy/tool/commands/bugsearch.py
r225698 r273030 27 27 # OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 28 28 29 from webkitpy.tool.commands.deprecatedcommand import DeprecatedCommand 29 30 from webkitpy.tool.multicommandtool import Command 30 31 31 32 33 @DeprecatedCommand 32 34 class BugSearch(Command): 33 35 name = "bug-search" -
trunk/Tools/Scripts/webkitpy/tool/commands/commandtest.py
r265883 r273030 57 57 with OutputCapture(level=logging.INFO) as captured: 58 58 command.execute(options, args, tool) 59 self.assertEqual(captured.stdout.getvalue(), expected_stdout or '') 60 self.assertEqual(captured.stderr.getvalue(), expected_stderr or '') 61 self.assertEqual(captured.root.log.getvalue(), expected_logs or '') 59 60 actual_stdout = self._remove_deprecated_warning(captured.stdout.getvalue()) 61 actual_stderr = self._remove_deprecated_warning(captured.stderr.getvalue()) 62 actual_logs = self._remove_deprecated_warning(captured.root.log.getvalue()) 63 64 self.assertEqual(actual_stdout, expected_stdout or '') 65 self.assertEqual(actual_stderr, expected_stderr or '') 66 self.assertEqual(actual_logs, expected_logs or '') 67 68 def _remove_deprecated_warning(self, s): 69 lines = s.splitlines(True) # keepends=True (PY2 doesn't accept keyword form) 70 return "".join(l for l in lines 71 if "currently deprecated due to believed non-use" not in l) -
trunk/Tools/Scripts/webkitpy/tool/commands/deprecatedcommand.py
r273029 r273030 1 # Copyright (c) 2011 Google Inc. All rights reserved. 2 # Copyright (c) 2014 Apple Inc. All rights reserved. 1 # Copyright (C) 2021 Apple Inc. All rights reserved. 3 2 # 4 3 # Redistribution and use in source and binary forms, with or without … … 12 11 # in the documentation and/or other materials provided with the 13 12 # distribution. 14 # * Neither the name of Google Inc. nor the names of its13 # * Neither the name of Apple Inc. nor the names of its 15 14 # contributors may be used to endorse or promote products derived from 16 15 # this software without specific prior written permission. … … 28 27 # OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 29 28 30 from webkitpy.tool.multicommandtool import Command 31 from webkitpy.common.config.committers import CommitterList 29 import logging 30 from functools import wraps 31 32 _log = logging.getLogger(__name__) 32 33 33 34 34 class FindUsers(Command): 35 name = "find-users" 36 help_text = "Find users matching substring" 35 def DeprecatedCommand(klass): 36 func = klass.execute 37 37 38 def execute(self, options, args, tool): 39 search_string = args[0] 40 users = CommitterList().contributors_by_search_string(search_string) 41 for user in users: 42 print(user) 38 if hasattr(func, "_deprecated"): 39 # Avoid applying this multiple times 40 return klass 41 42 @wraps(func) 43 def wrapped(self, *args, **kwargs): 44 _log.warning("The '%s' command is currently deprecated due to believed non-use; " 45 "if it forms part of your workflow, please comment on " 46 "https://bugs.webkit.org/show_bug.cgi?id=221991 and please include the " 47 "command you ran, even if others have already mentioned it" % self.name) 48 return func(self, *args, **kwargs) 49 50 wrapped._deprecated = True 51 52 klass.execute = wrapped 53 return klass -
trunk/Tools/Scripts/webkitpy/tool/commands/download.py
r271158 r273030 37 37 from webkitpy.common.system.executive import ScriptError 38 38 from webkitpy.tool.commands.abstractsequencedcommand import AbstractSequencedCommand 39 from webkitpy.tool.commands.deprecatedcommand import DeprecatedCommand 39 40 from webkitpy.tool.commands.stepsequence import StepSequence 40 41 from webkitpy.tool.comments import bug_comment_from_commit_text … … 45 46 46 47 48 @DeprecatedCommand 47 49 class Clean(AbstractSequencedCommand): 48 50 name = "clean" … … 56 58 57 59 60 @DeprecatedCommand 58 61 class Update(AbstractSequencedCommand): 59 62 name = "update" … … 65 68 66 69 70 @DeprecatedCommand 67 71 class Build(AbstractSequencedCommand): 68 72 name = "build" … … 78 82 79 83 84 @DeprecatedCommand 80 85 class BuildAndTest(AbstractSequencedCommand): 81 86 name = "build-and-test" … … 89 94 90 95 96 @DeprecatedCommand 91 97 class CheckPatchRelevance(AbstractSequencedCommand): 92 98 name = "check-patch-relevance" … … 124 130 125 131 132 @DeprecatedCommand 126 133 class LandCowhand(AbstractSequencedCommand): 127 134 # Gender-blind term for cowboy, see: http://en.wiktionary.org/wiki/cowhand … … 144 151 145 152 153 @DeprecatedCommand 146 154 class LandCowboy(LandCowhand): 147 155 name = "land-cowboy" … … 152 160 153 161 162 @DeprecatedCommand 154 163 class CheckStyleLocal(AbstractSequencedCommand): 155 164 name = "check-style-local" … … 254 263 255 264 265 @DeprecatedCommand 256 266 class CheckStyle(AbstractPatchSequencingCommand, ProcessAttachmentsMixin): 257 267 name = "check-style" … … 266 276 267 277 278 @DeprecatedCommand 268 279 class BuildAttachment(AbstractPatchSequencingCommand, ProcessAttachmentsMixin): 269 280 name = "build-attachment" … … 278 289 279 290 291 @DeprecatedCommand 280 292 class BuildAndTestAttachment(AbstractPatchSequencingCommand, ProcessAttachmentsMixin): 281 293 name = "build-and-test-attachment" … … 318 330 319 331 332 @DeprecatedCommand 320 333 class ApplyWatchList(AbstractPatchSequencingCommand, ProcessAttachmentsMixin): 321 334 name = "apply-watchlist" … … 369 382 370 383 384 @DeprecatedCommand 371 385 class LandFromURL(AbstractPatchLandingCommand, ProcessURLsMixin): 372 386 name = "land-from-url" … … 375 389 376 390 391 @DeprecatedCommand 377 392 class ValidateChangelog(AbstractSequencedCommand): 378 393 name = "validate-changelog" … … 441 456 442 457 458 @DeprecatedCommand 443 459 class PrepareRevert(AbstractRevertPrepCommand): 444 460 name = "prepare-revert" … … 456 472 457 473 474 @DeprecatedCommand 458 475 class PrepareRollout(PrepareRevert): 459 476 name = "prepare-rollout" … … 464 481 465 482 483 @DeprecatedCommand 466 484 class CreateRevert(AbstractRevertPrepCommand): 467 485 name = "create-revert" … … 493 511 494 512 513 @DeprecatedCommand 495 514 class CreateRollout(CreateRevert): 496 515 name = "create-rollout" … … 524 543 525 544 545 @DeprecatedCommand 526 546 class Rollout(Revert): 527 547 name = "rollout" -
trunk/Tools/Scripts/webkitpy/tool/commands/earlywarningsystem.py
r271158 r273030 35 35 from webkitcorepy import string_utils 36 36 37 from webkitpy.common.system.executive import ScriptError 37 38 from webkitpy.common.system.filesystem import FileSystem 38 from webkitpy.common.system.executive import ScriptError39 39 from webkitpy.tool.bot.earlywarningsystemtask import EarlyWarningSystemTask, EarlyWarningSystemTaskDelegate 40 from webkitpy.tool.bot.jsctestresultsreader import JSCTestResultsReader 40 41 from webkitpy.tool.bot.layouttestresultsreader import LayoutTestResultsReader 41 from webkitpy.tool.bot.jsctestresultsreader import JSCTestResultsReader42 42 from webkitpy.tool.bot.patchanalysistask import UnableToApplyPatch, PatchIsNotValid, PatchIsNotApplicable 43 from webkitpy.tool.commands.deprecatedcommand import DeprecatedCommand 43 44 from webkitpy.tool.commands.queues import AbstractReviewQueue 44 45 … … 46 47 47 48 49 @DeprecatedCommand 48 50 class AbstractEarlyWarningSystem(AbstractReviewQueue, EarlyWarningSystemTaskDelegate): 49 51 # FIXME: Switch _default_run_tests from opt-in to opt-out once more bots are ready to run tests. -
trunk/Tools/Scripts/webkitpy/tool/commands/findusers.py
r225698 r273030 28 28 # OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 29 29 30 from webkitpy.common.config.committers import CommitterList 31 from webkitpy.tool.commands.deprecatedcommand import DeprecatedCommand 30 32 from webkitpy.tool.multicommandtool import Command 31 from webkitpy.common.config.committers import CommitterList32 33 33 34 35 @DeprecatedCommand 34 36 class FindUsers(Command): 35 37 name = "find-users" -
trunk/Tools/Scripts/webkitpy/tool/commands/gardenomatic.py
r228501 r273030 24 24 25 25 from webkitpy.port import builders 26 from webkitpy.port import factory 27 from webkitpy.tool.commands.deprecatedcommand import DeprecatedCommand 26 28 from webkitpy.tool.commands.rebaseline import AbstractRebaseliningCommand 27 29 from webkitpy.tool.servers.gardeningserver import GardeningHTTPServer 28 from webkitpy.port import factory29 30 30 31 32 @DeprecatedCommand 31 33 class GardenOMatic(AbstractRebaseliningCommand): 32 34 name = "garden-o-matic" -
trunk/Tools/Scripts/webkitpy/tool/commands/openbugs.py
r202319 r273030 32 32 33 33 from webkitpy.tool.multicommandtool import Command 34 from webkitpy.tool.commands.deprecatedcommand import DeprecatedCommand 34 35 35 36 _log = logging.getLogger(__name__) 36 37 37 38 39 @DeprecatedCommand 38 40 class OpenBugs(Command): 39 41 name = "open-bugs" -
trunk/Tools/Scripts/webkitpy/tool/commands/queries.py
r271244 r273030 40 40 from webkitpy.tool import steps 41 41 42 import webkitpy.common.config.urls as config_urls 42 43 from webkitpy.common.checkout.commitinfo import CommitInfo 43 44 from webkitpy.common.config.committers import CommitterList 44 import webkitpy.common.config.urls as config_urls 45 from webkitpy.common.net.bugzilla import Bugzilla 45 46 from webkitpy.common.net.buildbot import BuildBot 46 from webkitpy.common.net.bugzilla import Bugzilla47 47 from webkitpy.common.net.regressionwindow import RegressionWindow 48 48 from webkitpy.common.system.crashlogs import CrashLogs 49 49 from webkitpy.common.system.user import User 50 from webkitpy.tool.commands.abstractsequencedcommand import AbstractSequencedCommand51 from webkitpy.tool.grammar import pluralize52 from webkitpy.tool.multicommandtool import Command53 50 from webkitpy.layout_tests.controllers.layout_test_finder import LayoutTestFinder 54 51 from webkitpy.layout_tests.models.test_expectations import TestExpectations 55 52 from webkitpy.port import platform_options, configuration_options 53 from webkitpy.tool.commands.abstractsequencedcommand import AbstractSequencedCommand 54 from webkitpy.tool.commands.deprecatedcommand import DeprecatedCommand 55 from webkitpy.tool.grammar import pluralize 56 from webkitpy.tool.multicommandtool import Command 56 57 57 58 _log = logging.getLogger(__name__) 58 59 59 60 61 @DeprecatedCommand 60 62 class SuggestReviewers(AbstractSequencedCommand): 61 63 name = "suggest-reviewers" … … 69 71 70 72 73 @DeprecatedCommand 71 74 class BugsToCommit(Command): 72 75 name = "bugs-to-commit" … … 80 83 81 84 85 @DeprecatedCommand 82 86 class PatchesInCommitQueue(Command): 83 87 name = "patches-in-commit-queue" … … 91 95 92 96 97 @DeprecatedCommand 93 98 class PatchesToCommitQueue(Command): 94 99 name = "patches-to-commit-queue" … … 126 131 127 132 133 @DeprecatedCommand 128 134 class PatchesToReview(Command): 129 135 name = "patches-to-review" … … 180 186 181 187 188 @DeprecatedCommand 182 189 class WhatBroke(Command): 183 190 name = "what-broke" … … 226 233 227 234 235 @DeprecatedCommand 228 236 class ResultsFor(Command): 229 237 name = "results-for" … … 248 256 249 257 258 @DeprecatedCommand 250 259 class FailureReason(Command): 251 260 name = "failure-reason" … … 344 353 345 354 355 @DeprecatedCommand 346 356 class FindFlakyTests(Command): 347 357 name = "find-flaky-tests" … … 413 423 414 424 425 @DeprecatedCommand 415 426 class TreeStatus(Command): 416 427 name = "tree-status" … … 425 436 426 437 438 @DeprecatedCommand 427 439 class CrashLog(Command): 428 440 name = "crash-log" … … 441 453 442 454 455 @DeprecatedCommand 443 456 class PrintExpectations(Command): 444 457 name = 'print-expectations' … … 530 543 531 544 545 @DeprecatedCommand 532 546 class PrintBaselines(Command): 533 547 name = 'print-baselines' … … 580 594 581 595 596 @DeprecatedCommand 582 597 class FindResolvedBugs(Command): 583 598 name = "find-resolved-bugs" -
trunk/Tools/Scripts/webkitpy/tool/commands/rebaseline.py
r262709 r273030 39 39 from webkitpy.port import builders 40 40 from webkitpy.port import factory 41 from webkitpy.tool.commands.deprecatedcommand import DeprecatedCommand 41 42 from webkitpy.tool.multicommandtool import Command 42 43 … … 75 76 76 77 78 @DeprecatedCommand 77 79 class RebaselineTest(AbstractRebaseliningCommand): 78 80 name = "rebaseline-test-internal" … … 295 297 296 298 299 @DeprecatedCommand 297 300 class RebaselineJson(AbstractParallelRebaselineCommand): 298 301 name = "rebaseline-json" … … 310 313 311 314 315 @DeprecatedCommand 312 316 class RebaselineExpectations(AbstractParallelRebaselineCommand): 313 317 name = "rebaseline-expectations" … … 371 375 372 376 377 @DeprecatedCommand 373 378 class Rebaseline(AbstractParallelRebaselineCommand): 374 379 name = "rebaseline" -
trunk/Tools/Scripts/webkitpy/tool/commands/rebaseline_unittest.py
r265883 r273030 330 330 331 331 self.assertEqual(self.tool.filesystem.written_files, {}) 332 self.assertEqual(captured.root.log.getvalue(), 'Did not find any tests marked Rebaseline.\n')332 self.assertEqual(captured.root.log.getvalue(), "The 'rebaseline-expectations' command is currently deprecated due to believed non-use; if it forms part of your workflow, please comment on https://bugs.webkit.org/show_bug.cgi?id=221991 and please include the command you ran, even if others have already mentioned it\nDid not find any tests marked Rebaseline.\n") 333 333 334 334 def disabled_test_overrides_are_included_correctly(self): -
trunk/Tools/Scripts/webkitpy/tool/commands/rebaselineserver.py
r225698 r273030 36 36 from webkitpy.layout_tests.layout_package import json_results_generator 37 37 from webkitpy.tool.commands.abstractlocalservercommand import AbstractLocalServerCommand 38 from webkitpy.tool.commands.deprecatedcommand import DeprecatedCommand 38 39 from webkitpy.tool.servers.rebaselineserver import get_test_baselines, RebaselineHTTPServer, STATE_NEEDS_REBASELINE 39 40 … … 50 51 51 52 53 @DeprecatedCommand 52 54 class RebaselineServer(AbstractLocalServerCommand): 53 55 name = "rebaseline-server" -
trunk/Tools/Scripts/webkitpy/tool/commands/setupgitclone.py
r249752 r273030 27 27 # OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 28 28 29 from webkitpy.tool.multicommandtool import Command30 29 from webkitpy.common.checkout.scm.git import Git 31 30 from webkitpy.common.system.executive import ScriptError 31 from webkitpy.tool.commands.deprecatedcommand import DeprecatedCommand 32 from webkitpy.tool.multicommandtool import Command 32 33 33 34 35 @DeprecatedCommand 34 36 class SetupGitClone(Command): 35 37 name = "setup-git-clone" -
trunk/Tools/Scripts/webkitpy/tool/commands/suggestnominations.py
r271158 r273030 34 34 from webkitpy.common.config.committers import CommitterList 35 35 from webkitpy.tool import grammar 36 from webkitpy.tool.commands.deprecatedcommand import DeprecatedCommand 36 37 from webkitpy.tool.multicommandtool import Command 37 38 … … 145 146 146 147 148 @DeprecatedCommand 147 149 class SuggestNominations(AbstractCommitLogCommand): 148 150 name = "suggest-nominations" -
trunk/Tools/Scripts/webkitpy/tool/commands/upload.py
r271158 r273030 42 42 from webkitpy.thirdparty.mock import Mock 43 43 from webkitpy.tool.commands.abstractsequencedcommand import AbstractSequencedCommand 44 from webkitpy.tool.commands.deprecatedcommand import DeprecatedCommand 44 45 from webkitpy.tool.comments import bug_comment_from_svn_revision 45 46 from webkitpy.tool.grammar import pluralize, join_with_separators … … 49 50 50 51 52 @DeprecatedCommand 51 53 class CommitMessageForCurrentDiff(Command): 52 54 name = "commit-message" … … 65 67 66 68 69 @DeprecatedCommand 67 70 class CleanPendingCommit(Command): 68 71 name = "clean-pending-commit" … … 94 97 95 98 # FIXME: This should be share more logic with AssignToCommitter and CleanPendingCommit 99 @DeprecatedCommand 96 100 class CleanReviewQueue(Command): 97 101 name = "clean-review-queue" … … 119 123 120 124 125 @DeprecatedCommand 121 126 class AssignToCommitter(Command): 122 127 name = "assign-to-committer" … … 162 167 163 168 169 @DeprecatedCommand 164 170 class ObsoleteAttachments(AbstractSequencedCommand): 165 171 name = "obsolete-attachments" … … 174 180 175 181 182 @DeprecatedCommand 176 183 class AttachToBug(AbstractSequencedCommand): 177 184 name = "attach-to-bug" … … 208 215 209 216 217 @DeprecatedCommand 210 218 class Post(AbstractPatchUploadingCommand): 211 219 name = "post" … … 242 250 243 251 252 @DeprecatedCommand 244 253 class HasLanded(AbstractPatchUploadingCommand): 245 254 name = "has-landed" … … 251 260 252 261 262 @DeprecatedCommand 253 263 class Prepare(AbstractSequencedCommand): 254 264 name = "prepare" … … 312 322 313 323 324 @DeprecatedCommand 314 325 class PostCommits(Command): 315 326 name = "post-commits" … … 371 382 372 383 # FIXME: This command needs to be brought into the modern age with steps and CommitInfo. 384 @DeprecatedCommand 373 385 class MarkBugFixed(Command): 374 386 name = "mark-bug-fixed" … … 453 465 454 466 # FIXME: Requires unit test. Blocking issue: too complex for now. 467 @DeprecatedCommand 455 468 class CreateBug(Command): 456 469 name = "create-bug" … … 537 550 538 551 552 @DeprecatedCommand 539 553 class WPTChangeExport(AbstractPatchUploadingCommand): 540 554 name = "wpt-change-export" -
trunk/Tools/Scripts/webkitpy/tool/steps/runtests.py
r263308 r273030 59 59 60 60 def run(self, state): 61 if ( 62 self._options.group == "jsc" 63 or self._options.iterate_on_new_tests 64 or self._options.test 65 ): 66 _log.warning( 67 "Running tests through webkit-patch is currently deprecated due to believed " 68 "non-use; if it forms part of your workflow, please comment on " 69 "https://bugs.webkit.org/show_bug.cgi?id=221991 and please include the " 70 "command you ran, even if others have already mentioned it" 71 ) 72 61 73 if self._options.group == "jsc": 62 74 self._run_javascriptcore_tests() -
trunk/Tools/Scripts/webkitpy/tool/steps/runtests_unittest.py
r265883 r273030 52 52 self.assertEqual( 53 53 captured.root.log.getvalue(), 54 '''Running run-webkit-tests 54 '''Running tests through webkit-patch is currently deprecated due to believed non-use; if it forms part of your workflow, please comment on https://bugs.webkit.org/show_bug.cgi?id=221991 and please include the command you ran, even if others have already mentioned it 55 Running run-webkit-tests 55 56 MOCK run_and_throw_if_fail: ['mock-run-webkit-tests', '--no-new-test-results', '--no-show-results', '--exit-after-n-failures=30', '--quiet', '--skip-failing-tests'], cwd=/mock-checkout 56 57 ''', … … 59 60 self.assertEqual( 60 61 captured.root.log.getvalue(), 61 '''Running run-webkit-tests 62 '''Running tests through webkit-patch is currently deprecated due to believed non-use; if it forms part of your workflow, please comment on https://bugs.webkit.org/show_bug.cgi?id=221991 and please include the command you ran, even if others have already mentioned it 63 Running run-webkit-tests 62 64 MOCK run_and_throw_if_fail: ['mock-run-webkit-tests', '--no-new-test-results', '--no-show-results', '--exit-after-n-failures=30', '--no-build'], cwd=/mock-checkout 63 65 ''', -
trunk/Tools/Scripts/webkitpy/tool/steps/steps_unittest.py
r265883 r273030 127 127 self.assertEqual( 128 128 captured.root.log.getvalue(), 129 '''Running Python unit tests 129 '''Running tests through webkit-patch is currently deprecated due to believed non-use; if it forms part of your workflow, please comment on https://bugs.webkit.org/show_bug.cgi?id=221991 and please include the command you ran, even if others have already mentioned it 130 Running Python unit tests 130 131 MOCK run_and_throw_if_fail: ['Tools/Scripts/test-webkitpy'], cwd=/mock-checkout 131 132 Running Perl unit tests … … 151 152 self.assertEqual( 152 153 captured.root.log.getvalue(), 153 '''Running Python unit tests 154 '''Running tests through webkit-patch is currently deprecated due to believed non-use; if it forms part of your workflow, please comment on https://bugs.webkit.org/show_bug.cgi?id=221991 and please include the command you ran, even if others have already mentioned it 155 Running Python unit tests 154 156 MOCK run_and_throw_if_fail: ['Tools/Scripts/test-webkitpy'], cwd=/mock-checkout 155 157 Running Perl unit tests … … 176 178 self.assertEqual( 177 179 captured.root.log.getvalue(), 178 " MOCK run_and_throw_if_fail: ['Tools/Scripts/run-javascriptcore-tests', '--no-fail-fast', '--release', '--json-output=/tmp/jsc_test_results.json'], cwd=/mock-checkout\n",180 "Running tests through webkit-patch is currently deprecated due to believed non-use; if it forms part of your workflow, please comment on https://bugs.webkit.org/show_bug.cgi?id=221991 and please include the command you ran, even if others have already mentioned it\nMOCK run_and_throw_if_fail: ['Tools/Scripts/run-javascriptcore-tests', '--no-fail-fast', '--release', '--json-output=/tmp/jsc_test_results.json'], cwd=/mock-checkout\n", 179 181 ) 180 182 … … 192 194 self.assertEqual( 193 195 captured.root.log.getvalue(), 194 " MOCK run_and_throw_if_fail: ['Tools/Scripts/run-javascriptcore-tests', '--no-fail-fast', '--debug', '--json-output=/tmp/jsc_test_results.json'], cwd=/mock-checkout\n",196 "Running tests through webkit-patch is currently deprecated due to believed non-use; if it forms part of your workflow, please comment on https://bugs.webkit.org/show_bug.cgi?id=221991 and please include the command you ran, even if others have already mentioned it\nMOCK run_and_throw_if_fail: ['Tools/Scripts/run-javascriptcore-tests', '--no-fail-fast', '--debug', '--json-output=/tmp/jsc_test_results.json'], cwd=/mock-checkout\n", 195 197 ) 196 198
Note:
See TracChangeset
for help on using the changeset viewer.