Title: [284094] trunk/Tools
Revision
284094
Author
[email protected]
Date
2021-10-13 09:01:13 -0700 (Wed, 13 Oct 2021)

Log Message

Debugging code for jscore-test hang
https://bugs.webkit.org/show_bug.cgi?id=231573

Reviewed by Jonathan Bedard.

Occasionally, jscore-test will just hang ("1200 seconds without
output"). When that happens, send SIGTERM first and have
run-jsc-stress-tests print a backtrace when that happens, so that we
can hopefully get an idea of what went wrong.
* CISupport/ews-build/steps.py:
(RunJavaScriptCoreTests.__init__):
* Scripts/run-jsc-stress-tests:

Modified Paths

Diff

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


--- trunk/Tools/CISupport/ews-build/steps.py	2021-10-13 15:37:52 UTC (rev 284093)
+++ trunk/Tools/CISupport/ews-build/steps.py	2021-10-13 16:01:13 UTC (rev 284094)
@@ -1838,7 +1838,7 @@
     NUM_FAILURES_TO_DISPLAY_IN_STATUS = 5
 
     def __init__(self, **kwargs):
-        shell.Test.__init__(self, logEnviron=False, **kwargs)
+        shell.Test.__init__(self, logEnviron=False, sigtermTime=10, **kwargs)
         self.binaryFailures = []
         self.stressTestFailures = []
 

Modified: trunk/Tools/ChangeLog (284093 => 284094)


--- trunk/Tools/ChangeLog	2021-10-13 15:37:52 UTC (rev 284093)
+++ trunk/Tools/ChangeLog	2021-10-13 16:01:13 UTC (rev 284094)
@@ -1,3 +1,18 @@
+2021-10-13  Angelos Oikonomopoulos  <[email protected]>
+
+        Debugging code for jscore-test hang
+        https://bugs.webkit.org/show_bug.cgi?id=231573
+
+        Reviewed by Jonathan Bedard.
+
+        Occasionally, jscore-test will just hang ("1200 seconds without
+        output"). When that happens, send SIGTERM first and have
+        run-jsc-stress-tests print a backtrace when that happens, so that we
+        can hopefully get an idea of what went wrong.
+        * CISupport/ews-build/steps.py:
+        (RunJavaScriptCoreTests.__init__):
+        * Scripts/run-jsc-stress-tests:
+
 2021-10-12  Jonathan Bedard  <[email protected]>
 
         [AppleSilicon] Support native simulator testing

Modified: trunk/Tools/Scripts/run-jsc-stress-tests (284093 => 284094)


--- trunk/Tools/Scripts/run-jsc-stress-tests	2021-10-13 15:37:52 UTC (rev 284093)
+++ trunk/Tools/Scripts/run-jsc-stress-tests	2021-10-13 16:01:13 UTC (rev 284094)
@@ -44,6 +44,13 @@
     end
 end
 
+Signal.trap("TERM") {
+    # Occasionally, the jscore-test step fails to produce any output for 10' at
+    # which point it gets killed by the buildbot code. Try to diagnose.
+    puts("Received SIGTERM")
+    puts(Thread.current.backtrace)
+}
+
 RemoteHost = Struct.new(:name, :user, :host, :port, :remoteDirectory)
 
 THIS_SCRIPT_PATH = Pathname.new(__FILE__).realpath
_______________________________________________
webkit-changes mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-changes

Reply via email to