Title: [293430] trunk/Tools
Revision
293430
Author
[email protected]
Date
2022-04-26 09:56:09 -0700 (Tue, 26 Apr 2022)

Log Message

Enable --treat-failing-as-flaky for the JSC post-commit bots
https://bugs.webkit.org/show_bug.cgi?id=239341

Reviewed by Jonathan Bedard.

Try to cover up for a little test flakiness (while still recording
it in resultsdb) to avoid too many false alerts.

* CISupport/build-webkit-org/steps.py:
(RunJavaScriptCoreTests):
(RunJavaScriptCoreTests.start):
* CISupport/build-webkit-org/steps_unittest.py:

Modified Paths

Diff

Modified: trunk/Tools/CISupport/build-webkit-org/steps.py (293429 => 293430)


--- trunk/Tools/CISupport/build-webkit-org/steps.py	2022-04-26 16:43:50 UTC (rev 293429)
+++ trunk/Tools/CISupport/build-webkit-org/steps.py	2022-04-26 16:56:09 UTC (rev 293430)
@@ -476,6 +476,7 @@
         "--buildbot-master", CURRENT_HOSTNAME,
         "--report", RESULTS_WEBKIT_URL,
     ]
+    commandExtra = ['--treat-failing-as-flaky=0.7,10,20']
     failedTestsFormatString = "%d JSC test%s failed"
     logfiles = {"json": jsonFileName}
 
@@ -493,6 +494,10 @@
 
         platform = self.getProperty('platform')
         architecture = self.getProperty("architecture")
+        # Ask run-jsc-stress-tests to report flaky (including to the resultsdb)
+        # but do not fail the whole run if the pass rate of the failing tests is
+        # high enough.
+        self.command += self.commandExtra
         # Currently run-_javascript_core-test doesn't support run _javascript_ core test binaries list below remotely
         if architecture in ['mips', 'armv7', 'aarch64']:
             self.command += ['--no-testmasm', '--no-testair', '--no-testb3', '--no-testdfg', '--no-testapi']

Modified: trunk/Tools/CISupport/build-webkit-org/steps_unittest.py (293429 => 293430)


--- trunk/Tools/CISupport/build-webkit-org/steps_unittest.py	2022-04-26 16:43:50 UTC (rev 293429)
+++ trunk/Tools/CISupport/build-webkit-org/steps_unittest.py	2022-04-26 16:56:09 UTC (rev 293430)
@@ -990,6 +990,7 @@
 
     def configureStep(self, platform=None, fullPlatform=None, configuration=None):
         self.setupStep(RunJavaScriptCoreTests())
+        self.commandExtra = RunJavaScriptCoreTests.commandExtra
         if platform:
             self.setProperty('platform', platform)
         if fullPlatform:
@@ -1005,7 +1006,7 @@
         self.expectRemoteCommands(
             ExpectShell(workdir='wkdir',
                         logEnviron=False,
-                        command=['perl', 'Tools/Scripts/run-_javascript_core-tests', '--no-build', '--no-fail-fast', '--json-output={0}'.format(self.jsonFileName), '--release', '--builder-name', 'JSC-Tests', '--build-number', '101', '--buildbot-worker', 'bot100', '--buildbot-master', CURRENT_HOSTNAME, '--report', 'https://results.webkit.org'],
+                        command=['perl', 'Tools/Scripts/run-_javascript_core-tests', '--no-build', '--no-fail-fast', '--json-output={0}'.format(self.jsonFileName), '--release', '--builder-name', 'JSC-Tests', '--build-number', '101', '--buildbot-worker', 'bot100', '--buildbot-master', CURRENT_HOSTNAME, '--report', 'https://results.webkit.org'] + self.commandExtra,
                         logfiles={'json': self.jsonFileName},
                         env={'RESULTS_SERVER_API_KEY': 'test-api-key'}
                         )
@@ -1019,7 +1020,7 @@
         self.expectRemoteCommands(
             ExpectShell(workdir='wkdir',
                         logEnviron=False,
-                        command=['perl', 'Tools/Scripts/run-_javascript_core-tests', '--no-build', '--no-fail-fast', '--json-output={0}'.format(self.jsonFileName), '--debug', '--builder-name', 'JSC-Tests', '--build-number', '101', '--buildbot-worker', 'bot100', '--buildbot-master', CURRENT_HOSTNAME, '--report', 'https://results.webkit.org'],
+                        command=['perl', 'Tools/Scripts/run-_javascript_core-tests', '--no-build', '--no-fail-fast', '--json-output={0}'.format(self.jsonFileName), '--debug', '--builder-name', 'JSC-Tests', '--build-number', '101', '--buildbot-worker', 'bot100', '--buildbot-master', CURRENT_HOSTNAME, '--report', 'https://results.webkit.org'] + self.commandExtra,
                         logfiles={'json': self.jsonFileName},
                         env={'RESULTS_SERVER_API_KEY': 'test-api-key'}
                         )

Modified: trunk/Tools/ChangeLog (293429 => 293430)


--- trunk/Tools/ChangeLog	2022-04-26 16:43:50 UTC (rev 293429)
+++ trunk/Tools/ChangeLog	2022-04-26 16:56:09 UTC (rev 293430)
@@ -1,3 +1,18 @@
+2022-04-26  Angelos Oikonomopoulos  <[email protected]>
+
+        Enable --treat-failing-as-flaky for the JSC post-commit bots
+        https://bugs.webkit.org/show_bug.cgi?id=239341
+
+        Reviewed by Jonathan Bedard.
+
+        Try to cover up for a little test flakiness (while still recording
+        it in resultsdb) to avoid too many false alerts.
+
+        * CISupport/build-webkit-org/steps.py:
+        (RunJavaScriptCoreTests):
+        (RunJavaScriptCoreTests.start):
+        * CISupport/build-webkit-org/steps_unittest.py:
+
 2022-04-26  Kate Cheney  <[email protected]>
 
         Remove WebArchiveDebugMode
_______________________________________________
webkit-changes mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-changes

Reply via email to