Bug 227946 - [build.webkit.org] lldb-webkit-test is failing on Catalina queues
Summary: [build.webkit.org] lldb-webkit-test is failing on Catalina queues
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: Tools / Tests (show other bugs)
Version: Other
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Jonathan Bedard
URL:
Keywords: InRadar
: 226603 (view as bug list)
Depends on:
Blocks:
 
Reported: 2021-07-14 05:05 PDT by Aakash Jain
Modified: 2021-07-20 03:08 PDT (History)
4 users (show)

See Also:


Attachments
Patch (1.70 KB, patch)
2021-07-19 10:51 PDT, Ryan Haddad
no flags Details | Formatted Diff | Diff
Patch for landing (1.70 KB, patch)
2021-07-19 11:24 PDT, Ryan Haddad
no flags Details | Formatted Diff | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Aakash Jain 2021-07-14 05:05:50 PDT
lldb-webkit-test is failing on various queues. e.g.: https://build.webkit.org/#/builders/33/builds/2099/steps/12/logs/stdio

Checking imports ...
Failed to import dump_class_layout_unittest:
  Traceback (most recent call last):
    File "/Applications/Xcode.app/Contents/SharedFrameworks/LLDB.framework/Resources/Python/lldb/__init__.py", line 35, in <module>
      import _lldb
  ModuleNotFoundError: No module named '_lldb'
  
  During handling of the above exception, another exception occurred:
  
  Traceback (most recent call last):
    File "/Volumes/Data/worker/catalina-debug-tests-wk1/build/Tools/Scripts/webkitpy/test/main.py", line 290, in _check_imports
      __import__(name)
    File "/Volumes/Data/worker/catalina-debug-tests-wk1/build/Tools/lldb/dump_class_layout_unittest.py", line 28, in <module>
      import lldb
    File "/Applications/Xcode.app/Contents/SharedFrameworks/LLDB.framework/Resources/Python/lldb/__init__.py", line 38, in <module>
      from . import _lldb
  ImportError: dynamic module does not define module export function (PyInit__lldb)


On Apple-Catalina-Debug-WK1-Tests queue this issue started happening about two months back (https://build.webkit.org/#/builders/33/builds/2098 passed and https://build.webkit.org/#/builders/33/builds/2099 failed).

Other examples: https://build.webkit.org/#/builders/33/builds/3104, https://build.webkit.org/#/builders/34/builds/1708, https://build.webkit.org/#/builders/25/builds/4158, https://build.webkit.org/#/builders/13/builds/3957
Comment 1 Jonathan Bedard 2021-07-14 08:12:39 PDT
There isn't a great solution to this, we should probably just stop trying to run this test suite on Catalina.

The problem is that in Big Sur mid-year release, Xcode changed lldb from Python 2 to Python 3. In an effort to support the newer way (because that's what Monterey and presumably future OSes will be using). In order to fix this, we basically have to have two lldb-webkit-test scripts, which doesn't seem worth the trouble. Most development is done on Big Sur and Monterey at this point, I think the engineer effort to "fix" this problem on Catalina is not worth it. Especially since I'm pretty sure lldb debugging still works on Catalina, we would just no longer be defending that fact in automation.
Comment 2 Alexey Proskuryakov 2021-07-15 17:16:51 PDT
> There isn't a great solution to this, we should probably just stop trying to run this test suite on Catalina.

Let's do that then.
Comment 3 Ryan Haddad 2021-07-19 10:51:03 PDT
Created attachment 433798 [details]
Patch
Comment 4 Aakash Jain 2021-07-19 10:57:05 PDT
Comment on attachment 433798 [details]
Patch

View in context: https://bugs.webkit.org/attachment.cgi?id=433798&action=review

> Tools/CISupport/build-webkit-org/factories.py:111
> +        if platform.startswith('mac') and not (platform == 'mac-catalina'):

This might be slightly easier to read:
and (platform != 'mac-catalina')
Comment 5 Ryan Haddad 2021-07-19 11:23:41 PDT
(In reply to Aakash Jain from comment #4)
> Comment on attachment 433798 [details]
> Patch
> 
> View in context:
> https://bugs.webkit.org/attachment.cgi?id=433798&action=review
> 
> > Tools/CISupport/build-webkit-org/factories.py:111
> > +        if platform.startswith('mac') and not (platform == 'mac-catalina'):
> 
> This might be slightly easier to read:
> and (platform != 'mac-catalina')
Fair enough, will address before landing. Thanks!
Comment 6 Ryan Haddad 2021-07-19 11:24:35 PDT
Created attachment 433802 [details]
Patch for landing
Comment 7 EWS 2021-07-19 11:54:04 PDT
Committed r280040 (239775@main): <https://commits.webkit.org/239775@main>

All reviewed patches have been landed. Closing bug and clearing flags on attachment 433802 [details].
Comment 8 Radar WebKit Bug Importer 2021-07-19 11:55:39 PDT
<rdar://problem/80795641>
Comment 9 Ryan Haddad 2021-07-19 12:50:51 PDT
*** Bug 226603 has been marked as a duplicate of this bug. ***