Modified: trunk/Tools/CISupport/ews-build/events.py (292555 => 292556)
--- trunk/Tools/CISupport/ews-build/events.py 2022-04-07 19:55:32 UTC (rev 292555)
+++ trunk/Tools/CISupport/ews-build/events.py 2022-04-07 19:59:13 UTC (rev 292556)
@@ -312,7 +312,7 @@
class GitHubEventHandlerNoEdits(GitHubEventHandler):
OPEN_STATES = ('open',)
- MERGE_QUEUE_LABELS = ('merge-queue', 'fast-merge-queue')
+ MERGE_QUEUE_LABELS = ('merge-queue', 'unsafe-merge-queue')
@classmethod
def file_with_status_sign(cls, info):
Modified: trunk/Tools/CISupport/ews-build/steps.py (292555 => 292556)
--- trunk/Tools/CISupport/ews-build/steps.py 2022-04-07 19:55:32 UTC (rev 292555)
+++ trunk/Tools/CISupport/ews-build/steps.py 2022-04-07 19:59:13 UTC (rev 292556)
@@ -142,7 +142,7 @@
pr_closed_states = ['closed']
BLOCKED_LABEL = 'merging-blocked'
MERGE_QUEUE_LABEL = 'merge-queue'
- FAST_MERGE_QUEUE_LABEL = 'fast-merge-queue'
+ UNSAFE_MERGE_QUEUE_LABEL = 'unsafe-merge-queue'
def fetch_data_from_url_with_authentication(self, url):
response = None
@@ -229,7 +229,7 @@
def _is_pr_in_merge_queue(self, pr_json):
for label in (pr_json or {}).get('labels', {}):
- if label.get('name', '') in (self.MERGE_QUEUE_LABEL, self.FAST_MERGE_QUEUE_LABEL):
+ if label.get('name', '') in (self.MERGE_QUEUE_LABEL, self.UNSAFE_MERGE_QUEUE_LABEL):
return 1
return 0
@@ -1667,7 +1667,7 @@
repository_url = self.getProperty('repository', '')
rc = SUCCESS
if any((
- not self.remove_labels(pr_number, [self.MERGE_QUEUE_LABEL, self.FAST_MERGE_QUEUE_LABEL], repository_url=repository_url),
+ not self.remove_labels(pr_number, [self.MERGE_QUEUE_LABEL, self.UNSAFE_MERGE_QUEUE_LABEL], repository_url=repository_url),
not self.add_label(pr_number, self.BLOCKED_LABEL, repository_url=repository_url),
)):
rc = FAILURE
@@ -1727,7 +1727,7 @@
haltOnFailure = False
LABELS_TO_REMOVE = [
GitHubMixin.MERGE_QUEUE_LABEL,
- GitHubMixin.FAST_MERGE_QUEUE_LABEL,
+ GitHubMixin.UNSAFE_MERGE_QUEUE_LABEL,
GitHubMixin.BLOCKED_LABEL,
]
Modified: trunk/Tools/ChangeLog (292555 => 292556)
--- trunk/Tools/ChangeLog 2022-04-07 19:55:32 UTC (rev 292555)
+++ trunk/Tools/ChangeLog 2022-04-07 19:59:13 UTC (rev 292556)
@@ -1,5 +1,21 @@
2022-04-07 Jonathan Bedard <[email protected]>
+ [Merge-Queue] Change label names
+ https://bugs.webkit.org/show_bug.cgi?id=238950
+ <rdar://problem/91435211>
+
+ Reviewed by Ryan Haddad.
+
+ * CISupport/ews-build/events.py:
+ (GitHubEventHandlerNoEdits): Use "unsafe-merge-queue" instead of "fast-merge-queue".
+ * CISupport/ews-build/steps.py:
+ (GitHubMixin): Ditto.
+ (GitHubMixin._is_pr_in_merge_queue): Ditto.
+ (BlockPullRequest.start): Ditto.
+ (RemoveLabelsFromPullRequest): Ditto.
+
+2022-04-07 Jonathan Bedard <[email protected]>
+
[Merge-Queue] Add step to close pull request
https://bugs.webkit.org/show_bug.cgi?id=238949
<rdar://problem/91434587>