Bug 208775 - Replace the use of term "rollout" to "revert" in various tools
Summary: Replace the use of term "rollout" to "revert" in various tools
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: Tools / Tests (show other bugs)
Version: WebKit Nightly Build
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Ross Kirsling
URL:
Keywords: InRadar
Depends on:
Blocks:
 
Reported: 2020-03-07 15:45 PST by Ross Kirsling
Modified: 2020-03-07 20:21 PST (History)
9 users (show)

See Also:


Attachments
Patch (86.82 KB, patch)
2020-03-07 16:01 PST, Ross Kirsling
no flags Details | Formatted Diff | Diff
Patch (90.72 KB, patch)
2020-03-07 16:23 PST, Ross Kirsling
no flags Details | Formatted Diff | Diff
Patch for landing (93.22 KB, patch)
2020-03-07 17:09 PST, Ross Kirsling
no flags Details | Formatted Diff | Diff
Patch for landing (93.22 KB, patch)
2020-03-07 18:50 PST, Ross Kirsling
no flags Details | Formatted Diff | Diff
Patch for landing (93.95 KB, patch)
2020-03-07 19:52 PST, Ross Kirsling
no flags Details | Formatted Diff | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Ross Kirsling 2020-03-07 15:45:03 PST
[Tools] Out with rollouts, in with reverts
Comment 1 Ross Kirsling 2020-03-07 16:01:00 PST
Created attachment 392903 [details]
Patch
Comment 2 Aakash Jain 2020-03-07 16:10:55 PST
Can you also rename rollout to revert in https://trac.webkit.org/browser/webkit/trunk/Tools/BuildSlaveSupport/ews-build/steps.py and steps_unittest.py
Comment 3 Ross Kirsling 2020-03-07 16:15:44 PST
(In reply to Aakash Jain from comment #2)
> Can you also rename rollout to revert in
> https://trac.webkit.org/browser/webkit/trunk/Tools/BuildSlaveSupport/ews-
> build/steps.py and steps_unittest.py

Oh shoot, my local pull is out of date and I didn't have those additions. Thanks for pointing that out!
Comment 4 Ross Kirsling 2020-03-07 16:23:00 PST
Created attachment 392910 [details]
Patch
Comment 5 Ryosuke Niwa 2020-03-07 16:49:30 PST
Comment on attachment 392910 [details]
Patch

View in context: https://bugs.webkit.org/attachment.cgi?id=392910&action=review

> Tools/ChangeLog:3
> +        [Tools] Out with rollouts, in with reverts

This bug title was too confusing.

> Tools/Scripts/webkitpy/common/net/bugzilla/attachment.py:84
> +    def is_revert(self):
> +        return self.name().startswith(self.revert_preamble)

We need to check both rollout & revert here
because this function is used to check whether something is a rollout or a revert.

> Tools/Scripts/webkitpy/tool/bot/irc_command.py:156
> +    usage_string = "revert SVN_REVISION [SVN_REVISIONS] REASON"
> +    help_string = "Opens a revert bug, CCing author + reviewer, and attaching the reverse-diff of the given revisions marked as commit-queue=?."

While we're at, we should rephrase this as "Opens a bug to revert the specified revision, ..."

> Tools/Scripts/webkitpy/tool/bot/irc_command.py:245
> -            tool.irc().post("%s: Created rollout: %s" % (nicks_string, bug_url))
> +            tool.irc().post("%s: Created revert: %s" % (nicks_string, bug_url))

While we're at it, we should rephrase it to "Created a revert patch":

> Tools/Scripts/webkitpy/tool/commands/newcommitbot.py:157
> -                return '%s rolled out %s in %s : %s' % (author, rollout.group('revisions'),
> +                return '%s rolled out %s in %s : %s' % (author, revert.group('revisions'),

We should rephrase this as "reverted" as well.

> Tools/Scripts/webkitpy/tool/commands/newcommitbot.py:159
> -            lines[0] = '%s rolled out %s in %s' % (author, rollout.group('revisions'), linkified_revision)
> +            lines[0] = '%s rolled out %s in %s' % (author, revert.group('revisions'), linkified_revision)

Ditto.
Comment 6 Ross Kirsling 2020-03-07 17:09:32 PST
Created attachment 392917 [details]
Patch for landing
Comment 7 Ross Kirsling 2020-03-07 17:10:37 PST
Thanks for the review!

(In reply to Ryosuke Niwa from comment #5)
> > Tools/ChangeLog:3
> > +        [Tools] Out with rollouts, in with reverts
> 
> This bug title was too confusing.

Haha, I may have been having a bit too much fun there. :P
Comment 8 Ross Kirsling 2020-03-07 17:22:29 PST
Services EWS seems unwilling to notice changes to its unit tests -- Aakash, can you confirm whether this failure looks legitimate to you?
Comment 9 Ross Kirsling 2020-03-07 18:50:59 PST
Created attachment 392929 [details]
Patch for landing
Comment 10 Aakash Jain 2020-03-07 19:47:05 PST
(In reply to Ross Kirsling from comment #8)
> Services EWS seems unwilling to notice changes to its unit tests -- Aakash, can you confirm whether this failure looks legitimate to you?
The patch seems to be have missed replacing one instance of rollout in steps_unittest.py
Comment 11 WebKit Commit Bot 2020-03-07 19:49:57 PST Comment hidden (obsolete)
Comment 12 Ross Kirsling 2020-03-07 19:52:13 PST
Created attachment 392933 [details]
Patch for landing
Comment 13 Ross Kirsling 2020-03-07 19:53:21 PST
(In reply to Aakash Jain from comment #10)
> (In reply to Ross Kirsling from comment #8)
> > Services EWS seems unwilling to notice changes to its unit tests -- Aakash, can you confirm whether this failure looks legitimate to you?
> The patch seems to be have missed replacing one instance of rollout in
> steps_unittest.py

I didn't realize there were multiple changes for this landing simultaneously -- rebased again.
Comment 14 WebKit Commit Bot 2020-03-07 20:20:28 PST
Comment on attachment 392933 [details]
Patch for landing

Clearing flags on attachment: 392933

Committed r258097: <https://trac.webkit.org/changeset/258097>
Comment 15 WebKit Commit Bot 2020-03-07 20:20:30 PST
All reviewed patches have been landed.  Closing bug.
Comment 16 Radar WebKit Bug Importer 2020-03-07 20:21:15 PST
<rdar://problem/60195742>