Title: [290383] trunk/Tools
Revision
290383
Author
[email protected]
Date
2022-02-23 10:36:23 -0800 (Wed, 23 Feb 2022)

Log Message

[run-webkit-tests] Catch OSError when sampling
https://bugs.webkit.org/show_bug.cgi?id=237087
<rdar://problem/89357299>

Reviewed by Aakash Jain.

* Tools/Scripts/webkitpy/port/darwin.py:
(DarwinPort.sample_process): Catch OSError when either sampling a
process or running spindump. These errors indicate the error gathering process
failed, but such a failure should not be fatal to the entire test run.

Canonical link: https://commits.webkit.org/247698@main

Modified Paths

Diff

Modified: trunk/Tools/ChangeLog (290382 => 290383)


--- trunk/Tools/ChangeLog	2022-02-23 18:26:38 UTC (rev 290382)
+++ trunk/Tools/ChangeLog	2022-02-23 18:36:23 UTC (rev 290383)
@@ -1,3 +1,16 @@
+2022-02-23  Jonathan Bedard  <[email protected]>
+
+        [run-webkit-tests] Catch OSError when sampling
+        https://bugs.webkit.org/show_bug.cgi?id=237087
+        <rdar://problem/89357299>
+
+        Reviewed by Aakash Jain.
+
+        * Scripts/webkitpy/port/darwin.py:
+        (DarwinPort.sample_process): Catch OSError when either sampling a
+        process or running spindump. These errors indicate the error gathering process
+        failed, but such a failure should not be fatal to the entire test run.
+
 2022-02-23  J Pascoe  <[email protected]>
 
         [WebAuthn] userHandle not marked nullable in _WKWebAuthenticationAssertionResponse

Modified: trunk/Tools/Scripts/webkitpy/port/darwin.py (290382 => 290383)


--- trunk/Tools/Scripts/webkitpy/port/darwin.py	2022-02-23 18:26:38 UTC (rev 290382)
+++ trunk/Tools/Scripts/webkitpy/port/darwin.py	2022-02-23 18:36:23 UTC (rev 290383)
@@ -188,7 +188,7 @@
                     host.executive.run_command(spindump_command)
                 host.filesystem.move_to_base_host(DarwinPort.tailspin_file_path(host, name, pid, str(tempdir)),
                                                   DarwinPort.tailspin_file_path(self.host, name, pid, self.results_directory()))
-            except (IOError, ScriptError) as e:
+            except (IOError, ScriptError, OSError) as e:
                 _log.warning('Unable to symbolicate tailspin log of process:' + str(e))
         else:  # Tailspin failed, run sample instead
             try:
@@ -202,7 +202,7 @@
                 ])
                 host.filesystem.move_to_base_host(DarwinPort.sample_file_path(host, name, pid, str(tempdir)),
                                                   DarwinPort.sample_file_path(self.host, name, pid, self.results_directory()))
-            except ScriptError as e:
+            except (ScriptError, OSError) as e:
                 _log.warning('Unable to sample process:' + str(e))
         host.filesystem.rmtree(str(tempdir))
 
_______________________________________________
webkit-changes mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-changes

Reply via email to