Title: [294336] trunk/Tools/CISupport/ews-build
Revision
294336
Author
[email protected]
Date
2022-05-17 13:10:39 -0700 (Tue, 17 May 2022)

Log Message

Forbid ChangeLog modification (Follow-up fix) 
https://bugs.webkit.org/show_bug.cgi?id=240461
<rdar://93351783>

Reviewed by Aakash Jain.

Run Canonicalize on committed patches.

* Tools/CISupport/ews-build/steps.py:
(Canonicalize.doStepIf): Deleted.
(Canonicalize.hideStepIf): Deleted.
* Tools/CISupport/ews-build/steps_unittest.py:

Modified Paths

Diff

Modified: trunk/Tools/CISupport/ews-build/steps.py (294335 => 294336)


--- trunk/Tools/CISupport/ews-build/steps.py	2022-05-17 19:58:18 UTC (rev 294335)
+++ trunk/Tools/CISupport/ews-build/steps.py	2022-05-17 20:10:39 UTC (rev 294336)
@@ -5116,13 +5116,7 @@
             return {'step': f'Failed to canonicalize {commit_pluralized}'}
         return super(Canonicalize, self).getResultSummary()
 
-    def doStepIf(self, step):
-        return self.getProperty('github.number', False)
 
-    def hideStepIf(self, results, step):
-        return not self.doStepIf(step)
-
-
 class PushPullRequestBranch(shell.ShellCommand):
     name = 'push-pull-request-branch'
     haltOnFailure = True

Modified: trunk/Tools/CISupport/ews-build/steps_unittest.py (294335 => 294336)


--- trunk/Tools/CISupport/ews-build/steps_unittest.py	2022-05-17 19:58:18 UTC (rev 294335)
+++ trunk/Tools/CISupport/ews-build/steps_unittest.py	2022-05-17 20:10:39 UTC (rev 294336)
@@ -6206,10 +6206,29 @@
     def tearDown(self):
         return self.tearDownBuildStep()
 
-    def test_skipped_patch(self):
+    def test_patch(self):
         self.setupStep(Canonicalize())
         self.setProperty('patch_id', '1234')
-        self.expectOutcome(result=SKIPPED, state_string='Canonicalize Commit (skipped)')
+
+        self.expectRemoteCommands(
+            ExpectShell(
+                workdir='wkdir',
+                timeout=300,
+                logEnviron=False,
+                command=['git', 'pull', 'origin', 'main', '--rebase'],
+            ) + 0, ExpectShell(
+                workdir='wkdir',
+                timeout=300,
+                logEnviron=False,
+                command=['git', 'checkout', 'main'],
+            ) + 0, ExpectShell(
+                workdir='wkdir',
+                timeout=300,
+                logEnviron=False,
+                command=['python3', 'Tools/Scripts/git-webkit', 'canonicalize', '-n', '1'],
+            ) + 0,
+        )
+        self.expectOutcome(result=SUCCESS, state_string='Canonicalized commit')
         return self.runStep()
 
     def test_success(self):
_______________________________________________
webkit-changes mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-changes

Reply via email to